Fortinet black logo

Administration Guide

CLI

Copy Link
Copy Doc ID 4f5a6250-a945-11ec-9fd1-fa163e15d75b:887264
Download PDF

CLI

Use FortiSandbox CLI commands for initial device configuration and troubleshooting. After initial device configuration, use the GUI for most FortiSandbox functions. The GUI has a CLI Console which you can use as a CLI.

Note

In version 3.2.0 and higher, the first time you log in using the CLI, you must set the admin password (6–64 characters).

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 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.

For 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, use the GUI for most FortiSandbox functions. The GUI has a CLI Console which you can use as a CLI.

Note

In version 3.2.0 and higher, the first time you log in using the CLI, you must set the admin password (6–64 characters).

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 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.

For 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.