< 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 trap-name ]

undo snmp-agent trap enable feature-name ldp [ trap-name trap-name ]

Parameters

Parameter Description Value
trap-name trap-name Enables or disables a trap of the specified name. The value can be:
  • session-down-mib: The trap of the event that an LDP session goes Down in the MIB.
  • session-retry: The trap of the event that an LDP session is reestablished.
  • session-up-mib: The trap of the event that an LDP session goes Up in the MIB.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

All trap messages of the MPLS LDP module are non-excessive trap messages.

If you run this command without specifying the parameter trap-name, all traps of the MPLS LDP module will be enabled or disabled.

Example

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

<sysname> system-view
[sysname] 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 >