Fortinet white logo
Fortinet white logo

Get commands

Get commands

These commands are run from the base context.

Available commands

Command

Description

get hardware memory

Get information about the system memory

get hardware nic

List the available interfaces on the system (port 1, port 2, etc)

get hardware status

Retrieve an overview of the system:

  • Model Name

  • UUID

  • MAC

  • CPU

  • Number of CPU cores

  • RAM

  • Hard disk (partition information)

get system public-key

Retrieve the root user’s public key, which can then be used for configuring HA on other systems. If multiple keys are present, it will prioritize the ed25519 key

get system status

Retrieve an overview of the FortiNAC status:

  • FortiNAC Version

  • Serial-Number

  • License Status (Valid or expired)

  • License Expiration Date

  • Hostname

  • Release Version Information (GA or interim)

  • System time

get system license

Print License Information

Available options:

-check

Check if each license key is valid for this appliance.

TEXT Format only

-file=<fileName>

The filename to be used in conjunction with -key FILE

-fmt=<fmt>

Format to display. JSON can be useful programmatically

TEXT, JSON

-key=<keys>

Add a License Key to display. If none specified, this list will contain EFFECTIVE, which means what is

used by this appliance.

Use FILE in combination with the

-file option to specify a file to read from

EFFECTIVE, APPLIANCE, WPRIMARY, MANAGER, HARDWARE, FILE

get hardware cpu

Display detailed information for all installed CPU(s).

get system interface <portName>

Get interface configuration.

Get commands

Get commands

These commands are run from the base context.

Available commands

Command

Description

get hardware memory

Get information about the system memory

get hardware nic

List the available interfaces on the system (port 1, port 2, etc)

get hardware status

Retrieve an overview of the system:

  • Model Name

  • UUID

  • MAC

  • CPU

  • Number of CPU cores

  • RAM

  • Hard disk (partition information)

get system public-key

Retrieve the root user’s public key, which can then be used for configuring HA on other systems. If multiple keys are present, it will prioritize the ed25519 key

get system status

Retrieve an overview of the FortiNAC status:

  • FortiNAC Version

  • Serial-Number

  • License Status (Valid or expired)

  • License Expiration Date

  • Hostname

  • Release Version Information (GA or interim)

  • System time

get system license

Print License Information

Available options:

-check

Check if each license key is valid for this appliance.

TEXT Format only

-file=<fileName>

The filename to be used in conjunction with -key FILE

-fmt=<fmt>

Format to display. JSON can be useful programmatically

TEXT, JSON

-key=<keys>

Add a License Key to display. If none specified, this list will contain EFFECTIVE, which means what is

used by this appliance.

Use FILE in combination with the

-file option to specify a file to read from

EFFECTIVE, APPLIANCE, WPRIMARY, MANAGER, HARDWARE, FILE

get hardware cpu

Display detailed information for all installed CPU(s).

get system interface <portName>

Get interface configuration.