Interesting.
When troubleshooting, I might ping a broadcast address for a network (#
number of times) and then check the arp cache for found mappings.  

What's the overall use for your script?

Liane.

>>> [EMAIL PROTECTED] 16/06/2006 8:36:59 a.m. >>>
I found myself doing a lot of loops around ping to find machines on
the
network

foreach ip (`seq 1 254`) 
        ping -c 1 192.168.50.${ip}
end

However fping can ping a range of IPs in parallel.  Much nicer!

socks:~# fping -a -g 192.168.50.1 192.168.50.6
192.168.50.3
192.168.50.4
192.168.50.6
ICMP Host Unreachable from 192.168.3.1 for ICMP Echo sent to
192.168.50.1
ICMP Host Unreachable from 192.168.3.1 for ICMP Echo sent to
192.168.50.2
ICMP Host Unreachable from 192.168.3.1 for ICMP Echo sent to
192.168.50.5

Reply via email to