< Home

snmp-agent trap enable feature-name manager

Function

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.

Format

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 } ]

Parameters

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. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Enable the trap function of the administrator module to report administrator login failures.

<sysname> system-view
[sysname] snmp-agent trap enable feature-name manager trap-name hwloginfailed
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >