Configuration procedure, Configuration example, Displaying and maintaining mstp – H3C Technologies H3C S3600 Series Switches User Manual
Page 299
1-46
[Sysname] stp instance 1 portlog
# Enable log/trap output for the ports of all instances.
[Sysname] stp portlog all
Enabling Trap Messages Conforming to 802.1d Standard
A switch sends trap messages conforming to 802.1d standard to the network management device in the
following two cases:
z
The switch becomes the root bridge of an instance.
z
Network topology changes are detected.
Configuration procedure
Follow these steps to enable trap messages conforming to 802.1d standard:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Enable trap messages conforming
to 802.1d standard in an instance
stp
[ instance instance-id ] dot1d-trap
[ newroot | topologychange ] enable
Required
Configuration example
# Enable a switch to send trap messages conforming to 802.1d standard to the network management
device when the switch becomes the root bridge of instance 1.
[Sysname] stp instance 1 dot1d-trap newroot enable
Displaying and Maintaining MSTP
To do...
Use the command...
Remarks
Display the state and statistics
information about spanning trees of
the current device
display stp
[ instance instance-id ]
[ interface interface-list | slot
slot-number
] [ brief ]
Display region configuration
display stp region-configuration
Display information about the ports
that are shut down by STP
protection
display stp portdown
Display information about the ports
that are blocked by STP protection
display stp abnormalport
Display information about the root
port of the instance where the switch
reside
display stp root
Available in any
view
Clear statistics about MSTP
reset stp
[ interface interface-list ]
Available in user
view