Technical Tip: Automation stitch for conserve mode
| Description | This article describes how to create an automation stitch for the conserve mode. |
| Scope | FortiOS v7.2.6 and v7.4.0 and above will support a 192KB buffer limit. |
| Solution | FortiGate by default turns on conserve mode when memory consumption reaches 88%. Read the following articles to understand better how the conserve mode is triggered: It is possible to generate an automation script to collect the relevant logs when the conserve mode is triggered. This is essential for support engineers to understand which process consumes more memory.
To create an automation stitch, check the following steps:
For FortiGate v7.0, v7.2, v7.4 and v7.6.
Using the GUI:
get system status
config global get system status
Example:
It may take a couple of minutes to receive an email. If the email is not received after selecting Test Automation Stitch, refer to this article to see why the email alerts are not working. Technical Tip: How to check why automation stitch is not working as expected
Using CLI.
config sys automation-action edit "Script" set action-type cli-script set script "get system 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-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 v7.2.6 and v7.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:
To configure automation stitch before the unit goes into conserve mode at a specific memory usage percentage (i.e., 80%), refer to the following article: Technical Tip: Getting automation stitch before the unit goes into Conserve Mode.
Related articles:
|


