Fortinet black logo

CLI Reference

FortiOS CLI reference

FortiOS CLI reference

This document describes FortiOS 6.2.7 CLI commands used to configure and manage a FortiGate unit from the command line interface (CLI).

The CLI syntax is created by processing the schema from a FortiGate 3000D running FortiOS 6.2.7 and reformatting the resultant CLI output.

For information on using the CLI, see the FortiOS 6.2.7 Cookbook, which contains information such as:

If you have comments on this content, its format, or requests for commands that are not included, contact us at techdoc@fortinet.com.

Availability of commands and options

Some FortiOS 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, low-end FortiGate models do not support the aggregate interface type option of the config system interface command.

Hardware configuration

For example, some AMC module commands are only available when an AMC module is installed.

FortiOS Carrier, FortiGate Voice, FortiWiFi, etc

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

FortiOS CLI reference

This document describes FortiOS 6.2.7 CLI commands used to configure and manage a FortiGate unit from the command line interface (CLI).

The CLI syntax is created by processing the schema from a FortiGate 3000D running FortiOS 6.2.7 and reformatting the resultant CLI output.

For information on using the CLI, see the FortiOS 6.2.7 Cookbook, which contains information such as:

If you have comments on this content, its format, or requests for commands that are not included, contact us at techdoc@fortinet.com.

Availability of commands and options

Some FortiOS 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, low-end FortiGate models do not support the aggregate interface type option of the config system interface command.

Hardware configuration

For example, some AMC module commands are only available when an AMC module is installed.

FortiOS Carrier, FortiGate Voice, FortiWiFi, etc

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