The snmp-agent trap enable feature-name snmp command enables an SNMP trap.
The undo snmp-agent trap enable feature-name snmp command disables an SNMP trap.
snmp-agent trap enable feature-name snmp [ trap-name { authenticationfailure | coldstart | hwsnmplockthreshold | hwsnmplockthresholdresume | warmstart } ]
undo snmp-agent trap enable feature-name snmp [ trap-name { authenticationfailure | coldstart | hwsnmplockthreshold | hwsnmplockthresholdresume | warmstart } ]
| Parameter | Description | Value |
|---|---|---|
| trap-name | Specifies the name of a trap. | - |
| authenticationfailure | Enables or disables the trap generated when a user uses an incorrect community name and is unable to log in to the device. | - |
| coldstart | Enables or disables the trap generated when the device is powered off and restarted. | - |
| hwsnmplockthreshold | Enables or disables the trap generated when the number of users who were locked due to an authentication failure reached the upper threshold. | - |
| hwsnmplockthresholdresume | Enables or disables the trap generated when the number of users who were locked due to an authentication failure fell below the lower threshold. | - |
| warmstart | Enables or disables the trap generated when the status of SNMP agent is changed from disable to enable. | - |
| trap-name trap-name | Specifies the name of a trap. |
|
By default, the authenticationFailure trap is disabled and others are enabled.
The snmp-agent trap enable feature-name snmp command is used to enable an SNMP trap. After that, the trap generated during the device running will be sent to the NMS.
If trap-name trap-name is not configured, the command enables all SNMP alarms.