FortiOS-7.6-Troubleshooting_Cheat_Sheet
FortiOS-7.6-Troubleshooting_Cheat_Sheet
diagnose debug crashlog read Show system and application crashes. cycle
diagnose sys process pidof <daemon> Show PID of the daemon that is execute formatlogdisk Format the log disk.
running. The names of currently diagnose hardware sysinfo cpu Show CPU information.
running daemons can be found using diagnose sys modem detect Detect the modem and start real-time
diagnose sys top. diagnose debug application modemd - debugging of the modem daemon.
For example: diagnose sys 1
diagnose debug enable
process pidof httpsd
diagnose sys kill 11 <pid> Kill the PID with signal 11.
FortiGuard
diagnose sys session stat Show session statistics.
diagnose sys session exp-stat Show expectation session statistics. Command Description
diagnose sys vd list Show virtual domain information and diagnose webfilter fortiguard Show rating cache and daemon
system statistics. statistics statistics.
diagnose sys cmdb info Show information about the latest diagnose debug rating Show web filter rating server
configuration change performed by the information.
daemon.
diagnose debug application update - Start debugging for updated daemon to
execute factoryreset Immediately reset to factory defaults 1 troubleshoot FortiGuard update issues.
[keepvmlicense] and reboot. diagnose debug enable
If keepvmlicense is specified (VM execute update-now Execute the FortiGuard update
models only), the VM license is manually.
retained after reset. diagnose autoupdate status Show license information.
execute factoryreset-shutdown Immediately reset to factory defaults diagnose autoupdate versions
[keepvmlicense] and shutdown.
If keepvmlicense is specified (VM Session table
models only), the VM license is
retained after reset. Command Description
execute factoryreset2 Reset to factory default, except system diagnose sys session filter Set session table filters.
[keepvmlicense] settings, system interfaces, VDOMs, <filter>
static routes, and virtual switches. diagnose sys session filter Show session filters, if set.
get system interface Show a summary of interface details, diagnose ips debug enable av Start real-time debugging for antivirus
get sys interface physical diagnose ips debug status show profile when antivirus profile is
including IP address information.
diagnose sys scanunit debug all configured in flow mode.
diagnose ip address list Show IP address information. enable
diagnose hardware deviceinfo nic Show detailed interface information. diagnose sys scanunit debug level
<interface> verbose
get hardware nic <interface> diagnose sys scanunit debug show
diagnose debug enable
get sys interface transceiver Show connected transceivers.
diagnose wad debug enable category Start real time debugging for antivirus
scan profile when antivirus profile is
Packet sniffer diagnose wad stream-scan av-test configured in proxy mode.
"debug enable"
Command Description diagnose wad stream-scan av-test
diagnose sniffer packet <interface> Execute the inbuilt packet sniffer, "debug all:debug"
<'filter'> <verbose> <count> filtered on a particular interface with the diagnose sys scanunit debug all
<a|l> enable
specified filter. For more information,
diagnose sys scanunit debug level
see Performing a sniffer trace or
verbose
packet capture. diagnose sys scanunit debug show
diagnose debug enable
Debug flow
IPS engine
Command Description
The IPS engine handles traffic related to flow-based processing.
diagnose debug reset Stop all the prior debugs that were
enabled and running in the foreground
or background. Real-time debugs are CPU intensive tasks. Running real-time
IPS engine debugs with proper filters can result in high CPU
diagnose debug flow filter clear Clear any IPv4 debug flow filters.
usage.
diagnose debug flow filter6 clear Clear any IPv6 debug flow filters.
diagnose debug flow filter <filter> Set a filter for running IPv4 traffic
debug flows. Command Description
diagnose debug flow filter6 Set a filter for running IPv6 traffic diagnose test application Show IPS engine information
<filter> debug flows. ipsmonitor 1
diagnose debug flow show function- Show the function name of the code diagnose test application Set the IPS engine enable/disable
name enable ipsmonitor 2 status.
that the traffic accesses.
diagnose debug flow show iprope Show which internal firewall policy that diagnose test application Restart all IPS engines and monitor.
enable ipsmonitor 99
the traffic is going through.
diagnose test application Start all IPS engines.
diagnose debug console timestamp Start printing timestamps on debugs. ipsmonitor 97
enable
diagnose debug flow trace start <n> Show n lines of IPv4 debugs.
diagnose test application Stop all IPS engines.
ipsmonitor 98
diagnose debug flow trace start6 Show n lines of IPv6 debugs. diagnose ips session list Show the IPS sessions in each
<n>
diagnose test application engine's memory space.
diagnose debug enable Start printing debugs in the console. ipsmonitor 13
diagnose ips filter set "host Show IPS engine debugs for the traffic
<x.x.x.x> and port <port>" specified by the filter.
For more detailed debug flow filter information, see Technical diagnose ips debug enable all
Tip: Using filters to review traffic traversing the FortiGate. diagnose debug enable
by AS number
Command Description l ip x.x.x.x: BGP peer
diagnose sys profile cpumask <cpu_ Set the CPU core to profile. specified by IPv4 address
id> (x.x.x.x)
diagnose sys profile start Start CPU profiling and wait for one to l ipv6 y:y:y:y:y:y:y:y: BGP
tree diagnose Show the diagnose command tree. l out: advertised BGP routes only
Command Description
Command Description diagnose wireless-controller wlac - Show information about the FortiAP
diagnose switch-controller switch- Show managed FortiSwitch MAC c wtp devices.
info mac-table address list. diagnose wireless-controller wlac -
d wtp
diagnose switch-controller switch- Show managed FortiSwitch port
info port-stats diagnose wireless-controller wlac - Show information about the wireless
statistics.
c sta clients connected to the FortiAP
diagnose switch-controller switch- Show managed FortiSwitch trunk diagnose wireless-controller wlac - devices.
info trunk status information. d sta
diagnose switch-controller switch- Show MCLAG related information from diagnose wireless-controller wlac Show a list of debug options available
info mclag FortiSwitch. help for the wireless controller.
diagnose switch-controller switch- Show POE-related information. diagnose wireless-controller wlac Start real-time debugging of a wireless
info poe sta_filter client/station that connects to the
diagnose switch-controller switch- Show LLDP-related information. diagnose wireless-controller wlac FortiAP.
info lldp sta_filter clear l <aa:bb:cc:dd:ee:ff>: MAC
diagnose switch-controller switch- Show managed FortiSwitch port diagnose wireless-controller wlac
address of endpoint/station
info port-properties sta_filter <aa:bb:cc:dd:ee:ff>
properties.
255
diagnose switch-controller switch- Show managed FortiSwitch port ACL diagnose debug enable
info acl-counters counters information. diagnose wireless-controller wlac - Show virtual access point information,
diagnose switch-controller switch- Show managed FortiSwitch pdu- c vap including its MAC address, BSSID,
info pdu-counters-list counters information. SSID, the interface name, and the
diagnose switch-controller switch- Show managed FortiSwitch flapguard IP address of the APs that are
info flapguard information. broadcasting it.
diagnose switch-controller switch- Show managed FortiSwitch QoS diagnose wireless-controller wlac Show the wireless termination point
info qos-stats statistics. wtp_filter (WTP), or FortiAP, debugging on the
diagnose wireless-controller wlac wireless controller if FortiAP is failing to
diagnose switch-controller switch- Show modules related information
wtp_filter clear connect to FortiGate.
info modules from FortiSwitch. diagnose wireless-controller wlac
l <FAP-SN>: FortiAP serial
diagnose switch-controller switch- Show managed FortiSwitch STP wtp_filter <FAP-SN> 0-
info stp number
instance status. <x.x.x.x>:5246 255
l <x.x.x.x>: FortiAP IP address
diagnose switch-controller switch- Show managed FortiSwitch STP diagnose debug application cw_acd
info bpdu-guard-status 0x7ff
BPDU guard status.
diagnose switch-controller switch- Show managed FortiSwitch IGMP
info igmp-snooping High availability
snooping information.
diagnose switch-controller switch- Show managed FortiSwitch loop-guard
Command Description
info loop-guard status.
diagnose system ha status Show HA status and information.
diagnose switch-controller switch- Show managed FortiSwitch DHCP
get system ha status
info dhcp-snooping snooping interface list.
execute ha manage <index> Log into and manage a specific HA
diagnose switch-controller switch- Show managed FortiSwitch ARP <username> member.
info arp-inspection inspection interface list.
Logging
Command Description
diagnose log test Generate logs for testing.
execute log filter <filter> Set log filters.
execute log filter Show log filters.