Thursday, February 28, 2019

How to check Cisco Catalyst Switch Port Traffic Utilization



Sometimes it is necessary to see what an uplink to a switch, vmware exsi host etc is doing in terms of traffic,

A useful command is show interface summary


This then outputs the following:

cat2960s#sh int summary

 *: interface is up
 IHQ: pkts in input hold queue     IQD: pkts dropped from input queue
 OHQ: pkts in output hold queue    OQD: pkts dropped from output queue
 RXBS: rx rate (bits/sec)          RXPS: rx rate (pkts/sec)
 TXBS: tx rate (bits/sec)          TXPS: tx rate (pkts/sec)
 TRTL: throttle count

  Interface               IHQ   IQD  OHQ   OQD  RXBS RXPS  TXBS TXPS TRTL
-------------------------------------------------------------------------
* Vlan1                    0     0    0     0  1000    1  1000    1    0
  FastEthernet0            0     0    0     0     0    0     0    0    0
* GigabitEthernet1/0/1     0     0    0  1747  1000    1 52000   49    0
* GigabitEthernet1/0/2     0     0    0  1757     0    0 52000   49    0
* GigabitEthernet1/0/3     0     0    0 191986 480000  106 290000  122    0
* GigabitEthernet1/0/4     0     0    0  1645 92000   40 158000   90    0
* GigabitEthernet1/0/5     0     0    0  1733     0    0 52000   49    0
* GigabitEthernet1/0/6     0     0    0  5969 1172000  658 13763000  1271    0
* GigabitEthernet1/0/7     0     0    0  1756     0    0 52000   49    0
* GigabitEthernet1/0/8     0     0    0  1726  1000    1 52000   50    0
* GigabitEthernet1/0/9     0     0    0  1952 147000  121 506000  191    0
* GigabitEthernet1/0/10    0     0    0  1737  6000    2 52000   49    0
* GigabitEthernet1/0/11    0     0    0  1736     0    0 52000   49    0
...

Note: RX is traffic Received and TX is traffic sent

Let's dig a bit deeper into an interface:

cat2960s# sh int gigabitEthernet 1/0/29 summary

 *: interface is up
 IHQ: pkts in input hold queue     IQD: pkts dropped from input queue
 OHQ: pkts in output hold queue    OQD: pkts dropped from output queue
 RXBS: rx rate (bits/sec)          RXPS: rx rate (pkts/sec)
 TXBS: tx rate (bits/sec)          TXPS: tx rate (pkts/sec)
 TRTL: throttle count

  Interface               IHQ   IQD  OHQ   OQD  RXBS RXPS  TXBS TXPS TRTL
-------------------------------------------------------------------------
* GigabitEthernet1/0/29    0     0    0 53071 477756000  39677 10729000  18785    0


From the output above we can deduce the following:

RX Traffic = 477.75 Mbits/second (477756000 bits/s)
TX Traffic =  10.72  Mbits/second (10729000 bits/s)