R3303-HP 6600/HSR6600 Routers Layer 2 - LAN Switching Command Reference

44
display stp
Use display stp to display the spanning tree status and statistics information.
Syntax
display stp [ instance instance-id ] [ interface interface-list | slot slot-number ] [ brief ] [ | { begin |
exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
instance instance-id: Displays the status and statistics information of a specific MSTI. The value range for
this argument is 0 to 31. The value 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.
slot slot-number: Specifies a card by its slot number. The slot-number argument represents the slot number
of the card. If you do not specify a card, this command displays the spanning tree status and statistics on
all cards.
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.
Usage guidelines
Based on the spanning tree status and statistics information, you can analyze and maintain the network
topology or check whether spanning tree is working correctly.
In STP or RSTP mode:
If you do not specify any port, this command displays the spanning tree information for all ports.
The displayed information is sorted by port name.
If you specify a port list, this command displays the spanning tree information for the specified ports.
The displayed information is sorted by port name.
In MSTP mode:
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 on all
ports in that MSTI. The displayed information is sorted by port name.