This command enables you to ping a network host. You can specify either the IPv4 or IPv6 address here. This command pings the Sensor and returns a response with the following values:
| Value | Description |
|---|---|
| icmp_seq | Number of times the Sensor is pinged |
| ttl | Number of hops between the source and destination |
| time taken | The average time taken by the Sensor to respond to the ping |
| packets transmitted | Number of packets transmitted during the ping |
| packets received | Number of packets received during the ping |
| packet loss | Number of packets lost during the execution of the command |
| rtt min/avg/max | Minimum, average and maximum time taken for a round trip in a ping cycle |
Syntax:
ping <A.B.C.D><A:B:C:D:E:F:G:H> -c <1-100>
| Parameter | Description |
|---|---|
| <A.B.C.D> | Denotes the 32-bit IP address written as four eight-bit numbers separated by periods. Each number (A,B,C or D) is an eight-bit number between 0-255. |
| <A:B:C:D:F:G:H> | Denotes the 128-bit address written as octet (eight groups) of four hexadecimal numbers, separated by colons. Each group (A,B,C,D, etc.) represents a group of hexadecimal numbers between 0000-FFFF. |
| -c <1-100> | Denotes the number of times to ping the Sensor. This is optional and can be used if the Sensor needs to be pinged multiple times. |
- For Sensor, the output is as shown below:
intruShell@fc_4050> ping 172.16.100.100
PING 172.16.100.100 with 32[60] bytes of data
40 bytes from host 172.16.100.100: icmp_seq=1 ttl=64 time taken 0.30 msec
--- 172.16.100.100 ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0.30ms
rtt min/avg/max = 0.30/0.30/0.30 msec
- For Sensor, when it is pinged multiple times, the output is as shown below:
intruShell@fc_4050> ping 172.16.100.100 -c 3
PING 172.16.100.100 with 32[60] bytes of data
40 bytes from host 172.16.100.100: icmp_seq=1 ttl=64 time taken 0.41 msec
40 bytes from host 172.16.100.100: icmp_seq=2 ttl=64 time taken 0.20 msec
40 bytes from host 172.16.100.100: icmp_seq=3 ttl=64 time taken 0.19 msec
--- 172.16.100.100 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 0.80ms
rtt min/avg/max = 0.19/0.26/0.41 msec
The following command pings a 128 bit address written as an octet of four hexadecimal numbers.
ping 2001:0db8:8a2e:0000:0000:0000:0000:0111
Applicable to:NS-series Sensors