ping

Purpose

Tests whether a host or other device is active and reachable.

To interrupt the ping command, enter Ctrl-C.

Required permissions

For Digi products with two or more users, set permissions to set permissions display=execute to use this command. See set permissions for details on setting user permissions for commands.

Syntax

ping ipaddress [options]

Options

ipaddress

Identifies the target of the ping command by its IP address.

options

The options associated with the ping command, which are:

count=0|n

The number of ping commands to be issued. 0 means ping until interrupted. The default is 0.

interval=milliseconds

The ping time in milliseconds. The default is 1000 milliseconds.

size=bytes

The number of bytes to send in each ping packet. The value range is 1 through 1016 (bytes).The default is 56 bytes.

Examples

Specify a simple ping

The following command determines whether the specified host can be reached:

#> ping 199.150.150.10
PING 10.8.16.16: 64 data bytes
64 bytes from 199.150.150.10: icmp_seq=0 time=0 ms
64 bytes from 199.150.150.10: icmp_seq=1 time=0 ms
64 bytes from 199.150.150.10: icmp_seq=2 time=0 ms
64 bytes from 199.150.150.10: icmp_seq=3 time=0 ms
64 bytes from 199.150.150.10: icmp_seq=4 time=0 ms
[Ctrl-C entered to interrupt "ping" command]
--- 199.150.150.10 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss
round-trip min/avg/max = 0/0/0 ms