< Home

snmp-agent trap enable (MPLS) (upgrade-compatible command)

Function

The snmp-agent trap enable command enables SNMP traps with a related parameter.

The undo snmp-agent trap enable command disables SNMP traps with a related parameter.

Format

snmp-agent trap enable { static-lsp | ldp | lsp [ mplsxcup | mplsxcdown ] | tunnel-ps | te { tunnel-reop | te-frr [ private ] | hot-standby | ordinary | bandwidth-change } | [ te ] tunnel }

undo snmp-agent trap enable { static-lsp | ldp | lsp [ mplsxcup | mplsxcdown ] | tunnel-ps | te { tunnel-reop | te-frr [ private ] | hot-standby | ordinary | bandwidth-change } | [ te ] tunnel }

Parameters

Parameter Description Value
static-lsp Enables the trap of static LSPs. -
ldp Enables LDP traps. -
lsp mplsxcup Enables the mplsXCUp trap. -
lsp mplsxcdown Enables the mplsXCDown trap. -
tunnel-ps Enables the TE protection switching trap. -
te tunnel-reop Enables trap of the TE route re-optimization. -
te te-frr Enables the public trap of TE FRR. -
te-frr private Enables the private trap of TE FRR. -
te hot-standby Enables the trap of the hot-standby CR-LSP. -
te ordinary Enables the trap of the ordinary CR-LSP. -
bandwidth-change Enables the system to send related private traps when the tunnel bandwidth changes. -
tunnel Enables the trap of the tunnel. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

By default, the trap function is disabled in the process of the MPLS LSP establishment.

To check the status of an LSP, run the snmp-agent trap enable lsp { mplsxcup | mplsxcdown } command when mplsXCUp or mplsXCDown is enabled.

After the undo snmp-agent trap enable command is run, information about mplsXCUp or mplsXCDown is not displayed, and the status of the trap is unchanged. When you run the snmp-agent trap enable command again, information about the restored trap is displayed.

Example

# Enable the private trap of TE FRR.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable te te-frr private

# Enable the mplsXCUp trap.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable lsp mplsxcup
 Warning: Enabling the alarm function will lead to the generation of excessive a
larms. Continue? [Y/N]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >