< Home

snmp-agent trap enable feature-name l2vpn

Function

The snmp-agent trap enable feature-name l2vpn command enables the trap function for the L2VPN module.

The undo snmp-agent trap enable feature-name l2vpn command disables the trap function for the L2VPN module.

By default, the trap function is disabled for the L2VPN module.

Format

snmp-agent trap enable feature-name l2vpn [ trap-name { hwcccvcdown | hwcccvcup | hwkompellaswitchptow | hwkompellaswitchwtop | hwkompellavcdown | hwkompellavcup | hwpwvcbackup | hwpwvcdeleted | hwpwvcdown | hwpwvcstatuschange | hwpwvcswitchptow | hwpwvcswitchwtop | hwpwvcup | hwsvcdeleted | hwsvcdown | hwsvcup | hwvplsvcbackup | hwvplsvcdeleted | hwvplsvcdown | hwvplsvcnumbermaxclear | hwvplsvcnumbermaxexceed | hwvplsvcnumberthresholdclear | hwvplsvcnumberthresholdexceed | hwvplsvcstatuschange | hwvplsvcup | hwvplsvsideleted | hwvplsvsidown | hwvplsvsiup | hwvpwspwredundancydegraded | hwvpwspwredundancydegradedclear } ]

undo snmp-agent trap enable feature-name l2vpn [ trap-name { hwcccvcdown | hwcccvcup | hwkompellaswitchptow | hwkompellaswitchwtop | hwkompellavcdown | hwkompellavcup | hwpwvcbackup | hwpwvcdeleted | hwpwvcdown | hwpwvcstatuschange | hwpwvcswitchptow | hwpwvcswitchwtop | hwpwvcup | hwsvcdeleted | hwsvcdown | hwsvcup | hwvplsvcbackup | hwvplsvcdeleted | hwvplsvcdown | hwvplsvcnumbermaxclear | hwvplsvcnumbermaxexceed | hwvplsvcnumberthresholdclear | hwvplsvcnumberthresholdexceed | hwvplsvcstatuschange | hwvplsvcup | hwvplsvsideleted | hwvplsvsidown | hwvplsvsiup | hwvpwspwredundancydegraded | hwvpwspwredundancydegradedclear } ]

Parameters

Parameter Description Value
trap-name

Indicates the traps of L2VPN events of specified types.

-
hwcccvcdown

Enables or disables the trap indicating that the status of a CCC VC changes to Down.

-
hwcccvcup

Enables or disables the trap indicating that the status of a CCC VC changes to Up.

-
hwkompellaswitchptow

Enables or disables the trap indicating that a Kompella PW changes from the secondary state to the primary state.

-
hwkompellaswitchwtop

Enables or disables the trap indicating that a Kompella PW changes from the primary state to the secondary state.

-
hwkompellavcdown

Enables or disables the trap indicating that the status of a Kompella VC changes to Down.

-
hwkompellavcup

Enables or disables the trap indicating that the status of a Kompella VC changes to Up.

-
hwpwvcbackup

Enables or disables the trap indicating that the status of a PWE3 VC changes to Backup.

-
hwpwvcdeleted

Enables or disables the trap indicating that a PWE3 VC is deleted.

-
hwpwvcdown

Enables or disables the trap indicating that the status of a PWE3 VC changes to Down.

-
hwpwvcstatuschange

Enables or disables the trap indicating that the status of a PWE3 VC changes.

-
hwpwvcswitchptow

Enables or disables the trap indicating that a PWE3 PW changes from the secondary state to the primary state.

-
hwpwvcswitchwtop

Enables or disables the trap indicating that a PWE3 PW changes from the primary state to the secondary state.

-
hwpwvcup

Enables or disables the trap indicating that the status of a PWE3 VC changes to Up.

-
hwsvcdeleted

Enables or disables the trap indicating that an SVC is deleted.

-
hwsvcdown

Enables or disables the trap indicating that the status of an SVC changes to Down.

-
hwsvcup

Enables or disables the trap indicating that the status of an SVC changes to Up.

-
hwvplsvcbackup

Enables or disables the trap indicating that the status of a VPLS VC changes to Backup.

-
hwvplsvcdeleted

Enables or disables the trap indicating that a VPLS VC is deleted.

-
hwvplsvcdown

Enables or disables the trap indicating that the status of a VPLS VC changes to Down.

-
hwvplsvcup

Enables or disables the trap indicating that the status of a VPLS VC changes to Up.

-
hwvplsvsideleted

Enables or disables the trap indicating that a VPLS VSI is deleted.

-
hwvplsvsidown

Enables or disables the trap indicating that the status of a VPLS VSI changes to Down.

-
hwvplsvsiup

Enables or disables the trap indicating that the status of a VPLS VSI changes to Up.

-
hwvplsvcstatuschange

Enables or disables the trap indicating that the status of a VPLS VC changes.

-
hwvplsvcnumbermaxclear

Enables the device to clear traps when the number of VPLS VCs falls below 95% of the upper threshold.

-
hwvplsvcnumbermaxexceed

Enables the device to send traps when the number of VPLS VCs reaches the upper threshold.

-
hwvplsvcnumberthresholdclear

Enables the device to send traps when the number of VPLS VCs falls below the lower threshold.

-
hwvplsvcnumberthresholdexceed

Enables the device to send traps when the number of VPLS VCs reaches the upper threshold.

-
hwvpwspwredundancydegraded

Enables or disables the trap indicating that the protection provided by VLL FRR degrades.

-
hwvpwspwredundancydegradedclear

Enables or disables the trap indicating that the protection provided by VLL FRR recovers.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

The L2VPN module is not configured with the function of excessive traps. To enable the traps of one or more events, specify trap-name.

The NMS can receive alarms only after you run the snmp-agent target-host inform or snmp-agent target-host trap command to configure a target host to receive SNMP trap messages.

Example

# Enable the system to generate an alarm when a VC in CCC mode goes Down.
<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name l2vpn trap-name hwcccvcdown
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >