/pinger

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

Pinger


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.

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.

Batch Usage

Pinger! can be called from the command line for batch usage, simply called the .exe with a single parameter (1 or 2).
eg. "Pinger.exe 2"