display stp bpdu-statistics
Use display stp bpdu-statistics to display the BPDU statistics on ports.
Syntax
display stp bpdu-statistics [ interface interface-type interface-number [ instance instance-list ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Specifies an interface by its type and number.
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.
Usage guidelines
In MSTP mode, the command output is sorted by port name and by MSTI ID on each port.
If you do not specify an MSTI or port, this command applies to all MSTIs on all ports.
If you specify a port but not an MSTI, this command applies to all MSTIs on the port.
If you specify both an MSTI ID and a port, this command applies to the specified MSTI on the port.
In STP, RSTP, or PVST mode, the command output is sorted by port name.
If you do not specify a port, this command applies to all ports.
If you specify a port, this command applies to the port.
Examples
# In MSTP mode, display the BPDU statistics for all MSTIs on Ten-GigabitEthernet 1/0/1.
<Sysname> display stp bpdu-statistics interface ten-gigabitethernet 1/0/1 Port: Ten-GigabitEthernet1/0/1 Instance-Independent: Type Count Last Updated --------------------------- ---------- ----------------- Invalid BPDUs 0 Looped-back BPDUs 0 Max-aged BPDUs 0 TCN sent 0 TCN received 0 TCA sent 0 TCA received 2 10:33:12 01/13/2011 Config sent 0 Config received 0 RST sent 0 RST received 0 MST sent 4 10:33:11 01/13/2011 MST received 151 10:37:43 01/13/2011 Instance 0: Type Count Last Updated --------------------------- ---------- ----------------- Timeout BPDUs 0 Max-hoped BPDUs 0 TC detected 1 10:32:40 01/13/2011 TC sent 3 10:33:11 01/13/2011 TC received 0
# In PVST mode, display the BPDU statistics for Ten-GigabitEthernet 1/0/1.
<Sysname> system-view [Sysname] stp mode pvst [Sysname] display stp bpdu-statistics interface ten-gigabitethernet 1/0/1 Port: Ten-GigabitEthernet1/0/1 Type Count Last Updated --------------------------- ---------- ----------------- Invalid BPDUs 0 Looped-back BPDUs 0 Max-aged BPDUs 0 TCN sent 0 TCN received 0 TCA sent 0 TCA received 2 10:33:12 01/13/2010 Config sent 0 Config received 0 RST sent 0 RST received 0 MST sent 4 10:33:11 01/13/2010 MST received 151 10:37:43 01/13/2010 Timeout BPDUs 0 Max-hoped BPDUs 0 TC detected 511 10:32:40 01/13/2010 TC sent 8844 10:33:11 01/13/2010 TC received 1426 10:33:32 01/13/2010
Table 31: Command output
Field | Description |
---|---|
Port | Port name. |
Instance-Independent | Statistics not related to any particular MSTI. |
Type | Statistical item. |
Looped-back BPDUs | BPDUs sent and then received by the same port. |
Max-aged BPDUs | BPDUs whose max age was exceeded. |
TCN sent | TCN BPDUs sent. |
TCN received | TCN BPDUs received. |
TCA sent | TCA BPDUs sent. |
TCA received | TCA BPDUs received. |
Config sent | Configuration BPDUs sent. |
Config received | Configuration BPDUs sent. |
RST sent | Configuration BPDUs received. |
RST received | RSTP BPDUs sent. |
MST sent | RSTP BPDUs received. |
MST received | MSTP BPDUs sent. |
Instance | Statistical information for a particular MSTI. |
Timeout BPDUs | Expired BPDUs. |
Max-hoped BPDUs | BPDUs whose maximum hops were exceeded. |
TC detected | TC BPDUs detected. |
TC sent | TC BPDUs sent. |
TC received | TC BPDUs received. |