FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
gmanea
Staff
Staff
Article Id 191859

Description

 

This article describes how to set up FortiGate to reboot at a pre-defined time.

 

Scope

 

FortiGate.

 

Solution

 

Automation stitch reboot.
The option presents integration with the operational level of the network. 
An action can be triggered based on specific predefined triggers.
 
In this example, a periodic reboot not triggered by a specific event has been used. Instead, here a scheduled reboot is being configured.
 
Note:
Use short, simple names, and preferably no spaces (if used, use colon in the CLI) in the name field.
 
Security Fabric>Automation>Create NewSecurity Fabric>Automation>Create NewSelect ScheduleSelect ScheduleFrequency can be according to the requirementFrequency can be according to the requirementAction will be CLI ScriptAction will be CLI Script5..PNGselect super_adminselect super_adminCan be tested via Test Automation StichCan be tested via Test Automation Stich
 
The CLI commands created by this action:
 
   config system automation-trigger
     edit "Weekly Reboot"
       set trigger-type scheduled
       set trigger-frequency weekly
       set trigger-weekday sunday
       set trigger-hour 23
       set trigger-minute 1
     next
   end
   config system automation-action
  edit "Reboot"
    set action-type cli-script
    set script "execute reboot"
    set accprofile "super_admin"
  next
end
   config system automation-stitch
     edit "Weekly Reboot"
       set trigger "Weekly Reboot"
       config actions
           edit 1
               set action "Reboot"
               set required enable
           next
       end
    next
   end
 
Note
If the FortiGate is set up in HA, additional configuration is required to reboot the cluster: Technical Tip: Automate the scheduling of reboots for the HA cluster using an automation stitch
 
From v7.2 onward, there is a new action type 'system action' which can be used to reboot, shut down, or back up the config of the FortiGate. Refer to this document for more details: System automation actions to back up, reboot, or shut down the FortiGate

8..PNG

 

Related articles:

Technical Tip: Automated script execution

Technical Tip: Use FortiGate automation stitches for alert emails

Technical Tip: How to send automated backups of the configuration from a FortiGate with an automatio...

Technical Tip: How to properly shut down or reboot a FortiGate