1-46# Enable log/trap output for the ports of all instances. system-view[Sysname] stp portlog allEnabling Trap Messages Conforming to 802.1d StandardWhen enabled, the switch sends the following two types of 802.1d-compliant traps to the networkmanagement device:z When the switch is configured to be the root bridge of a spanning tree instance, it sends802.1d-compliant newroot traps to the network management device.z When the switch detects a topology change, it sends 802.1d-compliant topology-change traps tothe network management device.The stp instance instance-id dot1d-trap enable command enables both newroot and topology-changetrap functions for the specified spanning tree instance at the same time.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 any viewClear statistics about MSTP reset stp [ interface interface-list ] Available in user view