HP 6125G HP 6125G & 6125G/XG Blade Switches Network Management and Mon - Page 66
Configuring the SNMP agent to send traps to a host, configuration of the module. For more information
View all HP 6125G manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 66 highlights
To generate linkUp or linkDown traps when the link state of an interface changes, you must enable the linkUp or linkDown trap function globally by using the snmp-agent trap enable [ standard [ linkdown | linkup ] * ] command and on the interface by using the enable snmp trap updown command. After you enable a trap function for a module, whether the module generates traps also depends on the configuration of the module. For more information, see the configuration guide for each module. To enable traps: Step 1. Enter system view. 2. Enable traps globally. 3. Enter Layer 2 Ethernet interface view, or VLAN interface view. 4. Enable link state traps. Command Remarks system-view N/A 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, all traps are enabled. interface interface-type interface-number N/A 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: Step 1. Enter system view. Command system-view Remarks N/A 59