Search Ali's Blog

Monday, September 20, 2010

Check multiple machines availability

Usually, administrators check machines liveness by sending ICMP echo request (aka ping request).

I found this tool very handy to check the liveness of multiple machines very quickly from command line. The tool is called fping, and it can be installed on Linux using this tar ball.




Example:
Define your machines IPs configuration file:
# cat machines.ips
10.20.1.19
10.20.1.20
10.20.1.21
10.20.1.22
10.20.1.23
10.20.1.24
10.20.1.25
10.20.1.26
10.20.1.27
10.20.1.31
10.20.1.32


Now, run fping to check the machines availability:
# fping -f machines.ips -r 1 -t 100
10.20.1.19 is alive
10.20.1.20 is alive
10.20.1.21 is alive
10.20.1.22 is alive
10.20.1.23 is alive
10.20.1.24 is alive
10.20.1.26 is alive
10.20.1.27 is alive
10.20.1.31 is alive
10.20.1.32 is alive
10.20.1.25 is unreachable

No comments: