Enabling Snmp Notifications For New-Root Election And Topology Change Events; Displaying And Maintaining The Spanning Tree - H3C S7500E-X Configuration Manual

Layer 2 lan switching
Hide thumbs Also See for H3C S7500E-X:
Table of Contents

Advertisement

Step
Enter Layer 2 Ethernet
2.
interface view.
Enable BPDU drop on the
3.
current interface.
Enabling SNMP notifications for new-root election
and topology change events
This feature enables the device to generate logs and report new-root election events or spanning
tree topology changes to SNMP. For the event notifications to be sent correctly, you must also
configure SNMP on the device. For more information about SNMP configuration, see the network
management and monitoring configuration guide for the device.
When you use the snmp-agent trap enable stp [ new-root | tc ] command, follow these guidelines:
The new-root keyword applies only to STP, MSTP, and RSTP modes.
The tc keyword applies only to PVST mode.
In STP, MSTP, or RSTP mode, the snmp-agent trap enable stp command enables SNMP
notifications for new-root election events.
In PVST mode, the snmp-agent trap enable stp enables SNMP notifications for spanning tree
topology changes.
To enable SNMP notifications for new-root election and topology change events:
Step
Enter system view.
1.
Enable SNMP notifications
2.
for new-root election events.
Enable SNMP notifications
3.
for spanning tree topology
changes.
Enable the device to
4.
generate a log when it
detects or receives a TCN
BPDU in PVST mode.

Displaying and maintaining the spanning tree

Execute display commands in any view and reset command in user view.
Command
interface interface-type
interface-number
bpdu-drop any
Command
system-view
In STP, MSTP, or RSTP mode,
execute either of the following
commands:
snmp-agent trap enable
stp new-root
snmp-agent trap enable
stp
In PVST mode, execute either of
the following commands:
snmp-agent trap enable
stp tc
snmp-agent trap enable
stp
stp log enable tc
98
Remarks
N/A
By default, BPDU drop is
disabled.
Remarks
N/A
The default settings are as
follows:
SNMP notifications are
disabled for new-root
election events.
In MSTP mode, SNMP
notifications are enabled in
MSTI 0 and disabled in other
MSTIs for spanning tree
topology changes.
In PVST mode, SNMP
notifications are disabled for
spanning tree topology
changes in all VLANs.
By default, the device does not
generate a log when it detects or
receives a TCN BPDU in PVST
mode.

Advertisement

Table of Contents
loading

Table of Contents