Summary: Ping options

From: K. R. Fulton (krf@wtspop.chinalake.navy.mil)
Date: Fri Jul 11 1997 - 10:07:44 CDT


Thanks to most whom responded.
In reading the man page I still did not completely understand that I could simply give a count, thereby getting a faster response. It would have helped if I had tried the options to see how they worked.
Anyway this good for me: %ping host count
Thanks!

Gary Franczyk [franczyk@e-one.com]
do a 'ping machine 1'
if you want it to ping only for one second.

Jens Fischer [jefi@kat.ina.de]
RTFM!!!
man ping!

Shriman Gurung [shriman@venus.co.uk]
ping host [timeout]
the default timeout being 20 secs.
If I use the ping -s host form I cant change the timeout but I can alter
the number of requests. But I can alter the interval between successive
requests, which may help if your target host is difficult to reach.
I'm sure that the ping with 251 is the same as with 2.5 - at least, the
man page hasn't been changed in a long while.

Roland Grefer [btirg@ui.uis.doleta.gov]
To the contrary; the man page indicates, that
        ping -I interval_in_seconds
be used to change the interval between issuing requests

Karl von Jena [kvj@ix.netcom.com]
The man page does tell you how to alter the count. If you look at the
syntax line, the last thing that it shows is [count]. So if you want to
ping host Zippy only twice you would type:
ping Zippy 2

Vasu Srisanan [vasu@center.oaep.go.th]
SYNOPSIS
     ping host [ timeout ]
     ping [ -s ] [ -dlLnrRv ] [ -i interface ] [ -I interval ]
          [ -t ttl ] host [ packetsize ]
          [ count ]
The default value of timeout is 20 seconds.
     -I interval
          Specify the interval between successive transmissions.
          The default is one second.
I don't know if this apply to Solaris 2.5 or not.

Niall O Broin [nobroin@esoc.esa.de]
What do you do with man pages - eat them or make paper airplanes (oops - you're
from the Navy - maybe you make paper boats) because I can't believe that you read
them :-)
Quote from the Solaris ping man page (I added the <----------------)

Sasanka Sekhar Griddalur [sgriddal@cvimail.cv.com]
Use -t option and specify time to live in seconds.
e.g ping -t 3 hostname

Juan Nicolas Ruiz N. [nicolas@ciens.ula.ve]
The "ping" that comes with Solaris doesn't have this option, but the
GNU ping have the "-i <seconds>" flag, that allows you to set an interval
longer than 1 second. You will need a C compiler (I would suggest the GNU C

Matthew Stier [Matthew.Stier@tddny.fujitsu.com]
Re-read the manpage.
-I is the interval between requests.
count or timeout is the number of request to issue.
IE:
        ping -I 5 host # Send ICMP request five seconds apart.
        ping host 56 5 # Send five ICMP requests to the host.
        ping -I 2 host 56 5 # Send five ICMP request at 2 second intervals
Note: The count value is position dependent. Using a packetsize value
of 56, create standard size packets of 64 bytes.
compiler).

Reto Lichtensteiger [rali@meitca.com]
%uname -a
SunOS anomaly 5.5.1 Generic_103640-08 sun4m sparc SUNW,SPARCstation-20
%man ping
NAME
     ping - send ICMP ECHO_REQUEST packets to network hosts
SYNOPSIS
     /usr/sbin/ping host [ timeout ]
     /usr/sbin/ping [ -s ] [ -dlLnrRv ] [ -i interface ] [ -I interval ]
          [ -t ttl ] host [ packetsize ]
          [ count ]
If you wish to issue a +single+ ping packet you can set the timeout.
If you wish to issue multiple pings, then you can set the number, but not
the timeout.

Keith Fulton
Computer Support Team
Weapons Test Squadron, China Lake
760.939.5181
760.939.5859 (FAX)



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:58 CDT