SNMP Logging Configuration Example 939
With SNMPv2c, the user needs to specify the read only community, the read and 
write community, the timeout time, and number of retries. The user can inquire 
and configure the device through the NMS.
n
The configurations on the agent and the NMS must match.
SNMP Logging 
Configuration 
Example
Network requirements
■ NMS and Agent are connected through an Ethernet
■ The IP address of NMS is 1.1.1.2/24
■ The IP address of the VLAN interface on Agent is 1.1.1.1/24
■ Configure community name, access right and SNMP version on Agent
Network diagram
Figure 275   Network diagram for SNMP logging
 
Configuration procedure
n
The configurations for NMS and Agent are omitted.
# Enable logging display on the terminal (optional, enabled by default).
<Sysname> terminal monitor
<Sysname> terminal logging 
# Enable the information center to output the system information with the severity 
of informational to the Console port.
<Sysname> system-view
[Sysname] info-center source snmp channel console log level informat
ional 
# Enable SNMP logging on Agent to log the GET and SET operations of NMS.
[Sysname] snmp-agent log get-operation
[Sysname] snmp-agent log set-operation 
■ The following log information is displayed on the terminal when NMS performs 
the GET operation to Agent.
%Jan 1 02:49:40:566 2006 Sysname SNMP/6/GET:
seqNO = <10> srcIP = <1.1.1.2> op = <get> node = <sysName(1.3.6.1.2.1.1.5.0)> value=<> 
Terminal
Agent
NMS
Console 
1.1.1.2/24
1.1.1.1/24