CLI
Use FortiSandbox CLI commands for initial device configuration and troubleshooting. After initial device configuration, you can use the GUI for most FortiSandbox functions. For more information on FortiSandbox CLI commands, see the FortiSandbox CLI Reference Guide in the Fortinet Document Library.
You must set the admin password (6–64 characters), the first time you log in using the CLI. |
You can enable SSH and Telnet access on the port1 (administration) interface or any other administrative port set through the CLI command set admin-port
and access the CLI through SSH or Telnet to troubleshoot the device including RAID related hard disk issues. You can also connect to the CLI through the console port.
To connect to the CLI Console with the GUI:
- On the right side of the banner, click the CLI Console button. The CLI Console pane opens. Alternatively you can go to System> Console.
- Click Connect to connect to the console.
- To disconnect, click Disconnect.
The CLI Console has the following buttons:
Connect / Disconnect |
Toggles the connection to the console. |
|
Clears the console. |
|
Downloads the contents of the console to a text file |
|
Copies the contents of the console to the clipboard. Maximum is 1000 lines. |
|
Expands and detaches the console from the GUI and opens it in a new browser tab or window. |
|
Closes the CLI Console. |
The CLI Console can only connect to a local FortiSandbox. In HA-Cluster, you cannot use the primary node to open a worker node's CLI Console. |
To connect to the CLI through the console port:
- Connect the FortiSandbox unit console port to the management computer using the console cable provided.
- Start a terminal emulation program on the management computer.
- Use the following settings:
Serial line to connect to
COM1
Speed (baud)
9600
Data bits
8
Stop bits
1
Parity
None
Flow Control
None
- Press Open to connect to the FortiSandbox CLI. The login as page is displayed.
- Type a valid administrator name and press Enter.
- Type the password for this administrator and press Enter.
Example:
To configure the IP address and gateway of the FortiSandbox device, use the following commands:
set port1-ip 192.168.0.10/24
set default-gw 192.168.0.1
For more information on FortiSandbox CLI commands, see the FortiSandbox CLI Reference Guide in the Fortinet Document Library.