Skip to main content
kaman
Staff
Staff
September 9, 2024

Technical Tip: CLI Console Terminal Features

  • September 9, 2024
  • 0 replies
  • 3896 views
Description

 

This article describes additional features of the CLI console from the FortiGate GUI.

 

Scope

 

FortiOS version 7.0 and later

 

Solution

 

Here is a guide for managing the CLI console effectively:

  1. Edit Terminal Console Name:

Look for the Pencil icon below. Selecting this allows renaming the console, which is particularly helpful when multiple console windows are open and differentiation is needed.

 

Firmware 7.4 and later: 
photo-1.png

 

Firmware 7.0 - 7.2.x 

2.png

 

 

  1. Clear All Console Output:

Select the Clear icon, to remove all current output in the console window and start fresh without closing the terminal.

photo-2.jpg

 

  1. Copy Command Line Output:

    By selecting the icon below, all command line output can be copied and pasted into the clipboard.

    photo-3.jpg

     

  2. Record CLI Commands:

    Utilize the Record icon represented by a dot, to record only the commands typed into the console to the clipboard, excluding the output. This feature is useful for saving commands for documentation purposes.

    photo-4.jpg

     

     

  3. Download Console Output:

Access the Download icon, represented as a downward arrow, to download all console output. This feature is useful for collecting logs while troubleshooting and saving them for reference.

photo-5.jpg


Each of these features facilitates better management and utilization of the CLI environment, making it easier to handle multiple tasks and keep track of outputs and commands.

 

Note:

The CLI Console is intended to be used for quick changes in CLI, and not for collecting extensive amounts of data (packet capture, debugs, etc).

There is a buffer limit of ~100.000 lines which cannot be extended. As soon as this limit is reached, all output from before reaching the limit will be lost.

 

Related articles:

Technical Tip: How to increase the buffer length of the FortiGate GUI CLI Console