display stp bpdu-statistics

Use display stp bpdu-statistics to display the BPDU statistics for ports.

Syntax

display stp bpdu-statistics [ interface interface-type interface-number [ instance instance-list ] ]

Views

Any view

Predefined user roles

network-admin

network-operator

mdc-admin

mdc-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.

In STP, RSTP, or PVST mode, the command output is sorted by port name.

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
 PVID inconsistency BPDUs    0

Table 39: Command output

Field

Description

Port

Port name.

Instance-Independent

Statistics not related to a specific MSTI.

Type

Statistical item.

Looped-back BPDUs

Number of BPDUs sent and then received by the same port.

Max-aged BPDUs

Number of BPDUs whose max age was exceeded.

TCN sent

Number of sent TCN BPDUs.

TCN received

Number of received TCN BPDUs.

TCA sent

Number of sent TCA BPDUs.

TCA received

Number of received TCA BPDUs.

Config sent

Number of sent configuration BPDUs.

Config received

Number of received configuration BPDUs.

RST sent

Number of sent RSTP BPDUs.

RST received

Number of received RSTP BPDUs.

MST sent

Number of sent MSTP BPDUs.

MST received

Number of received MSTP BPDUs.

Instance

Statistics for a specific MSTI.

Timeout BPDUs

Number of expired BPDUs.

Max-hoped BPDUs

Number of BPDUs whose maximum hops were exceeded.

TC detected

Number of detected topology changes.

TC sent

Number of sent TC BPDUs.

TC received

Number of received TC BPDUs.

PVID inconsistency BPDUs

Number of received PVST BPDUs with a PVID inconsistent with the incoming port.