The snmp-agent trap enable feature-name mstp command enables the trap function for the MSTP module.
By default, the trap function is disabled for the MSTP module.
snmp-agent trap enable feature-name mstp trap-name { nnewroot | ntopologychange }
undo snmp-agent trap enable feature-name mstp trap-name { nnewroot | ntopologychange }
Parameter | Description | Value |
---|---|---|
trap-name | Enables the traps of spanning tree protocol events of specified types. | - |
nnewroot | Enables the device to send trap when the current device is elected as the root bridge. | - |
ntopologychange | Enables the device to send trap when the topology changes. | - |
This command is available to aid upgrade compatibility. It can only be run during the configuration restoration phase of the upgrade.
After the upgrade, this command is no longer supported, and it is replaced by the snmp-agent trap enable feature-name mstp trap-name { newroot | topologychange } command in the system view.