R3204P16-HP Load Balancing Module System Maintenance Configuration Guide-6PW101
51
The SNMP module sends these logs to the information center as informational messages. You may output
these messages to certain destinations, for example, the console and the log buffer by configuring the
information center to output informational messages to these destinations. For more information about
the information center, see the chapter “Information center configuration.”
Follow these steps to configure 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 the console or a
monitor terminal, you need to set the output
destinations with this command.
NOTE:
• Disable SNMP lo
gg
in
g
in normal cases to prevent a lar
g
e amount of SNMP lo
g
s from decreasin
g
device
performance.
• The total output size for the node field (MIB node name) and the value field (value of the MIB node) in
each log entry is 1024 bytes. If this limit is exceeded, the information center truncates the data in the
fields.
Configuring SNMP traps
Introduction to SNMP traps
The SNMP agent sends traps to the NMS to inform the NMS of critical and important events (such as the
reboot of the managed device).
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 traps, which are generated by different modules.
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 —