Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!rpi!sci.ccny.cuny.edu!phri!roy From: roy@phri.nyu.edu (Roy Smith) Newsgroups: comp.protocols.tcp-ip Subject: Re: Questions about the use of ping. Message-ID: <1990Aug30.164538.25832@phri.nyu.edu> Date: 30 Aug 90 16:45:38 GMT References: <227@voodoo.UUCP> Sender: news@phri.nyu.edu (News System) Organization: Public Health Research Institute, New York City Lines: 35 In article <227@voodoo.UUCP> howie@yo.uucp (howie) writes: > The man page for ping warns against using ping in shell scripts. Is it > really that dangerous to use ping automatically, if the number of packets > is limited to say, 3? I have a shell script which is run by cron every hour. It gives 100 pings to each of 4 hosts on our campus-wide LAN, and massages the output before logging it for later perusal. It lets me spot long-term trends in packet lossage on each of two point-to-point links that connect me with the University backbone. I've been doing this for at least a year without any ill effects that I've noticed. My feeling is that the man page warning is unwarranted. As an example of how useful this is, looking near the end of the current log file, I see that something bad happened last night that I need to look into. Wed Aug 29 13:46:34 EDT 1990 100 100 0% 60/87/740 Wed Aug 29 14:46:33 EDT 1990 100 100 0% 60/110/920 Wed Aug 29 15:46:32 EDT 1990 100 99 1% 60/107/980 Wed Aug 29 16:46:31 EDT 1990 100 100 0% 60/87/600 Wed Aug 29 17:46:31 EDT 1990 100 100 0% 60/83/620 Wed Aug 29 18:46:32 EDT 1990 100 94 6% 60/82/520 Wed Aug 29 19:46:32 EDT 1990 100 92 8% 60/90/520 Wed Aug 29 20:46:31 EDT 1990 100 87 13% 60/180/1020 Wed Aug 29 21:46:32 EDT 1990 100 81 19% 60/108/680 Wed Aug 29 22:46:32 EDT 1990 100 88 12% 60/133/800 Wed Aug 29 23:46:32 EDT 1990 100 82 18% 60/91/400 Thu Aug 30 00:46:32 EDT 1990 100 88 12% 60/131/780 Thu Aug 30 01:46:33 EDT 1990 100 89 11% 60/85/400 -- Roy Smith, Public Health Research Institute 455 First Avenue, New York, NY 10016 roy@alanine.phri.nyu.edu -OR- {att,cmcl2,rutgers,hombre}!phri!roy "Arcane? Did you say arcane? It wouldn't be Unix if it wasn't arcane!"