Ping-Diskless
The custom python3 utility
ping-diskless
was originally designed to ping the SWCs to watch them through the reboot cycle. It has evolved such that it will take a
--bgs
switch to ping all of the BGFShosts. In addition a set of hosts can be specified on the command line to ping just the specified hosts.
Operation
ping-diskless
sends a single ping in parallel to all of the target hosts every interval. If that succeeds the host is
reachable. An ssh is attempted to any reachable hosts; if that succeeds then the host is
up. Hosts that cannot be reached are
down. The output is terminal oriented with one line for each ping interval. A header is printed out initially and after a goodly number of lines. Any host that changes state has it's status letter ("d", "r", "u") capitalized to make it easy to see which hosts have changed between intervals. When the set of hosts is stable for a specified amount of time, the program exits.
The program supports
--help
to get more of the details.
Occasionally when the network or some of the hosts are busy, some false readings will occur. These are usually corrected in the next interval.
--
JimJacobs - 2020-12-14