R3303-HP HSR6800 Routers Layer 2 - LAN Switching Command Reference

44
display stp
Use display stp to display the spanning tree status and statistics information.
Syntax
In standalone mode:
display stp [ instance instance-id ] [ interface interface-list | slot slot-number ] [ brief ] [ | { begin |
exclude | include } regular-expression ]
In IRF mode:
display stp [ instance instance-id ] [ interface interface-list | chassis chassis-number 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. (In standalone mode.)
chassis chassis-number slot slot-number: Specifies a card on an IRF member device. The chassis-number
argument represents the member ID of the IRF member device, and 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 in the IRF fabric. (In IRF mode.)
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: