Command Line Interface (CLI) Reference
You are required to set up a new password after logging in for the first time. The password must be 8-12 characters long. Open the CLI and log in as the admin user (admin). Change the password at the admin prompt and the CLI administration menu is displayed.
The following commands are supported for FortiGuest.
Configuration Commands
The following commands are available to configure FortiGuest.
Command |
Parameters |
Description |
---|---|---|
|
|
Displays the various parameters available for this command. |
|
|
Edit the interface port and enter the port setting mode in the CLI. |
|
|
Displays the various parameters available for this command. |
|
|
Aborts the port setting mode and exits. |
|
|
Returns to the interface configuration mode. |
|
|
Configure the port IP address mode; static or DHCP. |
|
|
Configure the port IP address (static). |
|
|
Configure the admin access type; SSH, HTTP, HTTPS, Ping, or SNMP. |
|
|
Removes the configured IP address. |
|
|
Removes the specified admin access. |
|
|
Sets the port IP addressing to default mode. |
|
|
Sets the dns-server-override to default setting. |
|
|
Obtain the system information. |
|
|
Displays the current interface configuration details. |
|
|
Exit the port configuration mode; the configuration changes then take effect. |
|
|
Configures admin users.
|
|
|
Configures DNS and enters the DNS configuration mode.
|
|
|
Configures global settings and enters the global configuration mode. |
|
|
Configures the system interface. |
|
|
Configures system NTP information.
|
config route |
|
Edit the IPv4 static routing tables and enter route configuration mode. |
Show Commands
The following commands can be used for viewing configuration information.
Command |
Parameters |
Description |
---|---|---|
|
|
Displays bootstrap configuration. |
|
|
Displays all configuration (includes defaults). |
Diagnostic Commands
The following commands are used to diagnose and troubleshoot issues.
Command |
Parameters |
Description |
---|---|---|
|
|
Displays the various parameters available for this command. |
|
|
Displays the various parameters available for this command. |
|
|
Displays information of all disks. |
|
|
Display the available list of NICs. |
|
|
Displays information of a specific NIC. |
|
|
Displays the PCI parameters. |
|
|
Displays PCI bus tree. |
|
|
Displays detailed information about all devices. |
|
|
Displays the various parameters available for this command. |
|
|
Displays detailed information for all installed CPU(s). |
|
|
Displays details of system interruptions. |
|
|
Displays the memory map of I/O ports. |
|
|
Display the address list of I/O ports. |
|
|
Displays the system memory details. |
|
|
Displays the memory type range register. |
|
|
Displays the memory allocation information. |
diagnose service |
|
Displays service logs. |
|
|
Starts the specified service. |
|
|
Displays the status of service. |
|
|
Stops the specified service. |
diagnose debug cache |
|
Displays the Redis cache. |
|
|
Displays the Redis cache. |
Management Commands
The following enable some management and other operations in FortiGuest.
Command |
Parameters |
Description |
---|---|---|
|
|
Displays the various parameters available for this command. |
|
|
Set the date in the YYYY-MM-DD format. |
|
|
Set the time in the HH:MM:SS format. |
|
|
Resets all the three data disks to the factory default settings and reboots the device. |
|
|
Formats the log disk and reboots the device. |
|
|
Ping the host name or IPv4 address. |
|
|
Traceroute of the host name or IPv4 address. |
|
|
Reboot the system. |
|
|
Shut down the device. |
|
|
Enter shell environment. |
|
|
Creates a remote backup of the configuration file using FTP. |
|
|
Creates a remote backup of the configuration file using TFTP server. |
|
|
Restores the configuration file from an FTP server using specific details. |
|
|
Restores the configuration file from a TFTP server. |
|
|
Restores the firmware image from an FTP server using specific details. |
|
|
Restores the firmware image from a TFTP server. |
System Information
The following commands information related to the system configurations.
Command |
Parameters |
Description |
---|---|---|
|
|
Displays the various parameters available for this command. |
|
|
Displays system status, such as, version, serial number, BIOS details, time stamp, hostname, and so on. |
|
|
Displays the configuration details of the admin users. |
|
|
Displays the configuration details of a specific admin user. |
|
|
Displays the DNS configuration. |
|
|
Displays the configuration details of global attributes. |
|
|
Displays the interface details, status, and IP address. |
|
|
Displays the port details, status, and IP address. |
|
|
Displays the configuration details and status of NTP server. |