3 ping—checking host availability, Running ping at a terminal, Examples – HP Integrity NonStop H-Series User Manual

Page 29

Advertising
background image

3 PING—Checking Host Availability

The PING program is used to test whether another host is reachable. PING sends an Internet Control
Message Protocol (ICMP) echo request message to a host, expecting an ICMP echo reply to be
returned. PING measures the round-trip time of the message exchange and monitors any packet
loss across network paths.

PING program execution is restricted to the SUPER.SUPER user ID.

Running PING at a Terminal

The command syntax for running PING at a terminal is:

PING [ -d ] [ -r ] [ -s src-addr ] [ -v ][ -w timeout ]

host-name [ data-size ] [ num-packets ]

[-d ]

sets the SO_DEBUG option on the socket being used.

[ -r ]

bypasses the normal routing tables and sends the message directly to a host on an attached
network.

[ -s src-addr ]

specifies that the IP address in src-addr should be used as the source address in outgoing
probe packets. The address specified in src-addr must be an IP address rather than a host
name.

On NonStop systems with more than one IP address, you can use the -s option to change the
source address to be something other than the IP address that Ping would use by default.

The IP address you specify for src-addr must be one of the IP addresses of the NonStop
system from which you are sending packets. Otherwise, an error message is returned.

[ -v ]

specifies verbose output. Results in listing ICMP packets other than ECHO_RESPONS that are
received.

[ -w ]

specifies a waiting period of timeout seconds between each packet (sending).

host-name

specifies the host name or host IP address of the target host on the network.

[ data-size ]

specifies the number of data bytes to be sent. The default is 56 which, when combined with
the 8-byte ECMP header data, translates to 64 ICMP data bytes.

[ num-packets ]

specifies the maximum number of ECHO_RESPONSE packets to be sent (and received).
Command executions stops when this limit is reached.

Examples

The following example shows the entry of the PING command using an IPv4 address. The example
includes the result of that command (note that the number of bytes reported includes the 8-byte
ICMP header data):

Running PING at a Terminal

29

Advertising
This manual is related to the following products: