Cheat sheet

FortiGate — diagnostic memo

FortiGate CLI reference for system state, interfaces, ARP, routing, sessions, policy/NAT, SD-WAN, IPsec and debug flow.

⌚ About 3 min read
View my favorites
FortiGateIntermediate to advanced8 sections · 32 reference points

FortiGate CLI reference for system state, interfaces, ARP, routing, sessions, policy/NAT, SD-WAN, IPsec and debug flow.

System status

Version & uptime
get system status

Check model, FortiOS, HA mode and uptime before comparing syntax.

System performance
get system performance status

Shows CPU

Processes
diagnose sys top 1 20

Shows active consumers; quit with q.

HA status
get system ha status

Use on clusters for roles, state and synchronization.

Interfaces & ARP

Physical interfaces
get system interface physical

Checks link and physical state depending on platform/FortiOS.

Interface config
show system interface

Shows VLAN, IP, roles and configured settings.

ARP table
get system arp

Confirms L2 resolution of local peers.

Sourced ping
execute ping-options source 192.168.1.1

Choose source before execute ping to reproduce a specific path.

Routing

Full routing table
get router info routing-table all

Checks selected route, protocol and next hop.

Route lookup
get router info routing-table details 8.8.8.8

Shows route details for a destination.

BGP summary
get router info bgp summary

Use only when BGP is configured.

OSPF neighbors
get router info ospf neighbor

Checks OSPF adjacencies when configured.

Sessions, policies & NAT

Sessions
diagnose sys session list

Very verbose without filters; filter first in production.

Session address filter
diagnose sys session filter addr 192.168.1.10

Limits session output to a specific address.

Policy counters
diagnose firewall iprope show 100004

Advanced/version-sensitive command; also use GUI policy counters.

VIP/NAT
show firewall vip

Checks published VIP objects before blaming policy.

SD-WAN

Health checks
diagnose sys sdwan health-check

Shows SLA/member status depending on FortiOS.

SD-WAN service
diagnose sys sdwan service

Checks link selection by SD-WAN rules.

Configuration
show system sdwan

Checks members, SLAs and rules.

Effective route
get router info routing-table all

Always correlate SD-WAN with the effective routing table.

IPsec / IKE

Tunnel summary
get vpn ipsec tunnel summary

First high-level IPsec state.

Tunnel detail
diagnose vpn tunnel list name NOM_DU_TUNNEL

Shows SAs, selectors and counters for one tunnel.

IKE gateways
diagnose vpn ike gateway list

Checks IKE negotiation and peer state.

IKE debug
diagnose debug application ike -1

Run briefly with debug enabled and always disable afterwards.

Sniffer & debug flow

Targeted sniffer
diagnose sniffer packet any 'host 192.168.1.10 and port 443' 4 0 l

Confirms ingress/egress and TCP flags without external capture.

Flow filter
diagnose debug flow filter addr 192.168.1.10

Set filter before starting trace.

Flow trace
diagnose debug flow trace start 100

Look for policy id, route, DNAT/SNAT and drop reason.

Stop debug
diagnose debug disable

Mandatory after debug to avoid load and console noise.

Tests & DNS

Ping
execute ping 8.8.8.8

Use ping-options source/interface for the intended path.

Traceroute
execute traceroute 8.8.8.8

Useful to separate local routing from upstream transit.

System DNS
get system dns

Checks resolvers used by the FortiGate itself.

Resolve hostname
execute ping exemple.fr

Name-resolution failures can affect FQDN objects and services.

Key points

  • Syntax varies by FortiOS and model; verify ? and version-specific documentation.
  • Always filter sessions/debug/sniffer on busy appliances.
  • After debugging, run diagnose debug disable and reset filters if needed.
  • Capture route, policy, session and packet evidence for the same flow before changing configuration.
← All cheat sheets
♡ 0