Skip to main content
Nishtha_Baria
Staff
Staff
Sep 28, 2023 4:15 AM UTC

Technical Tip: Understanding and Using the CLI Command 'set reboot-upon-config-restore'

  • Apr 16, 2026 12:09 PM UTC
  • 0 replies
  • 2836 views
  • Translate All
Description This describes how to use the FortiGate CLI Command 'set reboot-upon-config-restore'
Scope FortiGate.
Solution

The above CLI command is used to control whether a FortiGate should automatically reboot after a configuration restore operation. By default, FortiGate devices are configured to reboot after a configuration restore to ensure that the restored configuration takes effect immediately.

 

The primary use case for configuring 'set reboot-upon-config-restore' is to control the reboot behavior after a configuration restore operation. Here are the two primary scenarios:

 

  1.  Enable Automatic Reboot (Default Behavior): In most cases, it is better to have the firewall automatically reboot after a configuration restore. This ensures that any changes in the restored configuration take effect immediately. For example, if a backup configuration is restored to address a critical issue, those changes are better to be applied without manual intervention. This is the default behavior of FortiGates.
  2. Disable Automatic Reboot: There are situations where it is better to restore a previous configuration but not to reboot the unit immediately. Disabling automatic reboot allows the restore configuration without causing immediate downtime. This can be useful when it is necessary to make further adjustments or schedule a controlled reboot at a more convenient time.

 

To enable or disable the 'set reboot-upon-config-restore' option, follow these steps in the FortiGate CLI:

 

config system global
    set reboot-upon-config-restore [enable|disable]<----- Enable/disable automatic reboot upon configuration restore.
end

 

  • When disabling automatic reboot upon configuration restore, it is essential to manually initiate a reboot at an appropriate time to apply the restored configuration fully.
  • Always have a plan in place when making configuration changes or restoring backups, especially in a production environment, to minimize downtime and prevent unexpected disruptions.
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024