
Administering TCP/IP
Managing the Internet Control Message Protocol (ICMP)
MAX Administration Guide
7-21
Pinging remote IP hosts
The terminal-server Ping command is useful for verifying that the transmission path is open
between the MAX unit and another station. It sends an ICMP echo-request packet to the
specified station. If the station receives the packet, it returns an ICMP echo-response packet.
The Ping command has the following syntax:
ping [-q] [-v] [-c count] [-i sec | -I msec] [-s packetsize]
[-x src_address] host
All syntax elements are optional except the destination hostname or IP address. The elements
of the syntax are as follows:
For example, to Ping the host
techpubs
:
ascend% ping techpubs
PING techpubs (10.65.212.19): 56 data bytes
64 bytes from 10.65.212.19: icmp_seq=0 ttl=255 time=0 ms
64 bytes from 10.65.212.19: icmp_seq=3 ttl=255 time=0 ms
^C
--- techpubs ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/MAX = 0/0/0 ms
Terminate the Ping exchange at any time by pressing Ctrl-C. When you press Ctrl-C, the
output reports the number of packets sent and received, the percentage of packet loss, any
duplicate or damaged echo-response packets, and round-trip statistics. In some cases,
round-trip times cannot be calculated.
Syntax element
Description
-q
Quiet mode. The MAX displays only the summary of all Ping
responses it has received.
-v
Verbose output. The MAX displays information from each ping
response that it receives as well as the summary of all Ping responses.
This is the default.
-c count
Specifies the number of Ping requests that the MAX sends to the host.
By default, the MAX sends continual ping requests until you press
Ctrl-C.
-i sec
Specifies the length of time, in seconds, between Ping requests. Spec-
ify seconds using the
-i
option, or milliseconds using the
-I
option,
but not both. The default is one second.
-I msec
Specifies the length of time, in milliseconds, between Ping requests.
Specify milliseconds using the
-I
option, or seconds using the
-i
option, but not both.
-s packetsize
Specifies the size of each Ping request packet that the MAX sends to
the host. The default is 64 bytes.
-x srcaddress
Specifies a source IP address that overwrites the default source
address.
host
Specifies the destination host by name or IP address.