< Home

snmp-agent trap enable feature-name ldp

Function

The snmp-agent trap enable feature-name ldp command enables the trap for the MPLS LDP module.

The undo snmp-agent trap enable feature-name ldp command disables the trap for the MPLS LDP module.

By default, the trap is disabled for the MPLS LDP module.

Format

snmp-agent trap enable feature-name ldp trap-name { session-down-mib | session-pvl | session-retry | session-up-mib }

undo snmp-agent trap enable feature-name ldp trap-name { session-down-mib | session-pvl | session-retry | session-up-mib }

Parameters

Parameter Description Value
trap-name Enables the trap of MPLS LDP events of a specified type. -
session-down-mib Enables the trap of the event that an LDP session goes Down in the MIB. -
session-pvl Enables the trap of the PathVectorLimitMismatch event of an LDP session. The maximum path vector value in the received message is different from the one in the local setting. -
session-retry Enables the trap of the event that an LDP session is reestablished. -
session-up-mib Enables the trap of the event that an LDP session goes Up in the MIB. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Run the snmp-agent trap enable feature-name ldp command to enable the LDP session trap. Currently, all traps of the MPLS LDP module are non-excessive trap. The frequent LDP session status changes do not trigger a large number of traps.

Example

# Enable the trap of the event that an LDP session is reestablished.

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