94
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 brief spanning tree status and statistics of MSTI 0 on ports GigabitEthernet
1/0/1 through GigabitEthernet 1/0/4.
<Sysname> display stp instance 0 interface gigabitethernet 1/0/1 to gigabitethernet 1/0/4
brief
MSTID Port Role STP State Protection
0 GigabitEthernet1/0/1 ALTE DISCARDING LOOP
0 GigabitEthernet1/0/2 DESI FORWARDING NONE
0 GigabitEthernet1/0/3 DESI FORWARDING NONE
0 GigabitEthernet1/0/4 DESI FORWARDING NONE
# In PVST mode, display the brief spanning tree status and statistics of VLAN 2 on ports GigabitEthernet
1/0/1 through GigabitEthernet 1/0/4.
<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] display stp vlan 2 interface gigabitethernet 1/0/1 to gigabitethernet 1/0/4
brief
VLAN Port Role STP State Protection
2 GigabitEthernet1/0/1 ALTE DISCARDING LOOP
2 GigabitEthernet1/0/2 DESI FORWARDING NONE
2 GigabitEthernet1/0/3 DESI FORWARDING NONE
2 GigabitEthernet1/0/4 DESI FORWARDING NONE
Table 23 display stp brief command output description
MSTI ID in the MST region
Port name, corresponding to each MSTI or VLAN
Port role:
ALTE—Port is an alternate port
BACK—Port is a backup port
ROOT—Port is a root port
DESI—Port is a designated port
MAST—Port is a master port
DISA—Port is disabled
Spanning tree status on the port:
FORWARDING—Port can receive and send BPDUs, and also forward user
traffic
DISCARDING—Port can receive and send BPDUs, but cannot forward user
traffic
LEARNING—Port is in a transitional state. It can receive and send BPDUs,
but cannot forward user traffic