Fortinet white logo
Fortinet white logo

CLI Reference

shutdown

shutdown

Use this command to prepare the FortiMail unit to be powered down by halting the software, clearing all buffers, and writing all cached data to disk.

Power off the FortiMail unit only after issuing this command. Unplugging or switching off the FortiMail unit without issuing this command could result in data loss.

Syntax

execute shutdown

Example

The following example halts the FortiMail unit.

execute shutdown

The CLI displays the following:

This operation will halt the system

(power-cycle needed to restart)!Do you want to continue? (y/n)

After you enter y (yes), the CLI displays the following:

System is shutting down...(power-cycle needed to restart)

If you are connected to the CLI through a local console, the CLI displays a message when the shutdown is complete.

If you are connected to the CLI through the network, the CLI will not display any notification when the shutdown is complete, as this occurs after the network interfaces have been shut down. Instead, you may notice that the connection times out.

Related topics

reboot

shutdown

shutdown

Use this command to prepare the FortiMail unit to be powered down by halting the software, clearing all buffers, and writing all cached data to disk.

Power off the FortiMail unit only after issuing this command. Unplugging or switching off the FortiMail unit without issuing this command could result in data loss.

Syntax

execute shutdown

Example

The following example halts the FortiMail unit.

execute shutdown

The CLI displays the following:

This operation will halt the system

(power-cycle needed to restart)!Do you want to continue? (y/n)

After you enter y (yes), the CLI displays the following:

System is shutting down...(power-cycle needed to restart)

If you are connected to the CLI through a local console, the CLI displays a message when the shutdown is complete.

If you are connected to the CLI through the network, the CLI will not display any notification when the shutdown is complete, as this occurs after the network interfaces have been shut down. Instead, you may notice that the connection times out.

Related topics

reboot