FortiOS 7.6 Troubleshooting Cheat Sheet
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.
Command Description Real-time debugs are CPU intensive tasks. Running real-time
diagnose debug reset Stop all the prior debugs that were IPS engine debugs with proper filters can result in high CPU
enabled and running in the foreground usage.
or background.
diagnose debug flow filter clear Clear any IPv4 debug flow filters. Command Description
diagnose debug flow filter6 clear Clear any IPv6 debug flow filters. diagnose test application Show IPS engine information
diagnose debug flow filter <filter> Set a filter for running IPv4 traffic ipsmonitor 1
debug flows. diagnose test application Set the IPS engine enable/disable
diagnose debug flow filter6 Set a filter for running IPv6 traffic ipsmonitor 2 status.
<filter> debug flows. diagnose test application Restart all IPS engines and monitor.
diagnose debug flow show function- Show the function name of the code ipsmonitor 99
name enable that the traffic accesses. diagnose test application Start all IPS engines.
ipsmonitor 97
diagnose debug flow show iprope Show which internal firewall policy that
enable the traffic is going through. diagnose test application Stop all IPS engines.
ipsmonitor 98
diagnose debug console timestamp Start printing timestamps on debugs.
enable diagnose ips session list Show the IPS sessions in each
diagnose test application engine's memory space.
diagnose debug flow trace start <n> Show n lines of IPv4 debugs.
ipsmonitor 13
diagnose debug flow trace start6 Show n lines of IPv6 debugs. diagnose ips filter set "host Show IPS engine debugs for the traffic
<n>
<x.x.x.x> and port <port>" specified by the filter.
diagnose debug enable Start printing debugs in the console. diagnose ips debug enable all
diagnose debug enable
UTM
Command Description
diagnose debug urlfilter <filter> Start real-time debugging for web filter
traffic.
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
diagnose log test Generate logs for testing.
execute log filter <filter> Set log filters.
execute log filter Show log filters.
exec log display Show filtered logs.
execute log delete Delete filtered logs.
diagnose debug application miglogd Start real-time debugging of logging
-1 process miglogd.
diagnose debug enable
execute log fortianalyzer test- Test connectivity between FortiGate
connectivity and FortiAnalyzer.
Traffic shaping
Command Description
diagnose firewall shaper traffic- Show configured traffic shapers.
shaper list
diagnose firewall shaper traffic- Show traffic shaper statistics.
shaper stats list
Command Description
diagnose sys sip status Show SIP status.
diagnose sys sip mapping list Show SIP mapping list.
diagnose sys sip dialog list Show SIP dialogue list.
diagnose debug application sip -1 Start real-time SIP debugging.
diagnose debug enable
SIP ALG
Command Description
diagnose sys sip-proxy calls list Show list of active SIP proxy calls.
diagnose sys sip-proxy stats Show SIP proxy statistics.
diagnose sys sip-proxy session list Show SIP proxy session list.
diagnose debug application sip -1 Start real-time SIP debugging.
diagnose debug enable