display stp bpdu-statistics

Syntax

display stp bpdu-statistics [ interface interface-type interface-number [ instance instance-id ] ] [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

interface interface-type interface-number: Displays the BPDU statistics on a specified port, where interface-type interface-number indicates the port type and number.

instance instance-id: Displays the BPDU statistics of a specified MSTI on a specified port. The value of instance-id ranges from 0 to 16, where 0 represents the CIST.

|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

begin: Displays the first line that matches the specified regular expression and all lines that follow.

exclude: Displays all lines that do not match the specified regular expression.

include: Displays all lines that match the specified regular expression.

regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.

Description

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

In MSTP mode, follow these guidelines:

In STP, RSTP, or PVST mode, follow these guidelines:

Examples

# In MSTP mode, display the BPDU statistics of all MSTIs on Ethernet 1/0/1.

<Sysname> display stp bpdu-statistics interface ethernet 1/0/1
 Port: Ethernet1/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/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

 Instance 0:

 Type                        Count      Last Updated
 --------------------------- ---------- -----------------
 Timeout BPDUs               0
 MAX-hoped BPDUs             0
 TC detected                 1          10:32:40 01/13/2010
 TC sent                     3          10:33:11 01/13/2010
 TC received                 0

 Instance 1:

 Type                        Count      Last Updated
 --------------------------- ---------- -----------------
 Timeout BPDUs               0
 MAX-hoped BPDUs             0
 TC detected                 0
 TC sent                     0
 TC received                 0

 Instance 2:

 Type                        Count      Last Updated
 --------------------------- ---------- -----------------
 Timeout BPDUs               0
 MAX-hoped BPDUs             0
 TC detected                 0
 TC sent                     0
 TC received                 0

# In PVST mode, display the BPDU statistics on Ethernet 1/0/1.

<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] display stp bpdu-statistics interface ethernet 1/0/1
 Port: Ethernet1/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 25: 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 received.

RST Sent

RSTP BPDUs sent.

RST Received

RSTP BPDUs received.

MST Sent

MSTP BPDUs sent.

MST Received

MSTP BPDUs received.

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.