< Home

snmp-agent trap enable feature-name rmon

Function

The snmp-agent trap enable feature-name rmon command enables the alarm function for the RMON module.

The undo snmp-agent trap enable feature-name rmon command disables the alarm function for the RMON module.

By default, the alarm function is enabled for the RMON module.

Format

snmp-agent trap enable feature-name rmon [ trap-name { fallingalarm | risingalarm | rmon_pri_fallingalarm | rmon_pri_risingalarm } ]

undo snmp-agent trap enable feature-name rmon [ trap-name { fallingalarm | risingalarm | rmon_pri_fallingalarm | rmon_pri_risingalarm } ]

Parameters

Parameter Description Value

trap-name

Enables or disables the alarm function for the specified event.

If no event type is specified using the trap-name parameter, all types of alarms are enabled or disabled for the RMON module.

-

fallingalarm

Indicates that the current sampled value is smaller than or equal to the threshold configured in the alarmTable.

-

risingalarm

Indicates that the current sampled value is greater than or equal to the threshold configured in the alarmTable.

-

rmon_pri_fallingalarm

Indicates that the current sampled value is smaller than or equal to the threshold configured in the prialarmTable.

-

rmon_pri_risingalarm

Indicates that the current sampled value is greater than or equal to the threshold configured in the prialarmTable.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

A device managed by the NMS can send traps to the NMS if the alarm function is enabled for the RMON module on the device. By default, all alarms for the RMON module are enabled. If only one or some event alarms need to be enabled, run the snmp-agent trap enable feature-name rmon trap-name command.

Example

# Enable the fallingalarm for the RMON module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name rmon trap-name fallingalarm
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic