The snmp-agent trap enable command enables the switch to send traps.
The undo snmp-agent trap enable command restores the default setting.
The default configuration of the snmp-agent trap enable command can be checked by the display snmp-agent trap all command.
The snmp-agent trap enable command must be used together with the snmp-agent target-host inform command or snmp-agent target-host trap command.
To enable a device to send traps, you need to run at least the snmp-agent target-host inform command or snmp-agent target-host trap command on the device to specify the destination address of the traps.