Fortinet white logo
Fortinet white logo

CLI Reference

config system link-monitor

config system link-monitor

Configure Link Health Monitor.

config system link-monitor
    Description: Configure Link Health Monitor.
    edit <name>
        set srcintf {string}
        config server
            Description: IP address of the server(s) to be monitored.
            edit <address>
            next
        end
        set protocol [ping|tcp-echo|...]
        set port {integer}
        set gateway-ip {ipv4-address-any}
        set source-ip {ipv4-address-any}
        set http-get {string}
        set http-match {string}
        set interval {integer}
        set timeout {integer}
        set failtime {integer}
        set recoverytime {integer}
        set security-mode [none|authentication]
        set password {password}
        set packet-size {integer}
        set ha-priority {integer}
        set update-cascade-interface [enable|disable]
        set update-static-route [enable|disable]
        set status [enable|disable]
    next
end

config system link-monitor

Parameter

Description

Type

Size

name

Link monitor name.

string

Maximum length: 35

srcintf

Interface that receives the traffic to be monitored.

string

Maximum length: 15

protocol

Protocols used to monitor the server.

option

-

Option

Description

ping

PING link monitor.

tcp-echo

TCP echo link monitor.

udp-echo

UDP echo link monitor.

http

HTTP-GET link monitor.

twamp

TWAMP link monitor.

port

Port number of the traffic to be used to monitor the server.

integer

Minimum value: 1 Maximum value: 65535

gateway-ip

Gateway IP address used to PING the server.

ipv4-address-any

Not Specified

source-ip

Source IP address used in packet to the server.

ipv4-address-any

Not Specified

http-get

If you are monitoring an HTML server you can send an HTTP-GET request with a custom string. Use this option to define the string.

string

Maximum length: 1024

http-match

String that you expect to see in the HTTP-GET requests of the traffic to be monitored.

string

Maximum length: 1024

interval

Detection interval.

integer

Minimum value: 1 Maximum value: 3600

timeout

Detection request timeout.

integer

Minimum value: 1 Maximum value: 255

failtime

Number of retry attempts before the server is considered down

integer

Minimum value: 1 Maximum value: 10

recoverytime

Number of successful responses received before server is considered recovered.

integer

Minimum value: 1 Maximum value: 10

security-mode

Twamp controller security mode.

option

-

Option

Description

none

Unauthenticated mode.

authentication

Authenticated mode.

password

Twamp controller password in authentication mode

password

Not Specified

packet-size

Packet size of a twamp test session,

integer

Minimum value: 64 Maximum value: 1024

ha-priority

HA election priority.

integer

Minimum value: 1 Maximum value: 50

update-cascade-interface

Enable/disable update cascade interface.

option

-

Option

Description

enable

Enable update cascade interface.

disable

Disable update cascade interface.

update-static-route

Enable/disable updating the static route.

option

-

Option

Description

enable

Enable updating the static route.

disable

Disable updating the static route.

status

Enable/disable this link monitor.

option

-

Option

Description

enable

Enable this link monitor.

disable

Disable this link monitor.

config server

Parameter

Description

Type

Size

address

Server address.

string

Maximum length: 64

config system link-monitor

config system link-monitor

Configure Link Health Monitor.

config system link-monitor
    Description: Configure Link Health Monitor.
    edit <name>
        set srcintf {string}
        config server
            Description: IP address of the server(s) to be monitored.
            edit <address>
            next
        end
        set protocol [ping|tcp-echo|...]
        set port {integer}
        set gateway-ip {ipv4-address-any}
        set source-ip {ipv4-address-any}
        set http-get {string}
        set http-match {string}
        set interval {integer}
        set timeout {integer}
        set failtime {integer}
        set recoverytime {integer}
        set security-mode [none|authentication]
        set password {password}
        set packet-size {integer}
        set ha-priority {integer}
        set update-cascade-interface [enable|disable]
        set update-static-route [enable|disable]
        set status [enable|disable]
    next
end

config system link-monitor

Parameter

Description

Type

Size

name

Link monitor name.

string

Maximum length: 35

srcintf

Interface that receives the traffic to be monitored.

string

Maximum length: 15

protocol

Protocols used to monitor the server.

option

-

Option

Description

ping

PING link monitor.

tcp-echo

TCP echo link monitor.

udp-echo

UDP echo link monitor.

http

HTTP-GET link monitor.

twamp

TWAMP link monitor.

port

Port number of the traffic to be used to monitor the server.

integer

Minimum value: 1 Maximum value: 65535

gateway-ip

Gateway IP address used to PING the server.

ipv4-address-any

Not Specified

source-ip

Source IP address used in packet to the server.

ipv4-address-any

Not Specified

http-get

If you are monitoring an HTML server you can send an HTTP-GET request with a custom string. Use this option to define the string.

string

Maximum length: 1024

http-match

String that you expect to see in the HTTP-GET requests of the traffic to be monitored.

string

Maximum length: 1024

interval

Detection interval.

integer

Minimum value: 1 Maximum value: 3600

timeout

Detection request timeout.

integer

Minimum value: 1 Maximum value: 255

failtime

Number of retry attempts before the server is considered down

integer

Minimum value: 1 Maximum value: 10

recoverytime

Number of successful responses received before server is considered recovered.

integer

Minimum value: 1 Maximum value: 10

security-mode

Twamp controller security mode.

option

-

Option

Description

none

Unauthenticated mode.

authentication

Authenticated mode.

password

Twamp controller password in authentication mode

password

Not Specified

packet-size

Packet size of a twamp test session,

integer

Minimum value: 64 Maximum value: 1024

ha-priority

HA election priority.

integer

Minimum value: 1 Maximum value: 50

update-cascade-interface

Enable/disable update cascade interface.

option

-

Option

Description

enable

Enable update cascade interface.

disable

Disable update cascade interface.

update-static-route

Enable/disable updating the static route.

option

-

Option

Description

enable

Enable updating the static route.

disable

Disable updating the static route.

status

Enable/disable this link monitor.

option

-

Option

Description

enable

Enable this link monitor.

disable

Disable this link monitor.

config server

Parameter

Description

Type

Size

address

Server address.

string

Maximum length: 64