SUMMARYRe: Re: Reupdate ping script

From: Dave McDonald <unix_man_at_sympatico.ca>
Date: Thu Jul 25 2002 - 11:55:14 EDT
Thanks for the responses, the below syntax is what was needed for the script.
> 
> 
> > ping -s 127.0.0.1 64 3
> PING 127.0.0.1: 64 data bytes
> 72 bytes from localhost (127.0.0.1): icmp_seq=0. time=0. ms
> 72 bytes from localhost (127.0.0.1): icmp_seq=1. time=0. ms
> 72 bytes from localhost (127.0.0.1): icmp_seq=2. time=0. ms
> 
> ----127.0.0.1 PING Statistics----
> 3 packets transmitted, 3 packets received, 0% packet loss
> round-trip (ms)  min/avg/max = 0/0/0
> >
> 
> It works.  You have to specify the data size, which wasn't immediately
> clear from the man page.  If you do the above, does something different
> happen on your Solaris 8 box?
> 
> Rob
> 
> -- 
> ------------------------------------------------------------------------------
> Rob McCauley
> Radiation Oncology
> Duke University Medical Center
> 
> On Thu, 25 Jul 2002, Dave McDonald wrote:
> 
> > The count doen not work, and the version of ping from Solaris is not the best and lacke functionality.
> > 
> > 
> > >> 
> > > man page for ping shows
> > > 
> > >  /usr/sbin/ping  -s   [  -l  |  -U  ]   [  -adlLnrRv   ]    [
> > >      -A addr_family  ]  [ -c traffic_class ]  [ -g gateway  [  -g
> > >        gateway ...  ]  ]  [ -F flow_label ]  [ -I interval  ]   [
> > >      -i interface ]  [ -P tos ]  [ -p port ]  [ -t ttl ]  host  [
> > >      data_size ]  [ count ]
> > > 
> > > 
> > > Nick Boyce
> > > Systems Administrator
> > > Tradelink, LLC
> > > 200 W. Jackson Blvd., suite 2300
> > > Chicago, IL 60606
> > > 
> > > On Thu, 25 Jul 2002, Dave McDonald wrote:
> > > 
> > > > I have a script that will ping a device and displays all the stats.
> > > >
> > > > 64 bytes from host (1.1.1.1): icmp_seq=0. time=0. ms
> > > > 64 bytes from host (10..1.1.1): icmp_seq=1. time=0. ms
> > > > ^C
> > > >
> > > > How can I send only 3 pings or how can I implement a ^C into the script so it
> > > > will display the results and move on to the next test in the same script?
> > > >
> > > > When I look for a count in the ping that came with Solaris 8, there isn't one.
> > > > Thanks
> > > > _______________________________________________
> > > > sunmanagers mailing list
> > > > sunmanagers@sunmanagers.org
> > > > http://www.sunmanagers.org/mailman/listinfo/sunmanagers
> > _______________________________________________
> > sunmanagers mailing list
> > sunmanagers@sunmanagers.org
> > http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Aug 1 04:25:35 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:53 EST