Operation Manual – MSTP
H3C S5100-SI/EI Series Ethernet Switches
Chapter 1 MSTP Configuration
1-54
1.10 STP Maintenance Configuration
1.10.1 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.
1.10.2 Enabling Log/Trap Output for Ports of MSTP Instance
Follow these steps to enable log/trap output for ports of MSTP instance:
To do...
Use the command...
Remarks
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.
1.10.3 Configuration Example
# Enable log/trap output for the ports of instance 1.
<Sysname> system-view
[Sysname] stp instance 1 portlog
# Enable log/trap output for the ports of all instances.
<Sysname> system-view
[Sysname] stp portlog all
1.11 Enabling Trap Messages Conforming to 802.1d
Standard
When enabled, the switch sends the following two types of 802.1d-compliant traps to
the network management device:
z
When the switch is configured to be the root bridge of a spanning tree instance, it
sends 802.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 to the network management device.