< Home

trigger trap

Function

Using the trigger trap command, you can configure an interface to send traps to the NMS.

Format

trigger trap { linkup | linkdown }

Parameters

Parameter Description Value
linkup Sends the LinkUp trap to the NMS. -
linkdown Sends the LinkDown trap to the NMS. -

Views

Loopback interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The traps configured by trigger trap are used to check whether the network between the NMS and device functions properly. If the NMS receives a trap sent from the interface, the network between the NMS and device functions properly; otherwise, a fault may occur on the network.

Prerequisites

Run the snmp-agent trap enable feature-name command to enable the LinkUp and LinkDown traps.

Precautions

The trigger trap command is used on loopback interfaces to check the network between the NMS and device. The interface status does not change according to the meaning of the trap. For example, if the trigger trap linkdown command is used, the loopback interface sends a LinkDown trap to the NMS but does not change its status to Down. If you have used the trigger trap linkdown command, you must run the trigger trap linkup command to clear the LinkDown trap on the NMS.

Example

# Configure a loopback interface to send the LinkUp trap to the NMS.

<HUAWEI> system-view
[HUAWEI] interface loopback 1
[HUAWEI-LoopBack1] trigger trap linkup
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic