ping(1) CLIX ping(1)
NAME
ping - Sends ICMP ECHO_REQUEST packets to network hosts
SYNOPSIS
ping [-R][-v] host [packetsize [count]]
FLAGS
-R Provides information on the Internet routers that the ICMP echo packet
is being sent through. When this flag is used, an option field of the
IP header is defined to accept record route data as it passes through
each router. The option header is large enought to accomodate nine
router addresses. If the number of routers in the path is greater
than the size of the option header, the option header is flagged as
invalid. The -v flag must be used with the -R flag to see the results
of the record route option.
-v Provides verbose output. Lists any ICMP packets, other than
ECHO_RESPONSE, that are received.
DESCRIPTION
The ping command measures the round-trip delays and packet losses across
network paths. It uses the ICMP protocol's mandatory ECHO_REQUEST
datagram to receive an ICMP ECHO_RESPONSE from the specified host, or
network gateway. ECHO_REQUEST datagrams, or ``pings,'' have an IP and
ICMP header, followed by a struct timeval, followed by an arbitrary number
of bytes to pad out the packet.
If there is no response from the specified host, then no output is
displayed. The ping command computes round trip times and packet loss
statistics and displays a summary of this information when the command is
terminated. The command can be terminated with an interrupt signal
<Ctrl-C>.
The default datagram packet size is 64 bytes, or you can specify a size
with the packetsize command-line parameter. If an optional count is
given, ping sends only the specified number of requests. The packetsize
parameter must be included if a count is specified.
EXAMPLES
The following example illustrates the use of the record route option (the
-R flag). You will see the results of the record route option only for
the first packet received, unless the route changes for a subsequent
packet, then information on the the new route will be displayed.
$ ping -Rv number1
2/94 - Intergraph Corporation 1
ping(1) CLIX ping(1)
PING number1: 56 data bytes
64 bytes from 129.135.250.118: icmp_seq=0. time=16. ms
IP option : Record Route
129.135.76.2
129.135.213.30
129.135.250.98
129.135.250.118
129.135.213.2
129.135.76.1
129.135.175.1
<end of options>
64 bytes from 129.135.250.118: icmp_seq=1. time=0. ms
----fatboy PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 0/8/16
RELATED INFORMATION
Commands: icmp(7), ifconfig(8), rpcinfo(8)
2 Intergraph Corporation - 2/94