Enabling SNMP traps
Syntax:
spanning-tree trap {errant-bpdu | loop-guard | new-root | root-guard}
no spanning-tree trap {errant-bpdu | loop-guard | new-root | root-guard}
Enables or disables SNMP traps for errant-BPDU, loop guard, new root, and root guard event notifications. This command is designed to be used in conjunction with the
spanning-tree bpdu-filter
command and the
bpdu-protection
command.
Parameters
errant-bpdu
Enables SNMP notification when an errant BPDU is received. Designed for use with BPDU filtering.
loop-guard
Enables SNMP notification when a loop guard inconsistency is detected. Designed for use with the Loop Guard option.
new-root
Enables SNMP notification when a new root is elected on any VLAN configured for MSTP on the switch.
root-guard
Enables SNMP notification when a root guard inconsistency is detected.
Default for all of the above options: Disabled
The
no
form of the command disables traps on the switch.