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

52
To do… Use the command…
Remarks
Enable the trap function
globally
snmp-agent trap enable | bgp | configuration | flash |
ospf [ process-id ] [ ifauthfail | ifcfgerror | ifrxbadpkt |
ifstatechange | iftxretransmit | lsdbapproachoverflow |
lsdboverflow | maxagelsa | nbrstatechange |
originatelsa | vifcfgerror | virifauthfail | virifrxbadpkt |
virifstatechange | viriftxretransmit | virnbrstatechange ] *
| standard [ authentication | coldstart | linkdown | linkup
| warmstart ] * | system | vrrp [ authfailure | newmaster ]
Optional
By default, the trap
function is enabled.
Enter interface view interface interface-type interface-number Required
Enable the trap function of
interface state changes
enable snmp trap updown
Optional
Enabled by default.
NOTE:
To enable an interface to send linkUp/linkDown traps when its state changes, enable the trap function of
interface state changes on an interface and
g
lobally. To enable the trap function on an interface, use the
enable snmp trap updown command. To enable this function globally, use the snmp-agent trap enable
[ standard [ linkdown | linkup ] * ] command.
Configuring trap parameters
Configuration prerequisites
To send traps to the NMS, make the following preparations:
Complete basic SNMP configurations. Specify the SNMP version and community name if SNMPv1
or SNMPv2c is adopted. Set the username and MIB view if SNMPv3 is adopted. Configuration of
these parameters must be the same as on the NMS.
Make sure that the device and the NMS can reach each other.
Configuration procedure
After receiving the traps, the SNMP module processes the traps in one of the following ways:
Saves the traps in the trap queue. If a network problem occurs, the trap queue caches the traps until
the network recovers. Then, the system sends the traps in the trap queue in turn. You can set the size
of the queue and the holding time of the traps in the queue,
Sends the traps to the specified destination host (usually the NMS).
Follow these steps to configure trap parameters:
To do… Use the command…
Remarks
Enter system view
system-view
Configure target host attribute
for traps
snmp-agent target-host trap address
udp-domain ip-address | [ udp-port
port-number ] params securityname
security-string [ v1 | v2c | v3
[ authentication | privacy ] ]
Optional
To send the traps to the NMS, this
command is required, and you
must specify ip-address as the IP
address of the NMS.