scanhosts -- run checkhosts against a large number of hosts
scanhosts [-BHIPSh] [-A authmode] [-n num] [-o dir] [-p script] [-s suffix] -f file -r script
The scanhosts utility is used to run checkhosts(1) against a large number of hosts. It is normally invoked via autopw(1) by scanslave(1) . It splits the input and then invokes checkhosts(1) on the individual files in the background, eventually waiting for them all to complete. It then invokes the optionally provided post-processing command, passing it the name of the output directory as the single argument.
The following options are supported:
Output is generated in the directory “output” under the directory specified via -o dir. In that directory, N subdirectories will be created (where N is the number of files the input was split into), into which the checkhosts(1) instance will generate output.
The following examples illustrate common usage of this tool.
This runs the scans without checking if a host pings, reads input from the file /tmp/input, splits the input into files of 20 lines each and puts the output into the directory ./output/20070227 under the current working directory:
$ autopw scanhosts -P -n 20 -f /tmp/input -o ./output/20070227 \ -r /tmp/remote.sh
The scanhosts utility exits 0 on success, and >0 if an error occurs.
autopw(1) , checkhosts(1) , scanslave(1) , scanmaster(1)
The scanhosts utility was originally written by Jan Schaumann <jschauma@yahoo-inc.com> in January 2007. It’s original task was to check hosts if they were able to deal with the new Daylight Saving Time instituted in the USA in 2007.
Please reports bugs or feature requests to the author.