Snmp-Agent Trap Enable - HP 6125G Command Reference Manual

Network management and monitoring
Hide thumbs Also See for 6125G:
Table of Contents

Advertisement

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.
<Sysname> 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.
<Sysname> 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 ] ]
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 ] ]
View
System view
Default level
3: Manage level
Parameters
bgp: Enables SNMP traps for the BGP module.
configuration: Enables configuration traps.
76

Advertisement

Table of Contents
loading

This manual is also suitable for:

6125 blade switch series

Table of Contents