< Home

display snmp-agent trap feature-name snmp all

Function

The display snmp-agent trap feature-name snmp all command displays whether the switch is enabled to send traps of the SNMP feature to the NMS.

Format

display snmp-agent trap feature-name snmp all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

After running the snmp-agent trap enable feature-name snmp command to enable the function of sending traps of the SNMP feature to the NMS, you can run the display snmp-agent trap feature-name snmp all command to check whether this function is enabled.

Prerequisites

SNMP has been enabled. For details, see snmp-agent.

Example

# Display whether the switch is enabled to send traps of SNMP feature to the NMS.

<HUAWEI> display snmp-agent trap feature-name snmp all
------------------------------------------------------------------------------  
Feature name: SNMP                                                              
Trap number : 5                                                                 
------------------------------------------------------------------------------  
Trap name                       Default switch status   Current switch status   
coldStart                       on                      on                      
warmStart                       on                      on                      
authenticationFailure           off                     off            
hwSNMPLockThreshold             on                      on                      
hwSNMPLockThresholdResume       on                      on   
Table 1 Description of the display snmp-agent trap feature-name snmp all command output

Item

Description

Feature name

Name of the feature that generates traps.

Trap number

Number of traps generated by SNMP feature.

Trap name

Name of the trap. The SNMP feature supports the following traps:

  • coldStart: This trap is generated when the device is powered off and restarted.
  • warmStart: This trap is generated when the status of SNMP agent is changed from disable to enable.
  • authenticationFailure: This trap is generated when a user uses an incorrect community name and is unable to log in to the device.
  • hwSNMPLockThreshold: This trap is generated when the number of users who were locked due to an authentication failure reached the upper threshold.
  • hwSNMPLockThresholdResume: This trap is generated when the number of users who were locked due to an authentication failure fell below the lower threshold.

Default switch status

Default status of a trap:
  • on: The switch is enabled to send this trap to the NMS.
  • off: The switch is disabled to send this trap to the NMS.

Current switch status

Current status of a trap:
  • on: The switch is enabled to send this trap to the NMS.
  • off: The switch is disabled to send this trap to the NMS.

This status can be configured using the snmp-agent trap enable feature-name snmp command.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >