Displaying VLAN Statistics


You can display network traffic statistics per VLAN using the vlan-stats-show command. This may be useful when troubleshooting network issues.


CLI (network-admin@Leaf1) > vlan-stats-show format all layout vertical


switch:       pubdev03

time:         10:51:02

vlan:         1

vnet:

ibytes:       36.2T

ipkts:        89.0G

idrops-bytes: 119M

idrops-pkts:  313K

obytes:       0

opkts:        0

odrops-bytes: 0

odrops-pkts:  0

switch:       pubdev03

time:         10:51:02

vlan:         35

vnet:

ibytes:       10.8K

ipkts:        154

idrops-bytes: 0

idrops-pkts:  0

obytes:       0

opkts:        0

odrops-bytes: 0

odrops-pkts:  0

switch:       pubdev02

time:         10:51:02

vlan:         1

vnet:

ibytes:       34.9T

ipkts:        84.6G

idrops-bytes: 3.03M

idrops-pkts:  5.69K

obytes:       0

opkts:        0

odrops-bytes: 0

odrops-pkts:  0

 

The output displays the following information:


  • switch — switch name
  • time — when the output was generated
  • VLAN ID — ID assigned to the VLAN
  • vnet — the VNET assigned to the VLAN
  • incoming and outgoing bytes — in K (Kilobytes), M (Megabytes), or G (Gigabytes)
  • incoming and outgoing packets — number of packets incoming and outgoing
  • incoming and outgoing dropped bytes — in K (Kilobytes), M (Megabytes), or G (Gigabytes)
  • incoming and outgoing dropped packets — number of dropped packets incoming and outgoing