CLI commands
The following table describes commonly used CLI commands.
| Command | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
?
|
Show help information. | ||||||||||||
|
|
Retrieve the current status and basic system information. Output Example: Version: FortiData-KVM 7.6.1 build0081 20250610 Hostname: My_FortiData System time: Tue Jun 10 12:04:09 PDT 2025 System uptime: 6 minutes Data Disk: Available
|
||||||||||||
|
|
Displays the complete configuration of the system, including all modules and settings. |
||||||||||||
show system hostname
|
Show hostname configuration. | ||||||||||||
show system interface
|
Show network interfaces and configurations. | ||||||||||||
show system route
|
Show all system routes. | ||||||||||||
show system config route
|
Show configured static routes. | ||||||||||||
show system setting
|
Show system-level settings. | ||||||||||||
|
|
Show tunneling (e.g., proxy) configurations. |
||||||||||||
|
|
Show current user. |
||||||||||||
|
|
Show the timezone identifier and its corresponding GMT offset. |
||||||||||||
config system hostname
|
Set the host name for this appliance. | ||||||||||||
config system interface
|
Configure network interfaces. config system interface edit mgmt set ip 172.173.1.200 255.255.255.0 set mode <manual|dhcp> end end |
||||||||||||
config system route
|
Configure the gateway address for the management port.
config system route |
||||||||||||
config system tunneling
|
Configure license update proxy settings.
config system tunneling set port <proxy-port> set status <enable|disable> set username <proxy-username> set password <proxy-password> |
||||||||||||
diagnose hardware info |
Show hardware information. |
||||||||||||
diagnose hardware deviceinfo |
Show device information. |
||||||||||||
diagnose daemon |
Control and inspect the status of internal system services (daemons).
The following daemons are supported:
Examples:
|
||||||||||||
diagnose db |
Upgrade the system database to a specific release version or the latest available. Examples:
|
||||||||||||
|
|
Manually trigger a connection to the Fortinet Distribution Server (FDS) to check for updates or validate connectivity. |
||||||||||||
|
|
Display, delete, or get statistics on logs for individual system modules. The following modules are supported:
Examples:
|
||||||||||||
|
|
Back up the system configuration to a TFTP server. Syntax:
Example:
|
||||||||||||
execute ping
|
Send ICMP echo requests to a host to test network connectivity. Example:
|
||||||||||||
execute reboot
|
Reboot the system. | ||||||||||||
execute shutdown
|
Shut down the system. | ||||||||||||
execute restore
|
Restore system configuration, upgrade firmware image, or update VM license from a remote server. Syntax:
Examples:
|
||||||||||||
exit
|
Exit the current session. |