snmp-agent trap enable feature-name snmp
Function
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.
By default, the authenticationFailure trap is disabled.
Format
snmp-agent trap enable feature-name snmp [ trap-name trap-name ]
undo snmp-agent trap enable feature-name snmp [ trap-name trap-name ]
Parameters
Parameter | Description | Value |
---|---|---|
trap-name trap-name | Specifies the name of a trap. | The trap can only be authenticationFailure. |
Usage Guidelines
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. At present, the authenticationFailure are supported. This trap is generated when a user uses an incorrect community name and is unable to log in to the device.
You can run the display snmp-agent trap feature-name snmp all command to check the configuration result.