Monthly Archives: October 2025

Check current bandwidth of Fortiswitch port

One very cool setting through CLI is to get the actual live bandwidth of the a port. You can do this to check uplink status, or just make sure you are not over saturating things.

You can do this by connecting into CLI of the Fortiswitch through the Fortigate. Here you can run this command:

dia switch physical-ports linerate

You can do the above command to get all port usage, and it updates every second, or put a specific port in. For example:

dia switch physical-ports linerate port49

Comes back with:

How to get Fiber light levels from Fortiswitch

I needed to track down the power of one of our fiber ports – and had a hard time finding how through google-foo. Decided to document it. I did find this link if it helps anyone:

https://community.fortinet.com/t5/FortiSwitch/Troubleshooting-Tip-SFP-SFP-transceivers-port-fiber-link-is-not/ta-p/193940

In this case it was a Fortigate running 7.0.17, and Fortiswitch (Controlled via fortilink) running 7.2.7.

Connect into CLI on the switch through the gui and you can run these commands:

S148FFTF24032152 # get switch modules status port49


Port(port49)
temperature 48.769531 C
voltage 3.343900 volts
alarm_flags 0x0000
warning_flags 0x0000
laser_bias 1.944000 mAmps
tx_power -5.774101 dBm
rx_power -10.074465 dBm
options 0x000F ( TX_DISABLE TX_FAULT RX_LOSS TX_POWER_LEVEL1 )
options_status 0x0008 ( TX_POWER_LEVEL1 )

And there we go!