Need solution - Ping 25-50 IP's and get packet loss
Newbie here... I am looking for a way to run a single command and have my server ping 25-50 different IP addresses for 100 pings and then give me a report of packet loss for each individual IP.
The purpose is to help monitor a WISP network. Currently they are simply pinging each IP individually to see where problems may be and which access points should be rebooted etc.
Additional features might be to identify each IP with a given name so the report might read...
192.168.1.1 MAIN TOWER 2%
192.168.1.55 JOE CUSTOMER 7%
I am very new to nix/bsd so please provide as much guidance a possible.
You could use the ping -c command to limit your pings to only 4 pings. However, if you're looking for failures among a list of hosts, you're probably better off banging out a quick script in perl, python or some similar language. It isn't too hard to write one.
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo