124
Step Command
Remarks
2.
Enable SNMP notifications
for new-root election events.
In STP, MSTP, or RSTP mode,
execute either of the following
commands:
•
snmp-agent trap enable
stp new-root
•
snmp-agent trap enable
stp
The default settings are as
follows:
•
SNMP notifications are
disabled for new-root
election events.
•
In MSTP mode, SNMP
notifications are enabled in
MSTI 0 and disabled in other
MSTIs for spanning tree
topology changes.
•
In PVST mode, SNMP
notifications are disabled for
spanning tree topology
changes in all VLANs.
3.
Enable SNMP notifications
for spanning tree topology
changes.
In PVST mode, execute either of
the following commands:
•
snmp-agent trap enable
stp tc
•
snmp-agent trap enable
stp
Displaying and maintaining the spanning tree
Execute
display
commands in any view and
reset
command in user view.
Task Command
Display history about ports blocked by spanning tree
protection features.
display stp abnormal-port
Display BPDU statistics on ports.
display stp bpdu-statistics
[
interface
interface-type interface-number
[
instance
instance-list
] ]
Display information about ports shut down by spanning
tree protection features.
display stp down-port
(In standalone mode.) Display the port role calculation
history for the specified MSTI or all MSTIs.
display stp
[
instance
instance-list
|
vlan
vlan-id-list
]
history
[
slot
slot-number
]
(In IRF mode.) Display the port role calculation history
for the specified MSTI or all MSTIs.
display stp
[
instance
instance-list
|
vlan
vlan-id-list
]
history
[
chassis
chassis-number
slot
slot-number
]
(In standalone mode.) Display the incoming and
outgoing TC/TCN BPDU statistics by all ports in the
specified MSTI or all MSTIs.
display stp
[
instance
instance-list
|
vlan
vlan-id-list
]
tc
[
slot
slot-number
]
(In IRF mode.) Display the incoming and outgoing
TC/TCN BPDU statistics by all ports in the specified
MSTI or all MSTIs.
display stp
[
instance
instance-list
|
vlan
vlan-id-list
]
tc
[
chassis
chassis-number
slot
slot-number
]
(In standalone mode.) Display the spanning tree status
and statistics.
display stp
[
instance instance-list
|
vlan
vlan-id-list
]
[
interface interface-list
|
slot
slot-number
]
[
brief
]
(In IRF mode.) Display the spanning tree status and
statistics.
display stp
[
instance instance-list
|
vlan
vlan-id-list
]
[
interface interface-list
|
chassis
chassis-number
slot
slot-number
]
[
brief
]
Display the MST region configuration information that
has taken effect.
display stp region-configuration
Display the root bridge information of all MSTIs.
display stp root
Clear the spanning tree statistics.
reset stp
[
interface
interface-list
]