Command Reference Guide

Device Location, System Utility, and Clear Commands
CLI Command Reference
September 2014 Page 195
HP Moonshot Switch Module CLI Command Reference
ping
Use this command to determine whether another computer is on the network. Ping provides a synchronous
response when initiated from the CLI and Web interfaces.
Using the options described below, you can specify the number and size of Echo Requests and the interval
between Echo Requests.
The following are examples of the CLI command.
Example: IPv4 ping success:
(Routing) #ping 10.254.2.160 count 3 interval 1 size 255
Pinging 10.254.2.160 with 255 bytes of data:
Received response for icmp_seq = 0. time = 275268 usec
Received response for icmp_seq = 1. time = 274009 usec
Received response for icmp_seq = 2. time = 279459 usec
----10.254.2.160 PING statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (msec) min/avg/max = 274/279/276
Note: For information about the ping command for IPv6 hosts, see “ping ipv6” on page 55.
Default The default count is 1.
The default interval is 3 seconds.
The default size is 0 bytes.
Format
ping {address| hostname} [count count] [interval 1-60] [size size] [source ip-address
| ipv6-address | {unit/slot/port | vlan 1-4093 | serviceport | network}]
Modes •Privileged EXEC
User EXEC
Parameter Description
address IPv4 address to ping.
hostname The DNS-resolvable host name of the system to ping. The IPv4 address is resolved if no
keyword is specified.
count The number of ping packets (ICMP Echo requests) that are sent to the destination address
specified by the
ip-address field. The range for count is 1 to 15 requests.
interval The time between Echo Requests, in seconds. Range is 1 to 60 seconds.
size The size, in bytes, of the payload of the Echo Requests sent. Range is 0 to 65507 bytes.
source The source IP address or interface to use when sending the Echo requests packets.