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.
Not applicable
Article Id 193523

 

Description This article describes best practices for shutting down a FortiGate unit.
Scope All FortiGate units.
Solution

To limit unnecessary log disk or flash failure, Fortinet recommends always using the shutdown (or restart) commands when shutting down or rebooting any FortiGate unit.

 

Never shut off a FortiGate unit by removing power from the unit.

 

To power off a FortiGate unit correctly:

 

1) Issue the shutdown command.

 

From the GUI, go to top right and select the 'admin' user login -> System -> ShutDown and select OK to proceed.

 

From the CLI, enter execute shutdown.

 

2) Disconnect the power supply.

 

Schedule the Firewall Shutdown at a specific time:

 

Where needed, the automated schedule action for firewall shutdown can be defined using the following automation stitch:

# config system automation-action
    edit "Shutdown"
        set action-type cli-script
        set required enable
        set script "exec shutdown"
        set accprofile "super_admin"
    next
end


# config system automation-trigger

edit "shut"

set trigger-type scheduled
set trigger-hour "xx" <- 'xx' is the hour of the time to schedule the script action.
set trigger-minute "yy" <- 'yy' is the minute to schedule the script action.

next

end

 

# config system automation-stitch

edit "shut"

set trigger "shut"

set action "Shutdown"

next

end

 

Note: it is necessary to define the trigger hour and trigger minute. The requirement and the command will be executed based on the firewall time. Check the firewall date and time with the following command:


# exec date
# exec time