HP 6125G HP 6125G & 6125G/XG Blade Switches Network Management and Mon - Page 82
snmp-agent trap enable, Examples, Syntax, Default level, Parameters
View all HP 6125G manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 82 highlights
Make sure the SNMP agent uses the same UDP port number as the target host for traps. If udp-port port-number is not specified, UDP port 162 is used by default. Port 162 is the SNMP-specified port used for receiving traps, and is used by most NMSs, including iMC and MIB Browser. Make sure the SNMP agent uses the same SNMP version as the trap target host so the host can receive traps. If none of the keywords v1, v2 and v3 is specified, SNMPv1 is used. If neither authentication nor privacy is specified, the authentication mode is no authentication, no privacy. Related commands: enable snmp trap updown, snmp-agent trap enable, snmp-agent trap life, and snmp-agent trap source. Examples # Configure the SNMP agent to send SNMPv1 traps to 10.1.1.1 in the community public. system-view [Sysname] snmp-agent trap enable standard [Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 params securityname public # Configure the SNMP agent to send SNMPv3 traps to 10.1.1.1 and set the username to v3test. system-view [Sysname] snmp-agent trap enable standard [Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 vpn-instance vpn1 params securityname v3test v3 snmp-agent trap enable Syntax 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 ] ] View undo 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 ] ] System view Default level 3: Manage level Parameters bgp: Enables SNMP traps for the BGP module. configuration: Enables configuration traps. 76