Command Line Interface (CLI) Reference
The following commands are supported for FortiAIOps.
Configuration Commands
The following commands are available to configure FortiAIOps.
|
Command |
Parameters |
Description |
|---|---|---|
|
|
|
Edit the interface port and enter the port setting mode in the CLI. |
|
|
|
Displays the various parameters available for this command. |
|
|
|
Aborts the port setting mode and exits. |
|
|
|
Returns to the interface configuration mode. |
|
|
|
Configure the port IP address mode; static or DHCP. |
|
|
|
Configure the port IP address (static). |
|
|
|
Configure the admin access type; SSH, THHP, HTTPS, Ping, or SNMP. |
|
|
|
Obtain the system information. |
|
|
|
Displays the current interface configuration details. |
|
|
|
Exit the port configuration mode; the configuration changes then take effect. |
|
|
|
Configures admin users.
|
|
|
|
Configures DNS and enters the DNS configuration mode.
|
|
|
|
Configures global settings and enters the global configuration mode. |
|
|
|
Configures the system interface. |
|
|
|
Configures system NTP information.
|
|
|
|
LLDP is enabled by default on all interfaces, global and per interface settings. Run the following commands to manage LLDP.
|
Show Commands
The following commands can be used for viewing configuration information.
|
Command |
Parameters |
Description |
|---|---|---|
|
|
|
Displays bootstrap configuration. |
|
|
|
Displays all configuration (includes defaults). |
Diagnostic Commands
The following commands are used to diagnose and troubleshoot issues.
|
Command |
Parameters |
Description |
|---|---|---|
|
|
|
Displays the various parameters available for this command. |
|
|
|
Displays the various parameters available for this command. |
|
|
|
Displays information of all disks. |
|
|
|
Display the available list of NICs. |
|
|
|
Displays information of a specific NIC. |
|
|
|
Displays Trusted Platform Module (TPM) module information. |
|
|
|
Displays the PCI parameters. |
|
|
|
Displays PCI bus tree. |
|
|
|
Displays detailed information about all devices. |
|
|
|
Displays the various parameters available for this command. |
|
|
|
Displays detailed information for all installed CPU(s). |
|
|
|
Displays details of system interruptions. |
|
|
|
Displays the memory map of I/O ports. |
|
|
|
Display the address list of I/O ports. |
|
|
|
Displays the system memory details. |
|
|
|
Displays the memory type range register. |
|
|
|
Displays the memory allocation information. |
|
|
|
Displays the top threads information. |
|
|
|
Displays processes with the highest CPU usage at the top of the list. |
|
|
|
Displays system uptime and load information. |
|
|
|
Displays the processes sorted by specified criteria (default 10 processes). |
|
|
|
Check and repair the file system, then reboot the system. |
|
|
|
Displays raid controller information. |
|
|
|
Displays detailed raid controller information. |
|
|
|
Migrate to a new disk. |
|
|
|
Rebuild the existing disk. |
|
|
|
Displays vendor specific Self-Monitoring, Analysis, and Reporting Technology (SMART) attributes. |
|
|
|
Displays SMART error logs. |
|
|
|
Displays SMART health status. |
|
|
|
Displays SMART information. |
|
diagnose debug application location |
|
Reset: Resets the logging level in the backend. |
|
|
|
Error: Logs only critical failures or errors. |
|
|
|
Warn: Logs errors and potential issues (warnings). |
|
|
|
Info: Logs standard operational events. |
|
|
|
Debug: Logs detailed information useful for troubleshooting specific bugs. |
|
|
|
Trace: Traces the code execution path. |
Management Commands
The following enable some management and other operations in FortiAIOps.
|
Command |
Parameters |
Description |
|---|---|---|
|
|
|
Displays the various parameters available for this command. |
|
|
|
Set the date in the YYYY-MM-DD format. |
|
|
|
Set the time in the HH:MM:SS format. |
|
|
|
Reset to the factory default settings and reboot the system. |
|
|
|
Reset to the factory default settings and shutdown the system. |
|
|
|
Format the log disk. |
|
|
|
Ping the host name or IPv4 address. |
|
|
|
Traceroute of the host name or IPV4 address. |
|
|
|
Reboot the system. |
|
|
|
Shut down the device. |
|
|
|
Creates a remote backup of the configuration file from an FTP server. |
|
|
|
Creates a remote backup of the configuration file from a TFTP server. |
|
|
|
Restores the firmware image from an FTP server using specific details. |
|
|
|
Restores the firmware image from a TFTP server. |
|
|
|
The DNS No Domain events are disabled in FortiAIOps, by default. Run the following commands to enable these events.
|
|
|
|
Displays sensor list and status from IPMI. |
|
|
|
Create RAID 0 and format disk. |
|
|
|
Create RAID 1 and format disk. |
|
|
|
Create RAID 5 and format disk. |
|
|
|
Create RAID 10 and format disk. |
System Information
The following commands information related to the system configurations.
|
Command |
Parameters |
Description |
|---|---|---|
|
|
|
Displays the various parameters available for this command. |
|
|
|
Displays system status, such as, version, serial number, BIOS details, time stamp, hostname, and so on. |
|
|
|
Displays the configuration details of the admin users. |
|
|
|
Displays the configuration details of a specific admin user. |
|
|
|
Displays the DNS configuration. |
|
|
|
Displays the configuration details of global attributes. |
|
|
|
Displays the interface details, status, and IP address. |
|
|
|
Displays the port details, status, and IP address. |
|
|
|
Displays the configuration details and status of NTP server. |
Diagnostic Tool Commands
Use the following command to run diagnostics using the CLI:
|
Command |
Parameters |
Description |
|---|---|---|
|
|
|
Executes all application and logs diagnostics. |
|
|
|
Download diagnostics file from the local system to a remote destination. |