89• privacy: Specifies the security model to be authentication with privacy. Privacy is to encrypt the datapart of a packet to prevent it from being intercepted. When creating an SNMPv3 user, configure theauthentication password and privacy password.DescriptionUse the snmp-agent target-host command to configure the related settings for a trap target host.Use the snmp-agent target-host command to configure a target host for receiving traps and notificationssent by the device.Use the undo snmp-agent target-host command to remove settings for an SNMP trap and notificationtarget host.You can specify multiple trap and notification target hosts called “trap hosts” in this document. You canspecify at most 20 trap target hosts.• If udp-port port-number is not specified, UDP port number 162 is used by default. Port 162 is theSNMP-specified port used for receiving traps on the NMS. Generally (such as using iMC or MIBBrowser as the NMS), you can use the default port number. To change this parameter to anothervalue, you need to make sure that the configuration is the same with that on the NMS.• If the keywords v1, v2 and v3 are not specified, v1 is used.• If the key words authentication and privacy are not specified, the authentication mode is noauthentication, no privacy.Related commands: enable snmp trap updown, snmp-agent trap enable, snmp-agent trap life, andsnmp-agent trap source.Examples# Enable the device to send SNMPv1 traps to 10.1.1.1, using the community name of public. system-view[Sysname] snmp-agent trap enable standard[Sysname] snmp-agent target-host trap address udp-domain 10.1.1.1 params securitynamepublic# Enable the device to send SNMPv3 traps to the device with the IP address of 10.1.1.1, using the username of 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 paramssecurityname v3test v3snmp-agent trap enableSyntaxsnmp-agent trap enable [ arp rate-limit | bgp | configuration | default-route | flash | mpls | 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 [ arp rate-limit | bgp | configuration | default-route | flash | mpls | ospf[ process-id ] [ ifauthfail | ifcfgerror | ifrxbadpkt | ifstatechange | iftxretransmit |