Posted: Sat 05 Nov 2011, 00:51 Post_subject:
Ding - an M$ style of wrapper for Ping
Over the years I've gotten used to a particular functionality of the M$ version of ping.
You can run it on a machine and watch from across the room and see the results just by the pattern created on the console by the output. This can come in handy in troubleshooting in commercial situations, especially while dealing with telco's while on the phone, etc ...
The Unix/linux ping is a more versatile diagnostic tool, but doesn't have the crude monitoring capability of the M$ version which I've grown to appreciate.
So I made this script wrapper that will create that similar type of functionality.
Ding does the following things:
1) Reports a live host
2) Reports a "request time out"
3) Upon exit reports percentage of packet loss
I have designed it so that it doesn't create a static image on screen if successfully pinging. Every 20 pings it elongates an output so that on a standard 25 line screen there is always an irregular shaped line scrolling up the screen. RTO's will stay static on the screen, but that's desirable.