# Technical Tip: Configure FortiGate to restart (reboot) daily

[https://community.fortinet.com/t5/FortiGate/Technical-Tip-Configure-FortiGate-to-restart-reboot-daily/ta-p/191859](https://community.fortinet.com/t5/FortiGate/Technical-Tip-Configure-FortiGate-to-restart-reboot-daily/ta-p/191859)

# <span class="lia-message-unread lia-message-unread-windows">[Technical Tip: Configure FortiGate to restart (reboot) daily](https://community.fortinet.com/t5/FortiGate/Technical-Tip-Configure-FortiGate-to-restart-reboot-daily/ta-p/191859)</span>

**Description**

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

**Scope**

FortiGate.

**Solution**

<span style="font-family: verdana,geneva;">FortiOS firmware allows the user to automate a daily restart (reboot) of the FortiGate, at a pre-defined hour. This is a repeated reboot and it **can be used for a one-time reboot at a predefined hour** (with the mention that it needs to be removed afterward). An alternate option is available in the form of an auto-script that can further fine-tune the reboot, cycle, or add additional commands (from v5.6). </span>

<span style="font-family: verdana,geneva;">From v6.2, a more advanced way can be used - Automation Stitch (FortiOS v6.0 has Automation Stitch, but can only be triggered by an event, and not Scheduled). **Daily restart.** This option is configurable from the CLI as shown in the example below:</span>

<div class="lia-message-body-wrapper lia-component-message-view-widget-body" id="bkmrk-%C2%A0-config-system-glob"><div class="lia-message-body" itemprop="text"><div class="lia-message-body-content"><div><span style="font-family: Verdana;"> </span></div><div class="lia-indent-padding-left-30px"><span style="font-family: Courier New;">**config system global**</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: Courier New;"> set daily-restart enable</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: Courier New;"> set restart-time 05:06</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: Courier New;">end</span></div><div><span style="font-family: Verdana;"> </span></div><div><span style="font-family: Verdana;">**Note**: If no restart-time is specified, the default is 00:00.</span></div><div> </div><div><span style="font-family: verdana,geneva;">Once the restart time is reached, the following message is displayed on the CLI console:</span></div><div><span style="font-family: Verdana;"> </span></div><div class="lia-indent-padding-left-30px">**<span style="font-family: Courier New;">The system will reboot due to scheduled daily restart. Current time is 05:06</span>**</div><div><span style="font-family: Courier New;"> </span></div><div><span style="font-family: Verdana;">Syslog message relating to this event:</span></div><div><span style="font-family: Verdana;"> </span></div><div class="lia-indent-padding-left-30px"><span style="font-family: Courier New;">2024-30-05 05:06:51 log\_id=0104041990 type=event subtype=admin pri=information fwver=040000 vd=root msg="Fortigate started"</span></div><div><span style="font-family: Courier New;"> </span></div><div><span style="font-family: Verdana;">The following entry will be logged under the GUI event logs:</span></div><div><span style="font-family: Verdana;"> </span></div><div class="lia-indent-padding-left-30px"><span style="font-family: Courier New;">2021-10-21 05:06:51 information admin 41990 Fortigate started</span></div><div><span style="font-family: Verdana;"> </span></div><div><span style="font-family: Verdana;">**Automation stitch reboot.**</span></div><div><span style="font-family: Verdana;">This option presents another level of integration with the operational level of the network. </span></div><div><span style="font-family: Verdana;">An action can be triggered based on specific predefined triggers.</span></div><div><span style="font-family: Verdana;"> </span></div><div><span style="font-family: Verdana;">In this example, a periodic reboot not triggered by a specific event has been used.</span></div><div><span style="font-family: Verdana;"> </span></div><div><span style="font-family: Verdana;">**Note**:</span></div><div><span style="font-family: Verdana;">Use short, simple names, and no spaces in the name field.</span></div><div><span style="font-family: Verdana;"> </span></div><div><span class="lia-inline-image-display-wrapper lia-image-align-center"><span class="lia-message-image-wrapper lia-message-image-actions-narrow lia-message-image-actions-below">![Stephen_G_0-1717078630851.png](https://community.fortinet.com/t5/image/serverpage/image-id/45254i85E464353049A239/image-dimensions/699x591?v=v2 "Stephen_G_0-1717078630851.png")</span></span></div><div> </div><div><div>The CLI commands created by this action:</div><div><span style="font-family: Verdana; font-size: small;"> </span></div></div><div><div class="lia-indent-padding-left-30px"><span style="font-family: Courier New; font-size: small;">**config system automation-action**</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: Courier New; font-size: small;"> edit "reboot"</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: Courier New; font-size: small;"> set action-type cli-script</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: Courier New; font-size: small;"> set required enable</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: Courier New; font-size: small;"> set script "exec reboot"</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: Courier New; font-size: small;"> set accprofile "super\_admin"</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: Courier New; font-size: small;">end</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: Courier New; font-size: small;">**config system automation-trigger**</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;"> edit "autoreboot"</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;"> set trigger-type scheduled</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;"> set trigger-frequency weekly</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;"> set trigger-weekday monday</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;"> set trigger-hour 20</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;"> set trigger-minute 10</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;"> next</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;">end</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;">**config system automation-stitch**</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;"> edit "auto reboot"</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;"> set trigger "autoreboot"</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;"> **config actions**</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;"> edit 1</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;"> set action "rebooot"</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;"> set required enable</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;"> next</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;"> end</span></div><div class="lia-indent-padding-left-30px"><span style="font-family: courier new,courier;">end</span></div></div><div class="lia-indent-padding-left-30px"><div class="lia-indent-padding-left-30px"> </div><div><span class="lia-inline-image-display-wrapper lia-image-align-center"><span class="lia-message-image-wrapper">![image - 2024-11-16T164229.083.png](https://community.fortinet.com/t5/image/serverpage/image-id/63675iDD99B80416307E92/image-dimensions/485x349/is-moderation-mode/true?v=v2 "image - 2024-11-16T164229.083.png")</span></span></div></div></div></div></div><div class="lia-message-body-wrapper lia-component-message-view-widget-body" id="bkmrk-note%3Afrom-v7.2-onwar"><div class="lia-message-body" id="bkmrk-note%3Afrom-v7.2-onwar-1" itemprop="text"><div class="lia-message-body-content"><div class="lia-indent-padding-left-30px"><div>  
</div></div><div><div><span style="font-family: verdana,geneva;">**Note:**</span>  
<span style="font-family: verdana,geneva;">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.](https://docs.fortinet.com/document/fortigate/7.2.0/new-features/108345/system-automation-actions-to-back-up-reboot-or-shut-down-the-fortigate-7-2-1)</span>  
</div></div></div></div></div>