< Home

display snmp-agent trap feature-name all

Function

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

Format

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

Parameters

Parameter Description Value

feature-name

Specifies the feature that generates alarms.

The value of feature-name must be included in the fixed character strings defined in the system. After entering feature-name, type a question mark (?) following a space to display all the predefined character strings. Select one from the displayed character strings.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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

Example

# Display the status of the ARP alarms and the flag indicating whether the alarm is an extensive alarm.
<sysname> display snmp-agent trap feature-name arp all 
 Feature name: ARP                            
 Trap number : 3          
 ------------------------------------------------------------------------------
 Trap name                       Default switch status   Current switch status 
 hwEthernetARPThresholdExceedAlarm
                                 on                      on
 hwEthernetARPThresholdResumeAlarm 
                                 on                      on
 hwEthernetARPIPConflictEvent    on                      on 
Table 1 Description of the display snmp-agent trap feature-name 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: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.

Current switch status

Status of the current trap switch:
  • on: indicates that the trap function is enabled.
  • off: indicates that the trap function is disabled.
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >