< Home

snmp-agent trap enable feature-name trap-name

Function

The snmp-agent trap enable feature-name trap-name command, enables the router to send an alarm of a specified feature to the NM station.

The undo snmp-agent trap enable feature-name trap-name command deletes the current setting.

Format

snmp-agent trap enable feature-name feature-name [ trap-name trap-name ]

undo snmp-agent trap enable feature-name feature-name [ trap-name trap-name ]

Parameters

Parameter Description Value

feature-name feature-name

Specifies the feature that generates alarms.

NOTE:

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.

It is a string of 1 to 256 characters, which are case-insensitive and cannot be blank spaces.

trap-name trap-name

Specifies the name of an alarm.

NOTE:

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

It is a string of 1 to 256 characters, which are case-insensitive and cannot be blank spaces.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

By default, only certain alarms can be sent to the NM station.

Run the snmp-agent trap enable feature-name feature-name trap-name trap-name command. If the alarm is an excessive alarm, the system prompts the user about whether to send this alarm to the NM station.

The NM station can receive this alarm only after being configured with the IP address by running the snmp-agent target-host inform command or the snmp-agent target-host trap command.

Example

# Enable the device to send an hwethernetarpthresholdresumealarm alarm of arp to the NM station.

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