Fortinet black logo

CLI Reference

execute health-check-verify

execute health-check-verify

Use this command to use the specified health check to check the status of any IP address.

Syntax

execute health-check-verify <ip address> <hc name> count <int> interval <int> timeout <int> <port>|<enter>

<ip address>

The IP address of the health check object.

<hc name>

The name of the health check object.

Note: The health check MUST be an existing Health Check in FortiADC.

count <int>

Optional: Specify the count. Range is 1 - 1000 (default = 1).

interval <int>

Optional: Specify the amount of time after the previous health check before this health check executes, in seconds (1 - 3600, default = 5).

timeout <int>

Optional: Specify the timeout period between health checks, in seconds (1 - 3600, default = 3).

<port>|<enter>

If you set a port value, health check traffic will use the port. If you do not set the port value but press Enter instead, health check traffic will use the port value from the specified health check name.

Example

FortiADC-VM # execute health-check-verify LB_HLTHCK_ICMP 10.0.0.1

recv hc state is UP

FortiADC-VM # execute health-check-verify LB_HLTHCK_HTTP 10.0.0.1 8080

recv hc state is DOWN

execute health-check-verify

Use this command to use the specified health check to check the status of any IP address.

Syntax

execute health-check-verify <ip address> <hc name> count <int> interval <int> timeout <int> <port>|<enter>

<ip address>

The IP address of the health check object.

<hc name>

The name of the health check object.

Note: The health check MUST be an existing Health Check in FortiADC.

count <int>

Optional: Specify the count. Range is 1 - 1000 (default = 1).

interval <int>

Optional: Specify the amount of time after the previous health check before this health check executes, in seconds (1 - 3600, default = 5).

timeout <int>

Optional: Specify the timeout period between health checks, in seconds (1 - 3600, default = 3).

<port>|<enter>

If you set a port value, health check traffic will use the port. If you do not set the port value but press Enter instead, health check traffic will use the port value from the specified health check name.

Example

FortiADC-VM # execute health-check-verify LB_HLTHCK_ICMP 10.0.0.1

recv hc state is UP

FortiADC-VM # execute health-check-verify LB_HLTHCK_HTTP 10.0.0.1 8080

recv hc state is DOWN