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.
snmp-agent trap enable feature-name ip [ trap-name hwifipaddresschange ]
undo snmp-agent trap enable feature-name ip [ trap-name hwifipaddresschange ]
Parameter | Description | Value |
---|---|---|
trap-name |
Enables the traps of IP events of specified types. |
- |
hwifipaddresschange |
Indicates that IP address of the interface changes. |
- |
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.