Enabling snmp traps, Configuring the snmp agent to send traps to a host – H3C Technologies H3C WX5500E Series Access Controllers User Manual
Page 69
![background image](https://www.manualsdir.com/files/812984/content/doc069.png)
61
SNMP traps generated by a module are sent to the information center. You can configure the information
center to enable or disable outputting the traps from a module by severity and set output destinations. For
more information about the information center, see "Configuring the information center."
Enabling SNMP traps
Enable SNMP traps only if necessary. SNMP traps are memory-intensive and may affect device
performance.
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.
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 ] | arp rate-limit | configuration | default-route |
flash | standard [ authentication | coldstart | linkdown |
linkup | warmstart ] * | system [ authfailure |
newmaster ] ]
By default, all traps are
enabled.
3.
Enter Layer 2
Ethernet interface
view or VLAN
interface view.
interface interface-type interface-number
N/A
4.
Enable link state
traps.
enable snmp trap updown
By default, the link
state traps are
enabled.
Configuring the SNMP agent to send traps to a host
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 successfully send traps, you must also perform the following tasks:
•
Complete the basic SNMP settings and verify 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.
•
Make sure the device and the NMS can reach each other.
To configure the SNMP agent to send traps to a host:
Step Command
Remarks
1.
Enter system view.
system-view
N/A