
41
Default level
1: Monitor level
Parameters
instance
instance-id
: Displays the status and statistics of a specific MSTI. The
instance-id
argument ranges
from 0 to 15, where 0 represents the common internal spanning tree (CIST).
interface
interface-list
: Displays the spanning tree status and statistics on the ports specified by a port list,
in the format of
interface-list
= {
interface-type interface-number
[
to
interface-type
interface-number
] }&<1-10>, where &<1-10> indicates that you can specify up to 10 ports or port
ranges.
brief
: Displays brief spanning tree status and statistics.
|
: 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
to display the spanning tree status and statistics.
Based on the spanning tree status and statistics, you can analyze and maintain the network topology or
check whether spanning tree is working normally.
In STP/RSTP mode, follow these guidelines:
•
If you do not specify any port, this command displays the spanning tree information of all ports. The
displayed information is sorted by port name.
•
If you specify a port list, this command displays the spanning tree information of the specified ports.
The displayed information is sorted by port name.
In MSTP mode, follow these guidelines:
•
If you do not specify any MSTI or port, this command displays the spanning tree information of all
MSTIs on all ports. The displayed information is sorted by MSTI ID and by port name in each MSTI.
•
If you specify an MSTI but not a port, this command displays the spanning tree information of all
ports in that MSTI. The displayed information is sorted by port name.
•
If you specify some ports but not an MSTI, this command displays the spanning tree information of
all MSTIs on the specified ports. The displayed information is sorted by MSTI ID and by port name
in each MSTI.
•
If you specify both an MSTI ID and a port list, this command displays the spanning tree information
of the specified ports in the specified MSTI. The displayed information is sorted by port name.
The MSTP status information includes the following parameters:
•
CIST global parameters:
{
Protocol work mode
{
Device priority in the CIST (Priority)
{
MAC address
{
Hello time