Enabling SNMP notifications for new-root election and topology change events
This task 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 is not supported in the current software version.
In STP, MSTP, or RSTP mode, the snmp-agent trap enable stp command enables SNMP notifications for new-root election events.
To enable SNMP notifications for new-root election events:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enable SNMP notifications for new-root election events. |
| The default settings are as follows:
|