CheatSheet FortiOS 6.4
CheatSheet FortiOS 6.4
Network
Interface Information
diag ip address list List of IPs on FGT interfaces
diag firewall iplist list List of IPs on VIP and IP-Pools
v1.0 page 1
FortiGate
Cheat Sheet - Firewalling for FortiOS 6.4
IPS Authentication
diag ips anomaly list Lists statistics of DoS-Policies Authentication
diag ips packet status IPS packet statistics diag firewall auth filter … Filter for authentication list
diag test appl ipsmonitor 2 Enable / disable IPS engine diag firewall auth list List of authenticated user
diag test appl ipsmonitor 5 Toggle bypass status diag test authserver
diag test appl ipsmonitor 99 Restart all IPS processes [auth-protocol] [server] [user] Authentication test
[password]
Webfilter Debugging of local
diag debug appl auth -1
authentication protocol
Webfilter / AntiSpam Server
diag debug rating
information Debugging of remote
diag debug appl fnbamd -1
authentication protocol
diag webfilter fortiguard
Statistics of FortiGuard requests
statistics list
FortiToken
diag webfilter fortiguard cache
List content of webfilter cache diag fortitoken info Current FortiToken status
dump
exec fortitoken activate [Forti-
diag test appl urlfilter 1 Lists webfilter test commands Manual FortiToken activation
TokenSN]
diag debug urlfilter src-addr
x.x.x.x Filter and Realtime Debugging diag deb appl forticldd 255 FortiToken activation debugging
for Webfiltering
diag debug appl urlfiter -1 exec fortitoken-mobile import
Recover Trial FortiToken
0000-0000-0000-0000
Emailfilter
FSSO
diag emailfilter fortishield servers Displays FortiShield server list
diag debug authd fsso filter Filter for FSSO user list
diag emailfilter fortishield stat list Statistics of FortiShield requests
diag debug authd fsso list List of FSSO authenticated user
diag debug authd fsso
List of FSSO collector agents
server-status
Firewall Policy
diag debug fsso-polling … Info for clientless polling FSSO
Device Detection
Debugging of clientless polling
exec update-src-vis Update device detection DB diag debug appl fssod -1
FSSO
diag user device list / clear Show / clear detected devices
Explicit Proxy
Internet Service Database (ISDB) diag wad user list/clear List / clear of explicit proxy user
diag internet-service Lists summary/details for diag wad filter … Filtering / listing of web proxy
info vdom proto port ip specific Internet Service sessions
diag wad session list
Reverse ISDB lookup for
diag internet-service info … diag test appl wad 104 DNS statistics for explicit proxy
specific IP, protocol or port
diag test appl wad 110 Current proxy user
diag internet-service match Reverse ISDB lookup for
<vdom> <ip> <netmask> specific IP Enables output of subsequent
diag test appl wad 112
commands
FQDN diag test appl wad 2200 Maximum number of users
diag test application dnsproxy 6 Dump FQDN cache
diagnose firewall fqdn list List all FQDN
v1.0 page 2
FortiGate
Cheat Sheet - Networking for FortiOS 6.4
Wireless Controller
exec wireless-controller restart- Restart wireless controller
SD-WAN & Security Fabric acd daemon
SD-WAN exec wireless-controller reset-wtp Restart FortiAPs
diag sys virtual-wan-link member Provide Interface details diag wireless-controller
List rogue APs
diag sys virtual-wan-link health- wlac -c ap-rogue
State of SLAs
check <name> exec wireless-controller spectral-
diag sys virtual-wan-link service scan <wtp-id> <radio-id > <on |
SD-WAN-Rule-State Start or stop spectrum analysis
<rule-id> off> <duration> <channel>
<report-interval>
diag sys virtual-wan-link intf-sla-
Link Traffic History diag wireless-controller wlac -c rf-
log <intf-name>
sa <wtp-id> <radio-id>
diag sys virtual-wan-link sla-log <channel> Show spectrum analysis results
SLA-Log on specific interface
<sla> <link_id> get wireless-controller spectral-
diag test appl lnkmtd 1/2/3 Statistics of link-monitor info <wtp-id> <radio-id>
diag sys csf upstream / diag switch-controller switch-info Managed FortiSwitch port
List of up/downstream devices port-stats statistics
downstream
MAC/IP list of connected FGT diag switch-controller switch-info
diag sys csf neighbor list Trunk information
devices trunk
diag test appl csfd 1 Display security fabric statistics diag switch-controller switch-info Dumps MCLAG related
mclag information from FortiSwitch
diag debug appl csfd -1 Real-time debugger
exec switch-controller get-conn- Get FortiSwitch connection
diag automation test status status
Test stitches in the CLI
<stitch_name>
exec switch-controller diagnose- Get FortiSwitch connection
connection diagnostics
get router info bgp neighbors Information on BGP neighbors get extender sys-info [FXT SN] Check the FortiExtender status
diag ip router bgp all enable Real-time debugging for BGP get extender modem-status [FXT Get the detailed modem status
diag ip router bgp level info protocol SN] of the FortiExtender
exec router clear bgp all Restart of BGP session FortiExtender debugging, collect
diag debug appl extender -1
information for about 5 minutes
exec extender reset-fortiextender Restart managed FortiExtender
OSPF
exec extender restart-
Restart for AC daemon
get router info ospf status OSPF status fortiextender-daemon
get router info ospf interface Information on OSPF interfaces
Modem
get router info ospf neighbor Information on OSPF neighbors
diag sys modem detect Detect attached modem
get router info ospf database Summary / Details of all LSDB
brief / router lsa entries Debugger for modem
diag debug appl modemd 3
commands
get router info ospf database self- Information on LSAs originating
originate from FortiGate
diag ip router ospf all enable Real-time debugging of OSPF
diag ip router ospf level info protocol
exec router clear ospf process Restart of OSPF session
v1.0 page 3
FortiGate
Cheat Sheet – Other for FortiOS 6.4
diag sys config-transaction show Pending CLI commands of TCP/514 FortiManager, FortiAnalyzer
txn-cli-commands Workspace Mode TCP/1812 RADIUS Authentication
TCP/1813 RADIUS Accounting
UDP/5246, UDP/5247 CAPWAP
Hardware TCP/8001 FSSO
Hardware Information
TCP/8013 Compliance and Security Fabric
diag hardware sysinfo cpu CPU information
ETH Layer 0x8890, 0x8891,
HA Heartbeat / Sync
Conserve Mode details. 0x8893
diag hardware sysinfo conserve “Mem”: Memory / “FD”: File
descriptor
diag hardware sysinfo memory Memory size, utilization
Hardware test (available only on
diag hardware test suite all
newer models)
get hardware nic [port] Physical interface information
get system interface Signal information for Copper or
physical / transceiver SFP/SFP+ interfaces
Disk Operation
diag hardware deviceinfo disk List disks with partitions
exec disk list List the disks and partitions
exec disk scan [ref_int] Run a disk check operation
Format the specified partitions
exec disk format [ref_int]
or disks and reboots the system
Formatting the log disk, reboot
exec formatlogdisk
included
Hardware Acceleration
Disable session offloading per
set auto-asic-offload disable
firewall policy
Disable VPN offloading per
set npu-offload disable
Phase 1
v1.0 page 4