扩充树陷阱
Syntax
扩充树陷阱{new-root|topology-change [instance <0-64>] | errant-bpdu | root-guard-inconsistency | loop-guard-inconsistency} no spanning-tree trap {new-root|topology-change [instance <0-64>] | errant-bpdu | root-guard-inconsistency | loop-guard-inconsistency}
描述
This command enables SNMP traps for new root, topology change event, errant-bpdu received event, root-guard inconsistency, and loop-guard inconsistency notifications. It is disabled by default.
The没有
form of this command disables SNMP traps for new root and topology change event notifications.
Command context
config
Parameters
-
new-root
-
启用SNMP没有tification when a new root is elected on any MST instance on the switch.
-
topology-change
-
启用SNMP没有tification when a topology change event occurs in the specified MST instance on the switch.
-
errant-bpdu
-
启用SNMP没有tification when an errant bpdu is received by any MST instance on the switch.
-
root-guard-inconsistency
- 启用SNMP没有tification when the root-guard finds the port inconsistent for any MST instance on the switch.
-
loop-guard-inconsistency
- 启用SNMP没有tification when the loop-guard finds the port inconsistent for any MST instance on the switch.
Authority
Administrators or local user group members with execution rights for this command.
Examples
启用SNMP没有tification when a new root is elected:
switch(config)#扩充树陷阱new-root
启用SNMP没有tification when a topology change event occurs:
switch(config)#扩充树陷阱topology-change
启用SNMP没有tification when a topology change event occurs on instance 1:
switch(config)#扩充树陷阱topology-change instance 1
Disabling SNMP traps when a topology change event notification occurs on instance 1:
switch(config)#没有扩充树陷阱topology-change instance 1