display stp abnormal-port

Syntax

display stp abnormal-port [ | { begin | exclude | include } regular-expression ]

View

Any view

Default level

1: Monitor level

Parameters

|: 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 abnormal-port to display information about ports blocked by spanning tree protection functions.

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/0/1         ROOT-Protected 
   2        Ethernet1/0/2         LOOP-Protected 
   2        Ethernet1/0/3         Formatcompatibility–Protected

# In PVST mode, display information about ports blocked by spanning tree protection functions.

<Sysname> system-view
[Sysname] stp mode pvst
[Sysname] display stp abnormal-port
 VLAN      Blocked Port          Reason
    1      Ethernet1/0/1         ROOT-Protected
    2      Ethernet1/0/2         LOOP-Protected
    2      Ethernet1/0/3         Formatcompatibility–Protected

Table 24: Command output

Field

Description

Blocked Port

Name of a blocked port, which corresponds to the related MSTI or VLAN.

Reason

Reason that the port was blocked:

  • ROOT-Protected—Root guard function.

  • LOOP-Protected—Loop guard function.

  • Formatcompatibility-Protected—MSTP BPDU format incompatibility protection function.

  • InconsistentPortType-Protected—Port type inconsistent protection function.

  • InconsistentPvid-Protected—PVID inconsistent protection function.