Description | This article describes how to schedule and disable/enable FortiGate interfaces. |
Scope | FortiOS v6.4, v7.0, v7.2, v7.4, v7.6. |
Solution |
Sometimes is needed to do a scheduled disable/enable the interface to reduce the unnecessary usage of specific interfaces. The below steps show how to configure an auto-script which will disable port3 at 18:00 and will enable it back at 9:00.
Schedule the script to disable the port at 18:00 every day:
Script which will disable the port3:
config system automation-action
Automation stitch, configured to disable port3 at 18:00 every day :
end
Schedule the script to enable the port at 09:00 every day:
config system automation-trigger end
Script which will enable the port3:
config system automation-action end
Automation stitch configured to enable port3 at 09:00 :
config system automation-stitch
Commands below can be used, to check the status of automation stitch :
diagnose test application autod 3 stitch: Disable_interface (scheduled) local hit: 1 relayed to: 0 relayed from: 0
local hit: 1 relayed to: 0 relayed from: 0 |
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 2025 Fortinet, Inc. All Rights Reserved.