- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: multi node ping tool
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
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-24-2004 09:36 PM
тАО02-24-2004 09:36 PM
Is there something like this available?
Your help is appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2004 09:48 PM
тАО02-24-2004 09:48 PM
Re: multi node ping tool
http://www.fping.com/
Ragards
Rainer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2004 10:09 PM
тАО02-24-2004 10:09 PM
SolutionHow about a shell script.
#!/usr/bin/ksh
for server in `cat serverlist.txt`
do
TEST=0
TEST=`nslookup $server | grep -q Address`
if [ $TEST -ne 0 ]
then
ping server -n 3 | grep loss | awk -F, '{ print $NF}' | awk -F% '{ print $1}' | grep -q " 0"
if [ $? -eq 0 ]
then echo "$server is alive, at $(date)"
fi
fi
done
HTH,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2004 10:38 PM
тАО02-24-2004 10:38 PM
Re: multi node ping tool
for hostname in `cat textfile`
do
output="looks fine"
ping $hostname -n 1 || output "looks broken"
echo "$hostname $output"
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-24-2004 10:59 PM
тАО02-24-2004 10:59 PM
Re: multi node ping tool
Thank you very much for your quick help. All answers are eally valuable and I will adapt the solution to my needs an try them.
Greetings from sunny switzerland
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2004 12:49 AM
тАО02-25-2004 12:49 AM
Re: multi node ping tool
http://bb4.com/
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.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-25-2004 03:10 AM
тАО02-25-2004 03:10 AM
Re: multi node ping tool
for more serious monitoring purposes of a whole server farm I'd rather stick with fping as Rainer already suggested.
fping has the great advantage of sending out Echo_Requests asynchronously.
Therefore it is better suited for monitoring.
For instance the mon utility ( http://www.kernel.org/software/mon/ ) uses fping.
fping also can read a list of hosts to ping from a file, and has an extra -f option.
Another choice would be to use the Net::Ping Perl module from CPAN.
It gives you the ability to chose from different protocols (e.g. tcp, udp, icmp) because ICMP requires root privilages, and many firewalls drop ICMP Echo Requests silently.
For the same reason are you free to select a port to ping.
Because the SSH port 22 is often not block you could ping boxes even behind firewalls.