network ping
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
Ping
Availability: This command is available to cluster and Vserver administrators at the admin privilege level.
Description
The network ping
command displays whether a remote address is reachable and responsive, the (if specified) number of transmitted and received packets, and their round-trip time. The command requires a source node or logical interface from where the ping will be run, and a destination IP address. You can specify the source node by name, or a logical interface and its Vserver.
Parameters
- {
-node <nodename>
- Node -
Use this parameter to send the ping from the node you specify.
- |
-lif <lif-name>
- Logical Interface } -
Use this parameter to send the ping from the logical interface you specify.
-vserver <vserver>
- Vserver-
Use this parameter to send the ping from the Vserver where the intended logical interface resides. The default value is the system Vserver for cluster administrators.
[-use-source-port {true|false}]
- (DEPRECATED)-Use Source Port of Logical Interface (privilege: advanced)-
This parameter is only applicable when the
-lif
parameter is specified. When set to true, the ping packet will be sent out via the port which is currently hosting the IP address of the logical interface. Otherwise, the ping packet will be sent out via a port based on the routing table.The use-source-port
parameter is deprecated and may be removed in a future release of Data ONTAP. -destination <Remote InetAddress>
- Destination-
Use this parameter to specify the remote internet address destination of the ping.
[-s, -show-detail <true>]
- Show Detail Output-
Use this parameter to display detailed output about the ping.
[-R, -record-route <true>]
- Record Route-
Use this parameter to display the route followed by the ping. You should set this option to
false
for pinging to succeed. [-v, -verbose <true>]
- Show All ICMP Packets-
Use this parameter to display all ICMP packets.
[-packet-size <integer>]
- Packet Size-
Use this parameter to specify the number of data bytes to be sent in the ping packet. The default is 56 bytes, which is 64 ICMP data bytes total after 8 bytes of ICMP header data is added.
[-count <integer>]
- Count-
Use this parameter to specify the maximum number of ECHO_REQUESTS to be sent to the destination. The default is 20 requests. In the absence of the 'show-detail' option, ping reports that the destination is alive after receiving the first ECHO_REPLY response, independent of this value.
[-wait <integer>]
- Packet Send Wait Time (secs)-
Use this parameter to specify the number of seconds to wait between sending packets. The default is one second.
[-flood <true>]
- Flood Ping (privilege: advanced)-
Use this parameter to execute the command in flood mode. In flood mode, the command issues pings as fast as they are received, unless you specify a wait time.
[-D, -disallow-fragmentation <true>]
- Disallow Packet Fragmentation-
Use this parameter to prevent transport mechanisms from fragmenting ping packets in transit. Preventing fragmentation assures consistent packet size, making it easier to see transport bottlenecks.
[-wait-response <integer>]
- Packet Response Wait Time (ms)-
Use this parameter to specify the number of milliseconds to wait for each response packet. The default is 10000 milliseconds (10 seconds).
[-services <LIF Service Name>,…]
- Services-
Use this paramter to specify the list of services used to select the LIF from which to send the ping.
Examples
This example shows a ping from node xena to the destination server 10.98.16.164 with the server responding that it is up and running.
cluster1::> network ping -node xena -destination 10.98.16.164 (network ping) 10.98.16.164 is alive