a target host, enabling the device to send trap messages to different NMSs. The number of target hosts
that can be configured varies with the device model.
If udp-port port-number is not specified, port number 162 is used.
If the key words v1, v2 and v3 are not specified, v1 is used.
If the key words authentication and privacy are not specified, the authentication mode is no
authentication, no privacy.
Related commands: enable snmp trap updown, snmp-agent trap enable, snmp-agent trap source,
snmp-agent trap life.
Examples
# Enable the device to send SNMP traps to 10.1.1.1, using the community name of 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
# Enable the device to send SNMP traps to the device which is in VPN 1 and has an IP address of
10.1.1.1, using the community name of public.
<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 public
snmp-agent trap enable
Syntax
snmp-agent trap enable [ bgp | configuration | flash | mpls | ospf [ process-id ] [ ifauthfail |
ifcfgerror | ifrxbadpkt | ifstatechange | iftxretransmit | lsdbapproachoverflow | lsdboverflow |
maxagelsa | nbrstatechange | originatelsa | vifcfgerror | virifauthfail | virifrxbadpkt |
virifstatechange | viriftxretransmit | virnbrstatechange ] * | standard [ authentication | coldstart |
linkdown | linkup | warmstart ]* | system | vrrp [ authfailure | newmaster ] ]
undo snmp-agent trap enable [ bgp | configuration | flash | mpls | ospf [ process-id ] [ ifauthfail |
ifcfgerror | ifrxbadpkt | ifstatechange | iftxretransmit | lsdbapproachoverflow | lsdboverflow |
maxagelsa | nbrstatechange | originatelsa | vifcfgerror | virifauthfail | virifrxbadpkt |
virifstatechange | viriftxretransmit | virnbrstatechange ] * | standard [ authentication | coldstart |
linkdown | linkup | warmstart ]* | system | vrrp [ authfailure | newmaster ] ]
View
System view
Default Level
3: Manage level
Parameters
bgp: Enables the sending of traps of the BGP module.
configuration: Enables the sending of configuration traps.
flash: Enables the sending of FLASH-related traps.
1-22
Need help?
Do you have a question about the S7906E and is the answer not in the manual?
Questions and answers