Configuring snmp logging, Introduction to snmp logging, Enabling snmp logging – H3C Technologies H3C SR8800 User Manual
Page 110: Configuring snmp traps

98
Configuring SNMP logging
Introduction to SNMP logging
The SNMP logging function logs the Get requests, Set requests, and Set responses that the NMS has
performed on the SNMP agent, but does not log the Get responses.
•
For a Get operation, the agent logs the IP address of the NMS, name of the accessed node, and
node OID.
•
For a Set operation, the agent logs the IP address of the NMS, name of the accessed node, node
OID, the assigned value and the error code and error index of the Set response.
The SNMP module sends these logs to the information center as informational messages. You can
configure the information center to output these messages to certain destinations, for example, the
console and the log buffer. For more information about the information center, see the chapter
“Configuring the information center.”
Enabling SNMP logging
Step Command
Remarks
1.
Enter system view.
system-view N/A
2.
Enable SNMP logging.
snmp-agent log { all |
get-operation | set-operation }
Disabled by default.
3.
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, set the output
destinations with this command.
NOTE:
•
Disable SNMP logging in normal cases to prevent a large amount of SNMP logs from decreasing 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
The SNMP agent sends traps to inform the NMS of important events, such as a reboot.
Traps fall into generic traps and vendor-specific traps. Available generic traps include authentication,
coldstart, linkdown, linkup and warmstart. All other traps are vendor-defined.
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 their severity and set output
destinations. For more information about the information center, see the chapter “Configuring the
information center.”
- 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