Enabling snmp traps, Configuring the snmp agent to send traps to a host, Configuration prerequisites – H3C Technologies H3C SR8800 User Manual
Page 111: Configuration procedure

99
Enabling SNMP traps
To enable traps:
Step Command
Remarks
1.
Enter system view.
system-view N/A
2.
Enable traps globally.
snmp-agent trap enable [ acfp [ client | policy | rule
| server ] | bfd | bgp | configuration | flash | fr |
mpls | ospf [ process-id ] [ ifauthfail | ifcfgerror |
ifrxbadpkt | ifstatechange | iftxretransmit |
lsdbapproachoverflow | lsdboverflow | maxagelsa
| nbrstatechange | originatelsa | vifcfgerror |
virifauthfail | virifrxbadpkt | virifstatechange |
viriftxretransmit | virnbrstatechange ] * | pim
[ neighborloss | invalidregister | invalidjoinprune |
rpmappingchange | interfaceelection |
electedbsrlostelection | candidatebsrwinelection ] *
| standard [ authentication | coldstart | linkdown |
linkup | warmstart ] * | system | vrrp [ authfailure
| newmaster ] ]
Optional.
By default, only the trap
function of the voice
module is disabled, and
the trap function of other
modules is enabled.
3.
Enter interface view.
•
interface interface-type interface-number
•
controller { cpos | e1 | e3 | t1 | t3 } number
Use either approach.
4.
Enable link state
traps.
enable snmp trap updown
Optional.
Enabled by default.
NOTE:
•
To generate linkUp or linkDown traps when the link state of an interface changes, you must enable the
linkUp or linkDown trap function globally by using the snmp-agent trap enable [ standard [ linkdown
| linkup ] * ] command and on the interface by using the enable snmp trap updown command.
•
After you enable a trap function for a module, whether the module generates traps also depends on the
configuration of the module. For more information, see the configuration guide for each module.
Configuring the SNMP agent to send traps to a host
Configuration prerequisites
•
Complete the basic SNMP settings and check that they are the same as on the NMS. If SNMPv1 or
SNMPv2c is used, you must configure a community name. If SNMPv3 is used, you must configure
an SNMPv3 user and MIB view.
•
The device and the NMS can reach each other.
Configuration procedure
The SNMP module buffers the traps received from a module in a trap queue. You can set the size of the
queue, the duration that the queue holds a trap, and trap target (destination) hosts, typically the NMS.
To configure the SNMP agent to send traps to a host:
- H3C SR6600-X H3C SR6600 H3C SecPath F5020 H3C SecPath F5040 H3C VMSG VFW1000 H3C WX3000E Series Wireless Switches H3C WX5500E Series Access Controllers H3C WX3500E Series Access Controllers H3C WX2500E Series Access Controllers H3C WX6000 Series Access Controllers H3C WX5000 Series Access Controllers H3C LSWM1WCM10 Access Controller Module H3C LSUM3WCMD0 Access Controller Module H3C LSUM1WCME0 Access Controller Module H3C LSWM1WCM20 Access Controller Module H3C LSQM1WCMB0 Access Controller Module H3C LSRM1WCM2A1 Access Controller Module H3C LSBM1WCM2A0 Access Controller Module