So I manage a lot of IP ranges for my company (we have over 150 different collocations we use through out the world) and often times when we do a router upgrade or install at a new site I need to quickly ping our individual machines (and other equipment) to verify that all the machines are installed properly(If I can ping them I can usually connect to them remotely).
Now normally I would just fire up my cmd prompt and type in the ip address one at a time, however I'm sure you can see how this gets very tiresome once we get into the 10-20 address range. So what I'm looking for is either
1. a way to, using just ping commands, ping a range of addresses in a "batch" (i.e. 192.168.16.1 - 100)
or
2. a program that will just send out the ping to that range for me.
I tried
nmap but its a bit overkill for what I need since I don't care what ports on open on the machines or what OS they are running I really just need to know "Is the equipment responding y/n?"
Any help or suggestions would be appreciated.
Posts
open up a text editor.
write the following:
ping 192.168.x.xxx
ping 192.168.x.yyy
ping 192.168.x.zzz
etcetera
save as "ping.bat" or something.
then run ping.bat from cmd prompt.
Since you already have nmap, just us the -sP for ping only, you'll get an output like:
Sample Output:
fping -g 192.168.0.1 192.168.0.5
192.168.0.1 is alive
192.168.0.2 is alive
192.168.0.3 is unreachable
192.168.0.4 is alive
192.168.0.5 is unreachable
So will a .bat file.
I setup a monitoring server with nagios when I first started working ISP helpdesk. They still use it to this day, and it'll handle SMS and e-mail alerts with a little bit of fiddling which I assume you're more than capable of.
No man should have that kind of power.(Twitter)
Worked great thanks so much this was exactly what I was looking for.
See the thing is I don't want to have to copy a bunch of IPs in to a file and then make it a .bat. I needed something that would allow me to just ping a range very quickly. Also thanks to everyone else and the suggestions but I just don't need a monitoring client (that's why we have a 24/7 NOC) I just needed to quickly tell if a range was up when we install new machines.
Thanks again