![Huawei NetEngine5000E Configuration Manual Download Page 78](http://html.mh-extra.com/html/huawei/netengine5000e/netengine5000e_configuration-manual_169429078.webp)
The system view is displayed.
Step 2
Run:
snmp-agent trap enable
Alarm sending is enabled.
Step 3
Run:
snmp-agent trap enable feature-name
feature-name
trap-name
trap-name
A trap function of a feature module is enabled. This means that an alarm of a specified feature
can be sent to the NM station.
NOTE
If the
snmp-agent trap enable
command is run to enable the trap functions of all modules, or the
snmp-
agent trap enable feature-name
command is run to enable three or more trap functions of a module, note
the following points:
l
To disable the trap functions of all modules, you need to run the
snmp-agent trap disable
command.
l
To restore the trap functions of all modules to the default status, you need to run the
undo snmp-agent
trap enable
or
undo snmp-agent trap disable
command.
l
To disable one trap function of a module, you need to run the
undo snmp-agent trap enable feature-
name
command.
Step 4
Run:
snmp-agent trap source
interface-type
interface-number
The source interface for trap messages is specified.
After the source interface is specified, its IP address becomes the source IP address of trap
messages. Configuring the IP address of the local loopback interface as the source interface is
recommended, which can ensure device security.
The source interface specified on the router for trap messages must be consistent with that
specified on the NM station; otherwise, the NM station does not accept the trap messages sent
from the router.
Step 5
Run:
commit
The configuration is committed.
----End
3.3.4 (Optional) Configuring the Informs Function
The router enabled with the SNMP agent function can generate two notifications, namely, traps
and informs. Traps are messages alerting the NMS to a condition on the network. Informs are
traps that include a request for confirmation of receipt from the NMS (Informs are resent until
a reply is received). Informs are more reliable than traps.
Procedure
Step 1
Run:
system-view
The system view is displayed.
HUAWEI NetEngine5000E Core Router
Configuration Guide - System Management
3 SNMP Configuration
Issue 01 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
70