FortiGate Basic Commands

CLI Navigation and configuration

?show available commands or options
treeDisplay the complete command tree
tree diagnoseDisplay diagnostic commands
tree executeDisplay execute commands
showshow non-default configuration
show full-configurationshow configuration including default settings
getShow current settings, including defaults
config <section>Enter configuration section
edit <name-or-ID>Edit an entry
set <option> <value>Set a value
unset <option>Return an option to its default
nextSave the entry and move up one level
unset <option>Return an option to its defaults
nextSave the entry and move up one level
endSave changes and exit configuration mode
abortExit without saving the current changes

Key use cases:

get system statusModel, serial number, FortiOS version, uptime and operating mode
get system performance statusCPU, memory, sessions, throughput and uptime.
diagnose sys top 1 20 5Show the top 20 processes every second, fives times
diagnose debug crashlog readshow process crashes and system errors
diagnose hardware sysinfo conservecheck whether the firewall is in conserve mode (conserve mode is entered when RAM becomes dangerously low)
execute tac reportGenerate diagnostic information for Fortinet TAC

Unknown's avatar

Author: Simon Chamberlain

An experienced Network Professional writing yet another blog

Leave a comment