54
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 information about ports blocked by spanning tree protection functions.
<Sysname> display stp abnormal-port
MSTID Blocked Port Reason
1 Ethernet1/1 ROOT-Protected
2 Ethernet1/2 LOOP-Protected
2 Ethernet1/3 Formatcompatibility–Protected
Table 14 Command output
Field Description
Blocked Port
Name of a blocked port, which corresponds to the related MSTI.
Reason
Reason the port was blocked:
•
ROOT-Protected
—Root guard function.
•
LOOP-Protected
—Loop guard function.
•
Formatcompatibility-Protected
—MSTP BPDU format incompatibility
protection function.
display stp bpdu-statistics
Use
display stp bpdu-statistics
to display the BPDU statistics on ports.
Syntax
display stp bpdu-statistics
[
interface interface-type interface-number
[
instance instance-id
] ] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Views
Any view
Default command level
1: Monitor level
Parameters
interface interface-type interface-number
: Displays the BPDU statistics on a specified port, where
interface-type interface-number
indicates the port type and number.
instance instance-id
: Displays the BPDU statistics of a specified MSTI on a specified port. The
minimum value of
instance-id
is 0, representing the CIST, and the maximum value is 15.
|
: 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
In MSTP mode: