Enabling snmp logging, Configuring snmp traps, Enabling snmp traps – H3C Technologies H3C WX6000 Series Access Controllers User Manual

Page 98

Advertising
background image

7-6

Enabling SNMP Logging

Follow these steps to enable SNMP logging:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable SNMP logging

snmp-agent log { all |
get-operation | set-operation }

Required

Disabled by default.

Configure SNMP log
output rules

info-center source
{ module-name | default } channel
{ channel-number |
channel
-name } [ debug { level
severity | state state } * | log { level
severity | state state } * | trap
{ level severity | state state } * ] *

Optional

By default, SNMP logs are output to
loghost and logfile only. To output SNMP
logs to other destinations such as console
or monitor terminal, you need to set the
output destinations with this command.

z

Disable SNMP logging in normal cases to prevent a large amount of SNMP logs from decreasing

device performance.

z

The total output size for the node and value fields in each log entry is 1024 bytes. If this limit is

exceeded, the information center truncates the data in the fields.

Configuring SNMP Traps

Enabling SNMP Traps

The SNMP agent sends traps to the NMS to inform the NMS of critical and important events (such as

reboot of a managed device). Two types of traps are available: generic traps and self-defined traps.

Generic traps supported on the device include: authentication, coldstart, linkdown, linkup and

warmstart. The others are self-defined traps, which are generated by different modules. Because traps

occupy large device memory affect device performance, enable SNMP traps only for specific modules

as necessary.

With the trap function enabled on a module, the traps generated by the module will be sent to the

information center. The information center has seven information output destinations. By default, the

information center outputs traps of all modules to the console, monitor terminal (monitor), loghost, and

logfile; traps of all modules and with level equal to or higher than warnings are allowed to be output to

the trapbuffer and SNMP module (snmpagent); and traps cannot be sent to the logbuffer. 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 Information Center in the Network

Management and Monitoring Configuration Guide.

Advertising