beautypg.com

Enabling snmp traps, Configuring trap parameters – H3C Technologies H3C SecBlade NetStream Cards User Manual

Page 300

background image

285

Two types of traps are available: generic traps and vendor-specific traps. Generic traps supported on the

device include: authentication, coldstart, linkdown, linkup and warmstart. All other traps are user
defined.
SNMP traps generated by a module are sent to the information center. You can set parameters for the

information center based on the levels of the traps generated by each module, and thus decide the output

rules of traps (that is, whether traps are allowed to be output and the output destinations). For more
information about the information center, see the chapter “Information center configuration.”

Enabling SNMP traps

Enable SNMP traps only when necessary. SNMP traps are memory demanding and may affect device
performance.
Follow these steps to enable the trap function:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable the trap function
globally

snmp-agent trap enable [configuration |
flash | standard [ authentication |

coldstart | linkdown | linkup |
warmstart ] * | system ]

Optional
By default, only the trap function of
the voice module is disabled; and

the trap function of other modules is
enabled.

Enter interface view

interface interface-type interface-number Required

Enable the trap function of
interface state changes

enable snmp trap updown

Optional
Enabled by default.

NOTE:

To enable an interface to send linkUp/linkDown traps when its state changes, enable the trap function
of interface state changes on an interface and globally. To enable the trap function on an interface, use
the enable snmp trap updown command. To enable this function globally, use the snmp-agent trap

enable [ standard [ linkdown | linkup ] * ] command.

To make each module generate corresponding traps, enable the trap function with the snmp-agent trap
enable command. The generation of traps by a module may also depend on the configuration of the
module. For more information, see related descriptions of the modules.

Configuring trap parameters

To send traps to the NMS, make the following preparations:

Complete basic SNMP configurations. Specify the SNMP version and community name if SNMPv1
or SNMPv2c is adopted. Set the username and MIB view if SNMPv3 is adopted. Configuration of

these parameters must be the same as on the NMS.

Make sure that the device and the NMS can reach each other.

After receiving the traps, the SNMP module processes the traps in one of the following ways:

Saves the traps in the trap queue. If a network problem occurs, the trap queue caches the traps until
the network recovers. Then, the system sends the traps in the trap queue in turn. You can set the size

of the queue and the holding time of the traps in the queue,

Sends the traps to the specified destination host (usually the NMS).