< Home

snmp-agent trap enable feature-name ip

Function

The snmp-agent trap enable feature-name ip command enables the trap function for the IP module.

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

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

Format

snmp-agent trap enable feature-name ip [ trap-name hwifipaddresschange ]

undo snmp-agent trap enable feature-name ip [ trap-name hwifipaddresschange ]

Parameters

Parameter Description Value

trap-name

Enables the traps of IP events of specified types.

-

hwifipaddresschange

Indicates that IP address of the interface changes.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When the trap function is enabled, the device generates traps during running and sends traps to the NMS through SNMP. When the trap function is not enabled, the device does not generate traps and the SNMP module does not send traps to the NMS.

You can specify trap-name to enable the trap function for one or more events. If you do not specify trap-name, all traps of the IP module will be enabled.

Example

# Enables IP address of the interface changes trap of IP module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable feature-name ip trap-name hwifipaddresschange
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >