display vlan statistics
Use display vlan statistics to display packet statistics for a VLAN.
Syntax
Distributed devices in standalone mode:
display vlan vlan-id statistics [ slot slot-number ]
Distributed devices in IRF mode:
display vlan vlan-id statistics [ chassis chassis-number slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
vlan-id: Specifies a VLAN by its ID in the range of 1 to 4094.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays VLAN packet statistics on all cards. (Distributed devices in standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number argument represents the member ID of the IRF member device. The slot-number argument represents the slot number of the card. If you do not specify a card, this command displays VLAN packet statistics on all cards. (Distributed devices in IRF mode.)
Examples
# Display packet statistics for VLAN 2 on slot 1.
<Sysname> display vlan 2 statistics slot 1 Slot 1: Direction Total packets Total bytes Rate (pps) Rate (bps) Inbound 5824579 745546112 0 0 Outbound 0 0 0 0
# Display packet statistics for VLAN 2 on all cards.
<Sysname> display vlan 2 statistics Slot 1: Direction Total packets Total bytes Rate (pps) Rate (bps) Inbound 5824579 745546112 0 0 Outbound 0 0 0 0 Slot 2: Direction Total packets Total bytes Rate (pps) Rate (bps) Inbound 0 0 0 0 Outbound 0 0 0 0 Total: Direction Total packets Total bytes Rate (pps) Rate (bps) Inbound 5824579 745546112 0 0 Outbound 0 0 0 0
Table 15: Command output
Field | Description |
---|---|
Direction | VLAN packet direction:
|
Total packets | Total number of packets. |
Total bytes | Total number of bytes. |
Related commands
reset vlan statistics
statistics enable