November 2007
Beginner
642 pages
15h 43m
English
You would like to like to discover all the hosts on your network, and you want to establish the baseline performance of your network with ping, so you have something for comparison when you're troubleshooting network performance problems. You could do it with ping, and perhaps write a clever script to automate pinging a whole subnet. But, isn't there already a way to do it with a single command?
FPing pings all the addresses in a range in sequence. This example pings a subnet once, reports which hosts are alive, queries DNS for the hostnames, and prints a summary:
$ fping -c1 -sdg 192.168.1.0/24 xena.alrac.net : [0], 84 bytes, 0.04 ms (0.04 avg, 0% loss) pyramid.alrac.net : [0], 84 bytes, 0.45 ms (0.45 avg, 0% loss) uberpc.alrac.net : [0], 84 bytes, 0.11 ms (0.11 avg, 0% loss) ICMP Host Unreachable from 192.168.1.10 for ICMP Echo sent to 192.168.1.2 ICMP Host Unreachable from 192.168.1.10 for ICMP Echo sent to 192.168.1.3 ICMP Host Unreachable from 192.168.1.10 for ICMP Echo sent to 192.168.1.4 [...] 192.168.1.9 : xmt/rcv/%loss = 1/0/100% xena.alrac.net : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.04/0.04/0.04 192.168.1.11 : xmt/rcv/%loss = 1/0/100% [...] 128 targets 3 alive 126 unreachable 0 unknown addresses 0 timeouts (waiting for response) 127 ICMP Echos sent 3 ICMP Echo Replies received 102 other ICMP received 0.04 ms (min round trip time) 1.02 ms (avg round trip time) 2.58 ms (max round trip time) 6.753 sec (elapsed ...Read now
Unlock full access