Fortinet white logo
Fortinet white logo

Administration Guide

Command descriptions

CLI commands

The following table describes the commonly used CLI commands.

Command Description
? Show help information.
get system Get system status.
get interface Get interface firmware version.
show system hostname Show hostname configuration.
show system interface Show network interfaces and configurations.
show system memsize Show total memory size.
show system route Show the default route.
show system setting Show network interfaces and configurations.
config system hostname Set the host name for this appliance.
config system interface Configure network interfaces.
config system route Configure the gateway address for the management port.
config system route
set gateway 172.173.1.248
end
config system setting Configure system setting.
execute date Set the system date and system time. The format is MM/DD/YYYY hh:mm:ss.
execute ping Execute a PING command.
execute reboot Reboot the system.
execute shutdown Shut down the system.
execute factoryreset Reset the system into an initial state. Note this operation will clear all existing data/configuration.
execute formatlogdisk Execute a format disk command for log storage.
execute restore image tftp Upgrade image from tftp server. The format is "execute restore image tftp xxx.xxx x.x.x.x".
execute restore vmlicense tftp Update VM platform license from tftp server. The format is "execute restore vmlicense tftp xxx.xxx x.x.x.x".
execute restore config tftp Execute restore config tftp. The format is "execute restore config tftp xxx.xxx x.x.x.x".
execute backup config tftp Execute backup config tftp. The format is "execute backup config tftp xxx.xxx x.x.x.x".
exit Exit the current session.

Command descriptions

CLI commands

The following table describes the commonly used CLI commands.

Command Description
? Show help information.
get system Get system status.
get interface Get interface firmware version.
show system hostname Show hostname configuration.
show system interface Show network interfaces and configurations.
show system memsize Show total memory size.
show system route Show the default route.
show system setting Show network interfaces and configurations.
config system hostname Set the host name for this appliance.
config system interface Configure network interfaces.
config system route Configure the gateway address for the management port.
config system route
set gateway 172.173.1.248
end
config system setting Configure system setting.
execute date Set the system date and system time. The format is MM/DD/YYYY hh:mm:ss.
execute ping Execute a PING command.
execute reboot Reboot the system.
execute shutdown Shut down the system.
execute factoryreset Reset the system into an initial state. Note this operation will clear all existing data/configuration.
execute formatlogdisk Execute a format disk command for log storage.
execute restore image tftp Upgrade image from tftp server. The format is "execute restore image tftp xxx.xxx x.x.x.x".
execute restore vmlicense tftp Update VM platform license from tftp server. The format is "execute restore vmlicense tftp xxx.xxx x.x.x.x".
execute restore config tftp Execute restore config tftp. The format is "execute restore config tftp xxx.xxx x.x.x.x".
execute backup config tftp Execute backup config tftp. The format is "execute backup config tftp xxx.xxx x.x.x.x".
exit Exit the current session.