Fortinet white logo
Fortinet white logo

CLI Reference

system automation-trigger

system automation-trigger

Use this command to configure the triggers in the Automation feature.

To use this command, your administrator account’s access control profile must have either w or rw permission to the mntgrp area. For details, see Permissions.

Syntax

config system automation-trigger

edit <trigger_name>

set comments <string>

set trigger-type event_based

set event-type {high-cpu | event-log | reboot | HA}

set logid <int>

config fields

edit <index>

set name <string>

set value <string>

next

end

next

end
Variable Description Default

<trigger_name>

Enter a name for the trigger. No default.

comments <string>

Enter a description for the trigger.

No default.

trigger-type event_based

Now we only support event_based trigger. event_based

set event-type {high-cpu | event-log | reboot | HA}

Select the type of the event for the trigger. FortiWeb will take action when the specified event occurs.

  • high-cpu: Available memory is less than 100 MB.

  • event-log: The system prints certain even logs.

  • reboot: The system reboots.

  • HA: HA fail-over occurs.

No default.

If the event-type is event-log, define the following parameters:

logid

Enter the id of the event log.

No default.

<index>

Enter the index of the filter to filter out specific event logs.

No default.

name <string>

The name of the log field to be used to filter out certain logs.

No default.

value <string>

The value of the log field to be used to filter out certain logs.

No default.

Related topics

system automation-trigger

system automation-trigger

Use this command to configure the triggers in the Automation feature.

To use this command, your administrator account’s access control profile must have either w or rw permission to the mntgrp area. For details, see Permissions.

Syntax

config system automation-trigger

edit <trigger_name>

set comments <string>

set trigger-type event_based

set event-type {high-cpu | event-log | reboot | HA}

set logid <int>

config fields

edit <index>

set name <string>

set value <string>

next

end

next

end
Variable Description Default

<trigger_name>

Enter a name for the trigger. No default.

comments <string>

Enter a description for the trigger.

No default.

trigger-type event_based

Now we only support event_based trigger. event_based

set event-type {high-cpu | event-log | reboot | HA}

Select the type of the event for the trigger. FortiWeb will take action when the specified event occurs.

  • high-cpu: Available memory is less than 100 MB.

  • event-log: The system prints certain even logs.

  • reboot: The system reboots.

  • HA: HA fail-over occurs.

No default.

If the event-type is event-log, define the following parameters:

logid

Enter the id of the event log.

No default.

<index>

Enter the index of the filter to filter out specific event logs.

No default.

name <string>

The name of the log field to be used to filter out certain logs.

No default.

value <string>

The value of the log field to be used to filter out certain logs.

No default.

Related topics