display snmp-agent trap all

Function

The display snmp-agent trap all command displays the default and configured status of all traps in all features.

The display snmp-agent trap feature-name all command displays whether the router is enabled to send alarms of specified features to an NM station.

Format

display snmp-agent trap [ feature-name feature-name ] all

Parameters

Parameter Description Value
feature-name

Specifies the name of a feature that generates alarms.

A simple text password is a string of 1 to 255 characters.

Views

All views

Default Level

3: Management level

Task Name and Operations

Task Name Operations
log read

Usage Guidelines

To view the default configuration of the snmp-agent trap enable feature-name command, run the display snmp-agent trap all command.

After the router is enabled to send alarms to the NM station, run the display snmp-agent trap feature-name all command to check whether the alarm function is enabled for special features.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the status of the AAA alarms.
<HUAWEI> display snmp-agent trap feature-name aaa all
------------------------------------------------------------------------------
Feature name: AAA
Trap number : 1
------------------------------------------------------------------------------
Trap name                      Default switch status   Current switch status  
hwAdminLoginFailedClear        on                      on
# Display the default status of all traps in all features.
<HUAWEI> display snmp-agent trap all
------------------------------------------------------------------------------
Feature name: ISISCOMM
Trap number : 17
------------------------------------------------------------------------------
Trap name                      Default switch status   Current switch status  
isisAdjacencyChange            off                     off                    
isisAreaMismatch               off                     off                    
isisAttemptToExceedMaxSequence on                      on                     
isisAuthenticationFailure      off                     off                    
isisAuthenticationTypeFailure  off                     off                    
isisCorruptedLSPDetected       off                     off                    
isisDatabaseOverload           off                     off                    
isisIDLenMismatch              off                     off                    
isisLSPTooLargeToPropagate     off                     off                    
isisManualAddressDrops         off                     off                    
isisMaxAreaAddressesMismatch   off                     off                    
isisOrigLSPBuffSizeMismatch    off                     off                    
isisOwnLSPPurge                off                     off                    
isisProtocolsSupportedMismatch on                      on                     
isisRejectedAdjacency          off                     off                    
isisSequenceNumberSkip         off                     off                    
isisVersionSkew                off                     off                    
------------------------------------------------------------------------------
Table 1 Description of the display snmp-agent trap all command output
Item Description
Feature name

Name of the feature that generates alarms.

Trap number

Number of alarms generated by this feature.

Trap name

Name of the alarm.

Default switch status

Status of the default trap switch:

  • on: Trap function is enabled.
  • off: Trap function is disabled.
Current switch status

Status of the current trap switch:

  • on: Trap function is enabled.
  • off: Trap function is disabled.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >