1-46# Enable log/trap output for the ports of all instances. system-view[Sysname] stp portlog allEnabling Trap Messages Conforming to 802.1d StandardA switch sends trap messages conforming to 802.1d standard to the network management device in thefollowing two cases:z The switch becomes the root bridge of an instance.z Network topology changes are detected.Configuration procedureFollow these steps to enable trap messages conforming to 802.1d standard:To do... Use the command... RemarksEnter system view system-view —Enable trap messages conformingto 802.1d standard in an instancestp [ instance instance-id ] dot1d-trap[ newroot | topologychange ] enable RequiredConfiguration example# Enable a switch to send trap messages conforming to 802.1d standard to the network managementdevice when the switch becomes the root bridge of instance 1. system-view[Sysname] stp instance 1 dot1d-trap newroot enableDisplaying and Maintaining MSTPTo do... Use the command... RemarksDisplay the state and statisticsinformation about spanning trees ofthe current devicedisplay stp [ instance instance-id ][ interface interface-list | slotslot-number ] [ brief ]Display region configuration display stp region-configurationDisplay information about the portsthat are shut down by STPprotectiondisplay stp portdownDisplay information about the portsthat are blocked by STP protection display stp abnormalportDisplay information about the rootport of the instance where the switchresidedisplay stp rootAvailable in anyviewClear statistics about MSTP reset stp [ interface interface-list ] Available in userview