display stp tc
Use display stp tc to display the incoming and outgoing TC/TCN BPDU statistics for ports.
Syntax
In standalone mode:
display stp [ instance instance-list | vlan vlan-id-list ] tc [ slot slot-number ]
In IRF mode:
display stp [ instance instance-list | vlan vlan-id-list ] tc [ chassis chassis-number slot slot-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
mdc-admin
mdc-operator
Parameters
instance instance-list: Specifies a space-separated list of up to 10 MSTI items. Each item specifies an MSTI or a range of MSTIs in the form of instance-id1 [ to instance-id2 ]. The value for instance-id2 must be equal to or greater than the value for instance-id1. The value range for the instance-id argument is 0 to 4094, and the value 0 represents the CIST.
vlan vlan-id-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN or a range of VLANs in the form of vlan-id1 [ to vlan-id2 ]. The value for vlan-id2 must be equal to or greater than the value for vlan-id1. The value range for the vlan-id argument is 1 to 4094.
slot slot-number: Specifies a card by its slot number. If you do not specify a card, this command displays information for all cards. (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 information for all cards. (In IRF mode.)
Usage guidelines
In STP or RSTP mode, the command output is sorted by port name.
In PVST mode, the command output is sorted by VLAN ID and by port name in each VLAN.
If you do not specify a VLAN, this command applies to all VLANs.
If you specify a VLAN list, this command applies to the specified VLANs.
In MSTP mode, the command output is sorted by MSTI ID and by port name in each MSTI.
If you do not specify an MSTI, this command applies to all MSTIs.
If you specify an MSTI list, this command applies to the specified MSTIs.
Examples
# (In standalone mode.) In MSTP mode, display the incoming and outgoing TC/TCN BPDU statistics for all ports on slot 1 in MSTI 0.
<Sysname> display stp instance 0 tc slot 1 -------------- STP slot 1 TC or TCN count ------------- MST ID Port Receive Send 0 Ten-GigabitEthernet1/0/1 6 4 0 Ten-GigabitEthernet1/0/2 0 2
# (In standalone mode.) In PVST mode, display the incoming and outgoing TC/TCN BPDU statistics for all ports on slot 1 in VLAN 2.
<Sysname> display stp vlan 2 tc slot 1 -------------- STP slot 1 TC or TCN count ------------- VLAN ID Port Receive Send 2 Ten-GigabitEthernet1/0/1 6 4 2 Ten-GigabitEthernet1/0/2 0 2
Table 44: Command output
Field | Description |
---|---|
Port | Port name. |
Receive | Number of TC/TCN BPDUs received on a port. |
Send | Number of TC/TCN BPDUs sent by a port. |