< Home

snmp-agent trap enable feature-name mpls

Function

snmp-agent trap enable feature-name mpls command enables the trap function for the MPLS module.

undo snmp-agent trap enable feature-name mpls command disables the trap function for the MPLS module.

By default, the trap function is enabled for the MPLS module.

Format

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

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

Parameters

Parameter

Description

Value

trap-name trapname

Enables or disables the trap function for the specified event.

  • hwboardmplsphpreslack: Enables the trap function when MPLS PHP labels are insufficient.
    NOTE:

    This trap is only supported by S6720-EI and S6720S-EI.

  • hwboardmplsnonsupport: Enables the trap function when the device does not support MPLS.
    NOTE:

    This trap is only supported by S5720-EI.

  • hwboardmplsfwdreslack: Enables the trap function when MPLS forwarding resources are insufficient.
  • hwboardmplsfwdreslackresume: Enables the trap function when the alarm of MPLS forwarding resource insufficiency is cleared
  • hwboardmplsfwdresfull: Enables the trap function when MPLS forwarding resources are used up.

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 hwboardmplsfwdreslack trap of the MPLS module.

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