machine that goes ping
By jbeck on Mar 16, 2011
The default mode of ping(1M) on Solaris is to send one packet, then report "foo is alive" after getting a response. But many people, especially those more used to the various BSD flavors of Unix, prefer the "statistics" mode of ping (i.e., "ping -s"), where a packet is sent once per second, and the round-trip-time statistics are presented, until the user hits control-c. So in build 33 of Solaris 11 I added a check: if the variable MACHINE_THAT_GOES_PING is set in the environment to a non-null value, then ping will go into "statistics" mode as if the -s flag had been provided. I neglected to update the man page for some reason, however; perhaps Easter was on my mind.