R2511-HP MSR Router Series Network Management and Monitoring Configuration Guide(V5)
7
Configuring the SNMP agent to send traps to a host
The SNMP module buffers the traps received from a module in a trap queue. You can set the size of the
queue, the duration that the queue holds a trap, and trap target (destination) hosts, typically the NMS.
To successfully send traps, you must also perform the following tasks:
• Complete the basic SNMP settings and verify that they are the same as on the NMS. If SNMPv1 or
SNMPv2c is used, you must configure a community name. If SNMPv3 is used, you must configure
an SNMPv3 user and MIB view.
• Make sure the device and the NMS can reach each other.
To configure the SNMP agent to send traps to a host:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Configure a target host.
snmp-agent target-host trap
address udp-domain { ip-address |
ipv6 ipv6-address } [ udp-port
port-number ] [ vpn-instance
vpn-instance-name ] params
securityname security-string [ v1 |
v2c | v3 [ authentication |
privacy ] ]
If the trap destination is a host. The
ip-address argument must be the IP
address of the host.
The vpn-instance keyword is
applicable in an IPv4 network.
3. Configure the source address
for traps.
snmp-agent trap source
interface-type { interface-number |
interface-number.subnumber }
Optional.
By default, SNMP chooses the IP
address of an interface to be the
source IP address of traps.
4. Extend the standard
linkUp/linkDown traps.
snmp-agent trap if-mib link
extended
Optional.
By default, standard
linkUp/linkDown traps are used.
Extended linkUp/linkDown traps
add interface description and
interface type to standard
linkUp/linkDown traps. If the NMS
does not support extended SNMP
messages, use standard
linkUp/linkDown traps.
5. Configure the trap queue size.
snmp-agent trap queue-size size
Optional.
The default trap queue size is 100.
When the trap queue is full, the
oldest traps are automatically
deleted for new traps.
6. Configure the trap holding
time.
snmp-agent trap life seconds
Optional.
The default setting is 120 seconds.
A trap is deleted when its holding
time expires.










