< Home

snmp-agent trap enable feature-name ldp (upgrade-compatible command)

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 | session-up }

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

Parameters

Parameter Description Value
trap-name Enables the trap of MPLS LDP events of a specified type. -
session-down Enables the trap of the event that an LDP session goes Down in the MIB. -
session-up 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-up
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >