snmp-agent trap enable feature-name (System view)

Function

The snmp-agent trap enable feature-name ospf command enables the trap function for the OSPF module.

By default, the trap function of the OSPF module is disabled.

Format

undo snmp-agent trap enable feature-name feature-name-val trap-name { ospftxretransmit | ospfvirtifauthfailure | ospfvirtifconfigerror | ospfvirtifrxbadpacket | ospfvirtifstatechange } *

Parameters

Parameter Description Value
feature-name-val

Indicates a feature name.

The value is a string of 1 to 7 case-sensitive characters, spaces not supported.

trap-name

Specifies an alarm node name.

-

ospftxretransmit

Indicates the ospftxretransmit alarm node.

-

ospfvirtifauthfailure

Indicates the ospfvirtifauthfailure alarm node.

-

ospfvirtifconfigerror

Indicates the ospfvirtifconfigerror alarm node.

-

ospfvirtifrxbadpacket

Indicates the ospfvirtifrxbadpacket alarm node.

-

ospfvirtifstatechange

Indicates the ospfvirtifstatechange alarm node.

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
ospf write

Usage Guidelines

Usage Scenario

You can enable the trap function of one or more modules by specifying module names.

Example

# Enable the router to send OSPF-specific ospftxretransmit alarms to an NMS.
<HUAWEI> system-view
[~HUAWEI] snmp-agent trap enable feature-name ospf trap-name ospftxretransmit
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >