![Huawei NetEngine5000E Configuration Manual Download Page 90](http://html.mh-extra.com/html/huawei/netengine5000e/netengine5000e_configuration-manual_169429090.webp)
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.4.5 (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.
Step 2
Run:
snmp-agent target-host
[
host-name
host-name
]
inform address
udp-domain
ip-
address
[
udp-port
port-number
] [
vpn-instance
vpn-instance-name
]
params
securityname
security-name
[
v2c
|
v3
[
authentication
|
privacy
] ]
The target host that receives informs is configured.
NOTE
The IP address of the target host in this command must be an IPv4 address.
Step 3
(Optional) Run:
snmp-agent inform
{
timeout
seconds
|
resend-times
times
|
pending
number
} *
The timeout period for waiting for inform Ack messages, number of times to resend informs,
and the maximum pieces of pending informs (Informs need to be acknowledged) are set.
By default, the timeout period for inform Ack messages is 15 seconds, the number of times to
resend informs is 3, and the maximum count of pending informs is 39.
NOTE
If the network is unstable, you need to increase the timeout period. At the same time, you need to increase
the number of times to resend informs and the maximum count of pending informs.
Step 4
Run:
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.
82