F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices System Management and Maintenance Command Reference-6PW100
180
• privacy: Specifies the security model to be authentication with privacy. You must specify the
authentication key and privacy key when you create the SNMPv3 user.
Usage guidelines
You can specify up to 20 trap target hosts.
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 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.
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
Related commands
• enable snmp trap updown
• snmp-agent trap enable
• snmp-agent trap life
• snmp-agent trap source
snmp-agent trap enable
Use snmp-agent trap enable to enable traps globally.
Use undo snmp-agent trap enable to disable traps globally.
Syntax
snmp-agent trap enable [ bfd | 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 [ bfd | bgp | configu
ration | default-route | flash | ospf [ process-id ]
[ ifauthfail | ifcfgerror | ifrxbadpkt | ifstatechange | iftxretransmit | lsdbapproachoverflow |
lsdboverflow | maxagelsa | nbrstatechange | originatelsa | vifcfgerror | virifauthfail | virifrxbadpkt
| virifstatechange | viriftxretransmit | virnbrstatechange ] * | pim [ candidatebsrwinelection |