The snmp-agent trap enable feature-name manager command enables the trap function of the administrator module.
The undo snmp-agent trap enable feature-name manager command disables the trap function of the administrator module.
snmp-agent trap enable feature-name manager [ trap-name { hwloginsucceed | hwloginfailed | hwlogoutsucceed | hwlogoutfailed } ]
undo snmp-agent trap enable feature-name manager [ trap-name { hwloginsucceed | hwloginfailed | hwlogoutsucceed | hwlogoutfailed } ]
| Parameter | Description | Value |
|---|---|---|
| trap-name | Indicates the name of trap. | - |
| hwloginsucceed | Indicates the trap that an administrator logged in successfully. | - |
| hwloginfailed | Indicates the trap that an administrator failed to log in. | - |
| hwlogoutsucceed | Indicates the alarm that an administrator logged out successfully. | - |
| hwlogoutfailed | Indicates the trap that an administrator failed to log out. | - |
By default, the trap function of the administrator module is disabled.
To enable the NMS to manage the administrator module and allow the device to report traps to the NMS in a timely manner, you can use this command to enable the trap function of the administrator module. If the trap function is disabled, the traps will not be sent to the NMS.
If no trap is specified using trap-name trap-name, running this command will enable all trap functions of the administrator module.