Information Technology Grimoire

Version .0.0.1

IT Notes from various projects because I forget, and hopefully they help you too.

Fortinet System CLI Cheat Sheet

CommandDescriptionDangerous
get system statusDisplays system status, including hostname, version, and uptime.Safe
get system performance statusShows CPU and memory usage, helpful for understanding the system’s current load.Safe
get system fortiguardDisplays FortiGuard services status and connectivity.Safe
diag hardware sysinfo memoryShows memory usage information.Safe
diag hardware sysinfo cpuDisplays CPU usage details.Safe
get system timeDisplays the current system time and timezone settings.Safe
set hostname <hostname>(Under global config) Changes the system’s hostname.Dangerous
get hardware statusShows hardware status, including model number and serial number.Safe
get system adminLists all administrative users and their access levels.Safe
diag debug crashlog readDisplays the crash log if the system has experienced any crashes.Safe
exec backup full-config <filename>Backs up the current full configuration to a file.Safe
get license statusChecks the status of the Fortinet licenses.Safe
get system dnsDisplays the configured DNS servers.Safe
exec restore full-config <filename>Restores the full configuration from a backup file.Dangerous
config system globalEnters global configuration mode, where you can set the hostname and other global system parameters.Dangerous
get system storageCheck disk space utilization.Safe
diag sys topIdentify high CPU processes.Safe
diag debug crashlog readCheck for recent system crash logs.Safe
diag sys kill 11Use carefully to restart a process if absolutely necessary.Dangerous
Command/ActionDescriptionDangerous
get system ha statusCheck High Availability status and configuration.Safe
Last updated on 9 Feb 2024
Published on 9 Feb 2024