Fortinet white logo
Fortinet white logo
7.2.11

execute ping

execute ping

Description: Use this command to perform an ICMP ECHO request (a ping) to a host by specifying its FQDN or IP address.

#execute ping [OPTIONS] HOST

Options

Option

Description

Sample commands

-4,-6

Force IP or IPv6 name resolution

execute ping -4 192.168.1.2

-c CNT

Send only CNT pings

execute ping -c 4 192.168.1.2

-s SIZE

Send SIZE data bytes in packets (default:56)

execute ping -s 4096 192.168.1.2

-t TTL

Set TTL

execute -t 3 192.168.1.2

-I IFACE/IP

Use interface or IP address as source

execute ping -I port1 192.168.1.2

-W SEC

Seconds to wait for the first response (default:10)

execute ping -W 5 192.168.1.2

-w SEC

Seconds until ping exits (default:infinite)

execute ping -w 5 192.168.1.2

-q

Quiet, only displays output at start and when finished

execute ping -q 5 192.168.1.2

execute ping

execute ping

Description: Use this command to perform an ICMP ECHO request (a ping) to a host by specifying its FQDN or IP address.

#execute ping [OPTIONS] HOST

Options

Option

Description

Sample commands

-4,-6

Force IP or IPv6 name resolution

execute ping -4 192.168.1.2

-c CNT

Send only CNT pings

execute ping -c 4 192.168.1.2

-s SIZE

Send SIZE data bytes in packets (default:56)

execute ping -s 4096 192.168.1.2

-t TTL

Set TTL

execute -t 3 192.168.1.2

-I IFACE/IP

Use interface or IP address as source

execute ping -I port1 192.168.1.2

-W SEC

Seconds to wait for the first response (default:10)

execute ping -W 5 192.168.1.2

-w SEC

Seconds until ping exits (default:infinite)

execute ping -w 5 192.168.1.2

-q

Quiet, only displays output at start and when finished

execute ping -q 5 192.168.1.2