- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script to check whether the server is alive
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
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
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
тАО02-12-2004 01:41 PM
тАО02-12-2004 01:41 PM
script to check whether the server is alive
Do any one have any scripts that check whether the server is alive using the ping command?
Regards
Joyce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2004 04:38 PM
тАО02-12-2004 04:38 PM
Re: script to check whether the server is alive
-----------------------------------
while true
do
echo "******************************"
echo " Servers Monitoring "
echo "******************************"
ping Svr1 &
ping Svr2 &
ping Svr3 &
sleep 10
echo " "
done
-------------------------------------
Have a nice day^^
From Korea.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2004 05:06 PM
тАО02-12-2004 05:06 PM
Re: script to check whether the server is alive
You need to give "ping" a timeout. which you do with "ping
Something like
#!/usr/bin/sh
ping
echo "Oh dear the machine seems in trouble"
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2004 05:30 PM
тАО02-12-2004 05:30 PM
Re: script to check whether the server is alive
What we do is first ping the server to see if we can reach it over the network, by pinging with 3 packets and see if at least one got a response. (Some servers are connected over lines that are not up all the time, so it takes time for the network link to work, resulting in some packet loss...)
Then try to auto-login with things like ftp, remsh or ssh, depending on what you have available. And then do some sanity checks on the remote machine, like looking for /sbin/rc commands still running (meaning it is still booting), etc.
I'm afraid that I can't distribute our script, which is highly configurable on the check part, but does it like mentioned above.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2004 05:40 PM
тАО02-12-2004 05:40 PM
Re: script to check whether the server is alive
Sounds like you might benefit for developing that into a client-server architecure. Then simply ask the client if it's OK :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2004 07:06 PM
тАО02-12-2004 07:06 PM
Re: script to check whether the server is alive
Sorry, I'm having a busy day and haven't got time to dig out the web address for you, but if you go on to Google and type big brother hp ux you should be pointed in the right direction.
Mark Syder (like the drink but spelt different)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-12-2004 07:25 PM
тАО02-12-2004 07:25 PM
Re: script to check whether the server is alive
And now it is in shell scripting, which is easier to maintain for other people (I wrote the script etc. 6 years back, when perl wasn't really an option and we only had 2 people who could read and write C-programs).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-13-2004 12:26 AM
тАО02-13-2004 12:26 AM
Re: script to check whether the server is alive
mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-14-2004 05:18 AM
тАО02-14-2004 05:18 AM
Re: script to check whether the server is alive
Big Brother monitors System and Network-delivered services for availability. Your current network status is displayed on a color-coded web page in near-real time. When problems are detected, you're immediately notified by e-mail, pager, or text messaging.