Fortinet white logo
Fortinet white logo

CLI Reference

config system automation-condition

config system automation-condition

Condition for automation stitches.

config system automation-condition
    Description: Condition for automation stitches.
    edit <name>
        set condition-type [cpu|memory|...]
        set cpu-usage-percent {integer}
        set description {var-string}
        set input-id {integer}
        set input-state [open|close]
        set mem-usage-percent {integer}
        set vdom {string}
        set vpn-tunnel-name {string}
        set vpn-tunnel-state [tunnel-up|tunnel-down]
    next
end

config system automation-condition

Parameter

Description

Type

Size

Default

condition-type

Condition type.

option

-

cpu

Option

Description

cpu

CPU usage condition,

memory

Memory usage condition,

vpn

VPN state condition.

cpu-usage-percent

CPU usage reaches specified percentage.

integer

Minimum value: 0 Maximum value: 100

0

description

Description.

var-string

Maximum length: 255

input-id *

Input ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

input-state *

Input state.

option

-

close

Option

Description

open

Input switch is open.

close

Input switch is closed.

mem-usage-percent

Memory usage reaches specified percentage.

integer

Minimum value: 0 Maximum value: 100

0

name

Name.

string

Maximum length: 35

vdom

Virtual domain which the tunnel belongs to.

string

Maximum length: 31

root

vpn-tunnel-name

VPN tunnel name.

string

Maximum length: 79

vpn-tunnel-state

VPN tunnel state.

option

-

tunnel-up

Option

Description

tunnel-up

VPN tunnel is up.

tunnel-down

VPN tunnel is down.

* This parameter may not exist in some models.

config system automation-condition

config system automation-condition

Condition for automation stitches.

config system automation-condition
    Description: Condition for automation stitches.
    edit <name>
        set condition-type [cpu|memory|...]
        set cpu-usage-percent {integer}
        set description {var-string}
        set input-id {integer}
        set input-state [open|close]
        set mem-usage-percent {integer}
        set vdom {string}
        set vpn-tunnel-name {string}
        set vpn-tunnel-state [tunnel-up|tunnel-down]
    next
end

config system automation-condition

Parameter

Description

Type

Size

Default

condition-type

Condition type.

option

-

cpu

Option

Description

cpu

CPU usage condition,

memory

Memory usage condition,

vpn

VPN state condition.

cpu-usage-percent

CPU usage reaches specified percentage.

integer

Minimum value: 0 Maximum value: 100

0

description

Description.

var-string

Maximum length: 255

input-id *

Input ID.

integer

Minimum value: 0 Maximum value: 4294967295

0

input-state *

Input state.

option

-

close

Option

Description

open

Input switch is open.

close

Input switch is closed.

mem-usage-percent

Memory usage reaches specified percentage.

integer

Minimum value: 0 Maximum value: 100

0

name

Name.

string

Maximum length: 35

vdom

Virtual domain which the tunnel belongs to.

string

Maximum length: 31

root

vpn-tunnel-name

VPN tunnel name.

string

Maximum length: 79

vpn-tunnel-state

VPN tunnel state.

option

-

tunnel-up

Option

Description

tunnel-up

VPN tunnel is up.

tunnel-down

VPN tunnel is down.

* This parameter may not exist in some models.