H3C Technologies H3C SR8800 User Manual
Page 116
104
NOTE:
This example assumes that you have configured all required SNMP settings for the NMS and the agent
(see “
SNMPv1/SNMPv2c configuration example
# Enable logging display on the terminal. (This function is enabled by default, so that you can omit this
configuration).
# Enable the information center to output the system information with the severity level equal to or higher
than informational to the console port.
[Sysname] info-center source snmp channel console log level informational
# Enable SNMP logging on the agent to log the Get and Set operations of the NMS.
[Sysname] snmp-agent log get-operation
[Sysname] snmp-agent log set-operation
# Verify the configuration:
Use the NMS to get a MIB variable from the agent. The following is a sample log message displayed on
the configuration terminal:
%Jan 1 02:49:40:566 2006 Sysname SNMP/6/GET:
seqNO = <10> srcIP = <1.1.1.2> op =
Use the NMS to set a MIB variable on the agent. The following is a sample log message displayed on
the configuration terminal:
%Jan 1 02:59:42:576 2006 Sysname SNMP/6/SET:
seqNO = <11> srcIP = <1.1.1.2> op =
=
Table 2 SNMP log message field description
Field Description
Jan 1 02:49:40:566 2006 Time when the SNMP log was generated.
seqNO
Serial number automatically assigned to the SNMP log, starting from 0.
srcIP
IP address of the NMS.
op
SNMP operation type (GET or SET).
node
MIB node name and OID of the node instance.
erroIndex
Error index, with 0 meaning no error.
errorstatus
Error status, with noError meaning no error.
value
Value set when the SET operation is performed (this field is null for a GET
operation).
If the value is a character string that has characters beyond the ASCII range 0 to
127 or invisible characters, the string is displayed in hexadecimal format, for
example, value = <81-43>[hex].
- 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