< Home

snmp-agent trap enable feature-name l2bptnl

Function

The snmp-agent trap enable feature-name l2bptnl command enables the trap function for the Layer 2 tunneling module.

The undo snmp-agent trap enable feature-name l2bptnl command disables the trap function for the Layer 2 tunneling module.

By default, the trap function is enabled for the Layer 2 tunneling module.

Format

snmp-agent trap enable feature-name l2bptnl [ trap-name { hwl2protocoltunneldropthresholdfalling | hwl2protocoltunneldropthresholdraising } ]

undo snmp-agent trap enable feature-name l2bptnl [ trap-name { hwl2protocoltunneldropthresholdfalling | hwl2protocoltunneldropthresholdraising } ]

Parameters

Parameter

Description

Value

trap-name

Enables the traps of Layer 2 tunneling events of specified types.

-

hwl2protocoltunneldropthresholdfalling

Enables the alarm to be generated when the number of discarded protocol packets on the Layer 2 protocol tunneling-enabled interface falls below the threshold.

-

hwl2protocoltunneldropthresholdraising

Enables the alarm to be generated when the number of discarded protocol packets on the Layer 2 protocol tunneling-enabled interface exceeds the threshold.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When the trap function is enabled, the device generates traps during running and sends traps to the NMS through SNMP. When the trap function is not enabled, the device does not generate traps and the SNMP module does not send traps to the NMS.

You can specify trap-name to enable the trap function for one or more events.

Example

# Enable the alarm to be generated when the number of discarded protocol packets on the Layer 2 protocol tunneling-enabled interface exceeds the threshold.

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