3Com Switch 7750 Configuration Guide

274 CHAPTER 30: MSTP CONFIGURATION
STP Maintenance
Configuration
Introduction 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, maintenance
personnel may expect that log/trap information is output to the log host when
particular ports fail, so that they can check the status changes of those ports
through alarm information.
Enabling Log/Trap
Output for Ports of
MSTP Instance
Configuration Example # Enable log/trap output for the ports of instance 1.
<SW7750> system-view
[SW7750] stp instance 1 portlog
# Enable log/trap output for the ports of all instances.
<SW7750> system-view
[SW7750] stp portlog all
MSTP Displaying and
Debugging
You can verify the above configurations by executing the display commands in
any view.
Execute the reset command in user view to clear MSTP statistics.
Table 208 Enable log/trap output for ports of MSTP instance
Operation Command Description
Enter system view system-view -
Enable log/trap output for the
ports of a specified instance
stp [ instance instance-id ]
portlog
Required
By default, log/trap output is
disabled for the ports of all
instances.
Enable log/trap output for the
ports of all instances
stp portlog all Required
By default, log/trap output is
disabled for the ports of all
instances.
Table 209 Display and debug MSTP
Operation Command
Display spanning tree-related
information about the current switch
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
Clear MSTP-related statistics reset stp [ interface interface-list ]