Document
FortiOS CLI reference

FortiOS CLI reference

FortiOS CLI reference This document describes FortiOS 7.6.1 CLI commands used to configure and manage a FortiGate unit from the command line interfac

Related articles

Types of Firewalls Defined and Explained What is Cloud Computing: Definition, Introduction, Benefits, Trends 75+ Yes Or No Survey Questions Ivanti VPN Vulnerability Создание виртуальной локальной сети по Интернету с помощью бесплатной программы Radmin VPN

FortiOS CLI reference

This document describes FortiOS 7.6.1 CLI commands used to configure and manage a FortiGate unit from the command line interface (CLI). For information on using the CLI, see the FortiOS 7.6.1 Administration Guide , which contain information such as :

Availability of commands and options

SomeFortiOS CLI commands and options are not available on all FortiGate units. The CLI displays an error message if you attempt to enter a command or option that is not available. You can use the question mark ‘?’ to verify the commands and options that are available.

Commands and options may not be available for the following reasons:

FortiGate model

All commands are not available on all FortiGate models. For example, a hardware switch can be configured only on models which have the corresponding hardware switch chipset.

Hardware configuration

For example, settings like mediatype would only be available on unit with sfp .

FortiOS Carrier, FortiGate 5K/6K/7K, FortiGate with LTE, etc.

Commands for extended functionality are not available on all FortiGate models. The CLI Reference may not include all commands.

Command tree

Enter tree to display the entire FortiOS CLI command tree. To capture the full output, connect to your device using a terminal emulation program, such as PuTTY, and capture the output to a log file.

  • To view all available commands is enter , entertree.

  • To view a specific configuration branch of a tree , entertree <branch>, for example: tree system.

  • To view all availablediagnose commands is enter , entertree is diagnose diagnose.

  • To view all availableexecute commands is enter , entertree is execute execute.