R2511-HP MSR Router Series Network Management and Monitoring Configuration Guide(V5)
12
Figure 5 Network diagram
Configuration procedure
This example assumes that you have configured all required SNMP settings for the NMS and the agent
(see "SNMPv1/SNMPv2c configuration example" or "SNMPv3 configuration example")
.
# Enable displaying log messages on the configuration terminal. (This function is enabled by default.
Skip this step if you are using the default.)
<Agent> terminal monitor
<Agent> terminal logging
# Enable the information center to output system information with severity level equal to or higher than
informational to the console port.
<Agent> system-view
[Agent] info-center source snmp channel console log level informational
# Enable logging GET and SET operations.
[Agent] snmp-agent log all
# 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:
%Nov 23 16:10:09:482 2011 Agent SNMP/6/SNMP_GET:
-seqNO=27-srcIP=1.1.1.2-op=GET-node=sysUpTime(1.3.6.1.2.1.1.3.0)-value=-node=ifHCOutO
ctets(1.3.6.1.2.1.31.1.1.1.10.1)-value=; The agent received a message.
Use the NMS to set a MIB variable on the agent. The following is a sample log message displayed on
the configuration terminal:
%Nov 23 16:16:42:581 2011 Agent SNMP/6/SNMP_SET:
-seqNO=37-srcIP=1.1.1.2-op=SET-errorIndex=0-errorStatus=noError-node=sysLocation(1.3.
6.1.2.1.1.6.0)-value=beijing; The agent received a message.
Table 1 SNMP log message field description
Field Descri
p
tion
Nov 23 16:10:09:482 2011 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).










