274 CHAPTER 30: MSTP C ONFIGURATIONSTP MaintenanceConfigurationIntroduction In a large-scale network with MSTP enabled, there may be many MSTP instances,and so the status of a port may change frequently. In this case, maintenancepersonnel may expect that log/trap information is output to the log host whenparticular ports fail, so that they can check the status changes of those portsthrough alarm information.Enabling Log/TrapOutput for Ports ofMSTP InstanceConfiguration Example # Enable log/trap output for the ports of instance 1. system-view[SW7750] stp instance 1 portlog# Enable log/trap output for the ports of all instances. system-view[SW7750] stp portlog allMSTP Displaying andDebuggingYou can verify the above configurations by executing the display commands inany view.Execute the reset command in user view to clear MSTP statistics.Table 208 Enable log/trap output for ports of MSTP instanceOperation Command DescriptionEnter system view system-view -Enable log/trap output for theports of a specified instancestp [ instance instance-id ]portlogRequiredBy default, log/trap output isdisabled for the ports of allinstances.Enable log/trap output for theports of all instancesstp portlog all RequiredBy default, log/trap output isdisabled for the ports of allinstances.Table 209 Display and debug MSTPOperation CommandDisplay spanning tree-relatedinformation about the current switchdisplay stp [ instance instance-id ] [ interfaceinterface-list | slot slot-number ] [ brief ]Display region configuration display stp region-configurationDisplay information about the ports thatare shut down by STP protectiondisplay stp portdownDisplay information about the ports thatare blocked by STP protectiondisplay stp abnormalportDisplay information about the root portof the instance where the switch residedisplay stp rootClear MSTP-related statistics reset stp [ interface interface-list ]