FortiSwitch
FortiSwitch: secure, simple and scalable Ethernet solutions
dbhavsar
Staff
Staff
Article Id 418744
Description This article describes how to view the real-time transmit (Tx) rate and receive (Rx) traffic rates (bandwidth usage) for a specific port or all ports and view port settings.
Scope FortiSwitch.
Solution

To check the port speed on a FortiSwitch, the following method is used:

 

Using the CLI:

Access the FortiSwitch CLI via SSH or console.

Enter the following command to display the real-time packet transmit information:

 

diagnose switch physical-ports linerate <port-number> <---- This will show the transmit (TX) and receive (RX) packet and rate information for specified port.

 

diagnose switch physical-ports linerate   <---- This will show the transmit (TX) and receive (RX) packet and rate information for each port.

 

Output of the commands above:

 

FSW-CORE # diagnose switch physical-ports linerate port5
Rate Display Mode: LINE_RATE
Port | TX Packets | TX Rate || RX Packets | RX Rate |
-----------------------------------------------------------------------------------------------
port5 | 2214770 | 0.0009 Mbps || 47192 | 0.0000 Mbps |
-----------------------------------------------------------------------------------------------
| 0.0009 Mbps || | 0.0000 Mbps |


FSW-CORE # diagnose switch physical-ports linerate
Rate Display Mode: LINE_RATE
Port | TX Packets | TX Rate || RX Packets | RX Rate |
-----------------------------------------------------------------------------------------------
port1 | 0 | 0.0000 Mbps || 0 | 0.0000 Mbps |
port2 | 0 | 0.0000 Mbps || 0 | 0.0000 Mbps |
port3 | 0 | 0.0000 Mbps || 0 | 0.0000 Mbps |
port4 | 0 | 0.0000 Mbps || 0 | 0.0000 Mbps |
port5 | 2214807 | 0.0007 Mbps || 47193 | 0.0000 Mbps |
port6 | 0 | 0.0000 Mbps || 0 | 0.0000 Mbps |
port7 | 0 | 0.0000 Mbps || 0 | 0.0000 Mbps |
port8 | 4761884 | 0.0266 Mbps || 3970082 | 0.0030 Mbps |
port9 | 0 | 0.0000 Mbps || 0 | 0.0000 Mbps |
port10 | 0 | 0.0000 Mbps || 0 | 0.0000 Mbps |
internal | 3969452 | 0.0035 Mbps || 6929053 | 0.0298 Mbps |
-----------------------------------------------------------------------------------------------
| 0.0308 Mbps || | 0.0328 Mbps |

 

Alternatively, the following set of commands can be used:

 

config switch physical-port
    edit <port_name>
        show full-configuration
    end

 

The command above will display detailed information about the specified port, including its speed setting, as shown below.
 

FGT-CORE# config switch physical-port

FGT-CORE (physical-port) # edit port5

FGT-CORE (port5) # show full-configuration
config switch physical-port
     edit "port5"
          set cdp-status disable
          set description ''
          set dmi-status global
          set egress-drop-mode enabled
          set energy-efficient-ethernet disable
          set flapguard disabled
          set flow-control disable
          set fortilink-p2p disable
          set l2-learning enabled
          set lldp-profile "default-auto-isl"
          set lldp-status tx-rx
          set loopback disable
          set poe-port-mode IEEE802_3AT
          set poe-port-power normal
          set poe-port-priority low-priority
          set poe-status enable
          set speed auto
          set status up
          set storm-control-mode global

     next
end

Contributors