Fortinet black logo

CLI Reference

system console

system console

Use this command to set the console command mode, the number of lines displayed by the console, and the baud rate. You can also use this command to disable the FortiGate's console port.

If this FortiGate unit is connected to a FortiManager unit running scripts, output must be set to standard for scripts to execute properly.

config system console
    set mode {batch | line}   Console mode.
            batch  Batch mode.
            line   Line mode.
    set baudrate {option}   Console baud rate.
            9600    9600
            19200   19200
            38400   38400
            57600   57600
            115200  115200
    set output {standard | more}   Console output mode.
            standard  Standard output.
            more      More page output.
    set login {enable | disable}   Enable/disable serial console and FortiExplorer.
    set fortiexplorer {enable | disable}   Enable/disable access for FortiExplorer.
end

Additional information

The following section is for those options that require additional explanation.

baudrate <speed>

Set the console port baud rate. Select one of 9600 (the default), 19200, 38400, 57600, or 115200.

login {enable | disable}

Enable or disable allowing administrators to log into the FortiGate using the console port. Enabled by default.

mode {batch | line}

Set the console mode to line or batch. Used for autotesting only. The default setting is line.

output {standard | more}

Set console output to standard (no pause) or more (pause after each screen is full, resume on keypress). This setting applies to show or get commands only. The default is more.

fortiexplorer {enable | disable}

Enable or disable FortiExplorer access to this FortiGate.

system console

Use this command to set the console command mode, the number of lines displayed by the console, and the baud rate. You can also use this command to disable the FortiGate's console port.

If this FortiGate unit is connected to a FortiManager unit running scripts, output must be set to standard for scripts to execute properly.

config system console
    set mode {batch | line}   Console mode.
            batch  Batch mode.
            line   Line mode.
    set baudrate {option}   Console baud rate.
            9600    9600
            19200   19200
            38400   38400
            57600   57600
            115200  115200
    set output {standard | more}   Console output mode.
            standard  Standard output.
            more      More page output.
    set login {enable | disable}   Enable/disable serial console and FortiExplorer.
    set fortiexplorer {enable | disable}   Enable/disable access for FortiExplorer.
end

Additional information

The following section is for those options that require additional explanation.

baudrate <speed>

Set the console port baud rate. Select one of 9600 (the default), 19200, 38400, 57600, or 115200.

login {enable | disable}

Enable or disable allowing administrators to log into the FortiGate using the console port. Enabled by default.

mode {batch | line}

Set the console mode to line or batch. Used for autotesting only. The default setting is line.

output {standard | more}

Set console output to standard (no pause) or more (pause after each screen is full, resume on keypress). This setting applies to show or get commands only. The default is more.

fortiexplorer {enable | disable}

Enable or disable FortiExplorer access to this FortiGate.