109
Default level
1: Monitor level
Parameters
|: 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.
Examples
# In MSTP mode, display the root bridge information of all spanning trees.
<Sysname> display stp root
MSTID Root Bridge ID ExtPathCost IntPathCost Root Port
0 0.00e0-fc0e-6554 200200 0 GigabitEthernet1/0/1
# In PVST mode, display the root bridge information of all spanning trees.
<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] display stp root
VLAN Root Bridge ID ExtPathCost IntPathCost Root Port
1 0.00e0-fc0e-6554 200200 0 GigabitEthernet1/0/1
Table 31 Command output
External path cost. Either the device calculates the default path cost of a port
automatically or you can use the stp cost command to configure the path cost
of a port.
Internal path cost. Either the device calculates the default path cost of a port
automatically or you can use the stp cost command to configure the path cost
of a port.
Root port name (displayed only if a port of the device is the root port of MSTIs).
display stp tc
Description
Use the display stp tc command to display the statistics of TC/TCN BPDUs received and sent by all ports
in an MSTI or all MSTIs.
In STP/RSTP mode, the displayed information is sorted by port name.
In MSTP mode, follow these guidelines:
If you do not specify any MSTI, this command displays the statistics of TC/TCN BPDUs received and
sent by all ports in all MSTIs. The displayed information is sorted by instance ID and by port name
in each MSTI.