Snmp logging configuration example, Network requirements, Configuration procedure – H3C Technologies H3C WX6000 Series Access Controllers User Manual
Page 102

7-10
z
After the above configuration, an SNMP connection is established between the NMS and the agent.
The NMS can get and configure the values of some parameters on the agent through MIB nodes.
z
Execute the shutdown or undo shutdown command to an idle interface on the agent, and the
NMS receives the corresponding trap.
SNMP Logging Configuration Example
Network requirements
z
As shown in
, the NMS and the agent are connected through an Ethernet
z
The IP address of the NMS is 1.1.1.2/24
z
The IP address of the agent is 1.1.1.1/24
z
Configure SNMP logging on the agent to record the operations performed by the NMS to the agent
Figure 7-4 Network diagram for SNMP logging
Configuration procedure
For the configurations for the NMS and 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).
<AC> terminal monitor
<AC> terminal logging
# Enable the information center to output the system information with the severity level equal to or
higher than informational to the console port.
<AC> system-view
[AC] 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.
[AC] snmp-agent log get-operation
[AC] snmp-agent log set-operation
z
The following log information is displayed on the terminal when the NMS performs the GET
operation to the 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=<>