Description | This article describes how to create an automation stitch for the conserve mode. |
Scope | FortiGate v6.4 and above. FortiOS 7.2.6 and 7.4.0 and above will support a 192KB buffer limit. |
Solution |
FortiGate by default turns on conserve mode when memory consumption reaches 85%. Read the following articles to understand better how conserve mode is triggered: Technical Tip: How conserve mode is triggered
To create an automation stitch, check the following steps:
Using the GUI:
Name of the Automation script. Select super_admin profile.
In the CLI script enter the following: For non-VDOM based environment:
diagnose sys top-mem 99
For VDOM-based environment:
config global diagnose sys top-mem 99
Using the CLI:
config sys automation-action edit "Script" set action-type cli-script set script "diagnose sys top-mem 99 get sys status set accprofile "super_admin" next edit "Conserve mode_email" set action-type email set email-to "<email id>" set email-subject "Conserve mode" set message "%%results%%" next end
config system automation-script edit "Conserve mode" set trigger "Conserve mode" set action "Script" "Conserve mode_email" next end
diagnose sys top-mem 99
config global diagnose sys top-mem 99
Example:
Using CLI.
config sys automation-action edit "Script" set action-type cli-script set script "diagnose sys top-mem 99 set accprofile "super_admin" next edit "Conserve mode_email" set action-type email set email-to "<email id>" set email-subject "Conserve mode" set message "%%results%%" next end
config system automation-trigger edit "Conserve mode trigger" set event-type low-memory next end
config system automation-stitch edit "Conserve mode" set trigger "Conserve mode trigger" config actions edit 1 set action "Script" set required enable next edit 2 set action "Conserve mode_email" set required enable next end next end FortiOS 7.2.6 and 7.4.0 and above will support a 192KB buffer limit.
Version 7.2 does not have a pre-defined 'memory conserve mode entered' event. To create an automation stitch for these versions, select a pre-defined trigger named 'Conserve Mode'. See the image below for this trigger:
|
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.