< Home

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.

Format

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

Parameters

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.
  • coldStart
  • warmStart
  • authenticationFailure

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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.

Example

# Enable the SNMP coldStart trap.

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