Fortinet black logo

Administration Guide

CLI

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.

Note

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:
  1. On the right side of the banner, click the CLI Console button. The CLI Console pane opens. Alternatively you can go to System> Console.

  2. Click Connect to connect to the console.
  3. 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 cliConsole.txt on your local PC. Maximum is 1000 lines.

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.

Note

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:
  1. Connect the FortiSandbox unit console port to the management computer using the console cable provided.
  2. Start a terminal emulation program on the management computer.
  3. Use the following settings:

    Serial line to connect to

    COM1

    Speed (baud)

    9600

    Data bits

    8

    Stop bits

    1

    Parity

    None

    Flow Control

    None

  4. Press Open to connect to the FortiSandbox CLI. The login as page is displayed.
  5. Type a valid administrator name and press Enter.
  6. 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.

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.

Note

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:
  1. On the right side of the banner, click the CLI Console button. The CLI Console pane opens. Alternatively you can go to System> Console.

  2. Click Connect to connect to the console.
  3. 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 cliConsole.txt on your local PC. Maximum is 1000 lines.

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.

Note

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:
  1. Connect the FortiSandbox unit console port to the management computer using the console cable provided.
  2. Start a terminal emulation program on the management computer.
  3. Use the following settings:

    Serial line to connect to

    COM1

    Speed (baud)

    9600

    Data bits

    8

    Stop bits

    1

    Parity

    None

    Flow Control

    None

  4. Press Open to connect to the FortiSandbox CLI. The login as page is displayed.
  5. Type a valid administrator name and press Enter.
  6. 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.