Command Cheatsheet

fg

execute switch-controller switch-action factory-reset

fg

execute switch-controller get-sync-status all

Get Config Sync status

fg

execute switch-controller get-conn-status

Show Connection status, join-time, address, Switch version, Status (update, config)

fg

execute switch-controller switch-recommendations fabric-lockdown-check

Check if lock down is enabled

fg

execute switch-controller switch-recommendations fabric-lockdown-check

Lock down all ISL and mclag-icl

fg

diagnose switch-controller switch-info trunk config

fg

diagnose switch-controller switch-info trunk status

Show trunk status (LACP)

fg

diagnose switch-controller switch-info mclag icl

fg

diagnose switch-controller switch-info mclag list

fg

diagnose switch-controller switch-info mclag peer-consistency-check

Check if all peers/trunks/stp are configured correctly in a mclag setup.

fg

diagnose switch-controller restart-daemon

Fortilink Daemon restart

fg

diagnose switch-controller switch-info mac-table

Show all learned mac-addresses on all switches

fg

diagnose switch-controller switch-info poe summary <SN>

Show PoE Power budget per switches. PoE Status per port. Speed.

fg

diagnose switch-controller switch-info stp

Get STP instance output from every or a specific switch

fg

diagnose switch-controller mac-cache filter mac 00:11:22:33:44:55

Filter MAC for 'show' command

fg

diagnose switch-controller mac-cache show

Show all detected MAC Address with portid, vlan, last seen time

fg

diagnose switch-controller trigger config-sync <SN>

Push full switch configuration from Fortigate to FSW

fg

diagnose switch-controller switch-info port-stats <managed switch sn> <port_name>

Get Port statistics (input/output packet types, etc)

fg

diagnose switch-controller trigger reset-hardware-counters <managed switch sn> <port_name>

Rest Port hardware counters

fsw

diagnose switch lldp local-port-detail

show local lldp advertisements debugging info

fsw

get switch lldp auto-isl-status

fsw

get switch lldp neighbors-detail

fsw

get switch lldp neighbors-summary

fsw

get switch lldp profile

fsw

get switch modules detail <port>

Show module info SFP (Encoding, SN, ProductName, Type)

fsw

get switch modules summary

Show module overview

fsw

get switch modules status <port>

Show module status (tx_power, rx_power, Alarms)

fsw

diagnose switch modules state-machine

Show module status overview

fsw

get switch modules limites <port>

Show limits for module (temp, volt, power)

fsw

diagnose switch physical-ports linerate up

Show linerate for all active ports

fsw

diagnose switch physical-ports datarate

Show datarate for ports (no FCS)

fsw

diagnose switch physical-ports summary

Shows information like status, vlan, speed, flags

fsw

diagnose switch trunk summary

Show summary information about trunk

fsw

diagnose switch trunk list

show detailed information about all configured trunks and show LACP status

fsw

diagnose switch vlan list

List all vlans

fsw

diagnose switch pdu-counters list

Retrieve ingress counters for all FortiLink relevant protocols (LLDP, STP, LACP, CAPWAP, etc)

fsw

diagnose switch mac-address list

Show mac address list

fsw

diagnose switch mac-address filter port-id-map port1

Filter mac-address view by port1

fsw

show spanning-tree instances

diagnose stp instance list

fsw

show spanning-tree vlan list

Fortiswitch Processes on Fortigate

cu_acd + fortilinkd / Sometimes issues can be solved by restarting both processes

Last updated

Was this helpful?