Pinger! – The Mass Host Ping Tool

Posted by Cheyne | Posted in Software | Posted on 07-03-2011

12

Pinger! is a tiny ping utility (13KB) that is used to quickly ping a large list of hosts and save the resulting successful and failure host lists into a text file.

You can now fork Pinger! on github! Please feel free to contribute to the tool or compile your own here: https://github.com/cheynewallace/pinger

Why?

When developing scripts and applications that will touch a large number of hosts, if many of those hosts are offline or no longer exist, the timeouts involved with this can slow down execution time and dramatically slow down your script or application.

In my case, I was presented with a list of 600+ servers that needed to have the exact same script run against them, a successful server took only several milliseconds to finish, a failed host took around 4 seconds to time out, clearly I needed to find out which servers were alive and which weren’t and further again I needed to list the successful servers in a clean text file, 1 host per line, so I could import this into my application as an array.

And hence Pinger! was born :)

Usage

Very simple, Pinger.exe when run looks for hosts.txt in the same directory. Simply enter in your list of host names in this text file, one per line and Pinger! will run over them 1 by 1 and output the results.
Simply extract the .zip containing Pinger.exe and hosts.txt to the same directory and open Pinger.exe.

Options

  1. Select option 1 to just ping the hosts found in hosts.txt and output the success and failure text files.
  2. Select option 2 to also include the info_info.txt file which lists the IP addresses of the host names.  (Slightly slower for large lists)

Output

3 files are outputted. these are:

  • success.txt – The list of successfully pinged hosts, in per line format
  • failure.txt – The list of hosts that failed to ping, in line by line format.
  • ip_info.txt – If option 2 is selected, this will list the hostname and the IP address’s assigned to this host.

Download v1.5

 

Comments (12)

Thanks mate for this great tool.

Hope it will help with my sites

Great tool!
I would like to use it in a batch, but can’t seem to figure out how to run it with arguments for choosing option 1 or 2 on start up.

MrMiddle, ill see what i can come up with for you.

Cheers

Ok, iv got an updated version for you with command line arguments you can use

Did you ever come up with a cmd line version. What you gave done is great but Id like to make it a scheduled task at night when Im away from my computer.

Yes i did actually … If the email address you posted with is correct, ill send you a copy of it.

Hey, Thank you for this great tool. But all results went failed. Do i need to add the proxy for this?

or any settings?
I have pasted all my links to ping in the link file. then selected option 2.

Please help. Bookmarked this page.

Never got a return email to get the cmd line version and I belive I gave you my correct email address. This tool is great. We switched some Anti-Virus updates and weekly scans to nights and its perfect for finding users who are turning them off or have standby mode enabled. I take the out import to Access and it gives me all the info I need to look at the PC’s or contact the user. ThanX for the tool. Nebraska

excellent mass ping tool .. best part is its FREE :P lol … thanks themonitoringguy .. Keep it up … and do give more tools (especially free and handy) like that in future tooo …. God Bless u

Thanks for the kind words guys. Iv released the source code on github if any of you want to contribute to the tool or compile your own. You can get it here: https://github.com/cheynewallace/pinger

Thanks for the software. Where do I get the 600 server host list to ping? I tried it with the 183 wordpress ping list and only 2 success.

Plz advise,
Dave

Thank you sir. The most useful utility I have used in a while. You have my gratitude of saving me from monotony.

Write a comment

*