- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- detect remote host is up or not
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2002 06:52 AM
тАО08-28-2002 06:52 AM
I'm writing a /sbin/init.d script to start our Apps at system boot time. We are using a Client/Server architecture and I have to use "remsh" to start some process on other hosts(client) from this server. the /sbin/init.d script only run on one host which is the root host.
In a scenario that all client/server hosts are reboot at same time, the client hosts may come up later than the server host, so in the script I have to detect whether the remote hosts are up or not before issue the remsh commands, I'm just wondering what's the best way to do that -- ping the host or just run a "remsh ls" or some better way ...
looking forward to your suggestions,
thanks and have a nice day.
Gary
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2002 06:57 AM
тАО08-28-2002 06:57 AM
Solutionping will answer you before the machine is completely up.
I would do something like
remsh topaz who -r|grep "run-level 3"
To check when the machine is at the correct run level.
Alternatively let the machiens all run 1 script in startup and shutdown that makes and
removes a file called machineon or similar.
Chekc for that and machine is not there if not found so maintenance and emergencies are all solved by removing the file
Steve steel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2002 06:58 AM
тАО08-28-2002 06:58 AM
Re: detect remote host is up or not
a simple workaround:
write a sleep-statement before the remsh-command.
For example: sleep 600 make the script waiting for 10 minutes and meanwhile all servers should be up.
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2002 07:00 AM
тАО08-28-2002 07:00 AM
Re: detect remote host is up or not
I explained this pretty well and attached the Perl pieces along with shell script snippets calling these Perl scripts in this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x312e8f960573d611abdb0090277a778c,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2002 07:03 AM
тАО08-28-2002 07:03 AM
Re: detect remote host is up or not
the simple way will be to use the 'ping' command. If you want take a look at this man page too:
# man ruptime
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-28-2002 08:59 AM
тАО08-28-2002 08:59 AM