Description | This article describes how to configure the automation stitch to reboot the managed FortiSwitch daily at a desired time. |
Scope | FortiGate. |
Solution |
Here are the CLI script to configure this automation stitch for 1:00am specific time and date: Step 1 (Automation Action): config system automation-action edit "Restart_FortiSwitch_action" set action-type cli-script set script "execute switch-controller switch-action restart swtp all" set accprofile "super_admin" next end
Step 2 (Automation Trigger):
config system automation-trigger edit "restart_FortiSwitch_trigger" set trigger-type scheduled next end
Step 3 (Automation Stitch): config system automation-stitch edit "Restart_FortiSwitch_stitch" set trigger "restart_FortiSwitch_trigger" config actions edit 1 set action "Restart_FortiSwitch_action" set required enable next end next end
Note:
Related document: Execute switch-controller |
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.