< Home

display stp tc-bpdu statistics

Function

The display stp tc-bpdu statistics command displays statistics of sent and received topology change (TC) and topology change notification (TCN) BPDUs on interfaces.

Format

STP/RSTP/MSTP: display stp [ process process-id ] [ instance instance-id ] [ interface interface-type interface-number | slot slot-id ] tc-bpdu statistics

VBST: display stp [ vlan vlan-id ] [ interface interface-type interface-number | slot slot-id ] tc-bpdu statistics

Parameters

Parameter Description Value
process process-id

Specifies the ID of an MSTP process of which statistics of TC and TCN BPDUs are displayed.

If the parameter process process-id is not specified, statistics of TC and TCN BPDUs in MSTP process 0 are displayed.

The value is an integer ranging from 1 to 31.

instance instance-id

Specifies the ID of an MSTP instance of which statistics of TC and TCN BPDUs are displayed.

If the parameter instance instance-id is not specified, statistics of TC and TCN BPDUs on all interfaces are displayed in the sequence of the interface numbers.

The value is an integer that ranges from 0 to 4094. The value 0 indicates a CIST instance.
NOTE:

instance-id ranges from 0 to 4094. Each process supports a maximum of 65 instances.

interface interface-type interface-number

Specifies the interface on which statistics of TC and TCN BPDUs are displayed.

If the parameter interface interface-type interface-number is not specified, statistics of TC and TCN BPDUs on all interfaces are displayed in the sequence of the interface numbers.

-

slot slot-id

Displays the statistics of TC and TCN BPDUs on a spanning tree instance in a specified slot.

The value is an integer and must be an existing slot on the device.

vlan vlan-id

Display statistics on sent and received TC and TCN BPDUs on ports in a specified VLAN.

If vlan vlan-id is not specified, statistics on sent and received TC and TCN BPDUs on ports in all VLANs are displayed.

NOTE:

If vlan vlan-id is specified, only statistics on sent and received TC and TCN BPDUs on ports running VBST are displayed.

The value is an integer that ranges from 1 to 4094.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

If you need to know whether a fault has occurred on interfaces that send and receive TC/TCN BPDUs, you can run this command to view statistics of these BPDUs and locate the fault.

Prerequisites

In VBST, if NAC authentication is configured but user authentication fails on a port that is configured as an edge port and is in Active state, information about the port is not displayed.

Example

# Display the statistics of TC/TCN BPDUs on interfaces of an MSTP instance when STP/RSTP/MSTP is running.

<HUAWEI> display stp tc-bpdu statistics
 -------------------------- STP TC/TCN information --------------------------
 MSTID Port                        TC(Send/Receive)      TCN(Send/Receive)
 0     GigabitEthernet0/0/9               3/2                   0/0 
 0     GigabitEthernet0/0/10              1/0                   0/0 
 1     GigabitEthernet0/0/9               14/9                  -/-  
 1     GigabitEthernet0/0/10              8/10                  -/-  
 2     GigabitEthernet0/0/9               3/2                   -/-  
 2     GigabitEthernet0/0/10              1/0                   -/-
# Display statistics on sent and received TC and TCN BPDUs on ports running VBST.
<HUAWEI> display stp vlan 5 tc-bpdu statistics
 -------------------------- STP TC/TCN information --------------------------                                                       
 VLAN-ID  Port                        TC(Send/Receive)      TCN(Send/Receive)                                                          
       5  GigabitEthernet0/0/5        1/615                 0/0         
Table 1 Description of the display stp tc-bpdu statistics command output

Item

Description

MSTID

ID of an MSTP instance.

Port

Interface name.

TC(Send/Receive)

Statistics of sent and received TC BPDUs.

TCN(Send/Receive)

Statistics of send and received TCN BPDUs. ("-" indicates that MSTP instances except MSTP instance 0 do not have TCN BPDUs sent and received.)

VLAN-ID

VLAN ID.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >