F3215-HP Load Balancing Module System Maintenance Configuration Guide-6PW101

59
Ste
p
Command
Remarks
2. Enable traps
globally.
snmp-agent trap enable [ bgp | configuration |
default-route | flash | ospf [ process-id ] [ ifauthfail |
ifcfgerror | ifrxbadpkt | ifstatechange | iftxretransmit |
lsdbapproachoverflow | lsdboverflow | maxagelsa |
nbrstatechange | originatelsa | vifcfgerror | virifauthfail
| virifrxbadpkt | virifstatechange | viriftxretransmit |
virnbrstatechange ] * | pim [ candidatebsrwinelection |
electedbsrlostelection | interfaceelection |
invalidjoinprune | invalidregister | neighborloss |
rpmappingchange ] * | standard [ authentication |
coldstart | linkdown | linkup | warmstart ] * | system |
vrrp [ authfailure | newmaster ] ]
By default, the trap
function of all modules
is enabled.
3. Enter interface view.
interface interface-type interface-number N/A
4. Enable link state
traps.
enable snmp trap updown
By default, the link
state traps are
enabled.
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
[ udp-port port-number ]
[ vpn-instance vpn-instance-name ]
params securityname
security-string [ v1 | v2c | v3
[ authentication | privacy ] ]
To send traps to a host, you must
perform this step to specify its IP
address.
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.