Created on
12-23-2022
12:39 AM
Edited on
09-03-2023
11:17 PM
By
Jean-Philippe_P
Description | This article describes how to create an automation stitch for the conserve mode. |
Scope | FortiGate v6.4 and above. |
Solution |
FortiGate by default turns on conserve mode when memory consumption reaches 85%.
Check the following references to understand how the conserve mode is triggered:
To create an automation stitch, check the following steps:
Using 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 execute tac-report
For VDOM-based environment:
config global diagnose sys top-mem execute tac-report
Using CLI.
config sys automation-action edit "Script" set action-type cli-script set script "diagnose sys top-mem -> use enter after this. exec tac report" 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 execute tac-report
config global diagnose sys top-mem execute tac-report
Using CLI.
config sys automation-action edit "Script" set action-type cli-script set script "diagnose sys top-mem -> use enter after this. exec tac report" 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 |
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 2023 Fortinet, Inc. All Rights Reserved.