1-12
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
Figure 1-5
, 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 1-5
Network diagram for SNMP logging
Configuration procedure
For the configurations for the NMS and agent, refer to
SNMPv1/SNMPv2c Configuration Example
and
SNMPv3 Configuration Example
.
# Enable logging display on the terminal. (This function is enabled by default, so that you can omit this
configuration).
<Sysname> terminal monitor
<Sysname> 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.
<Sysname> system-view
[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
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:
Summary of Contents for S7902E
Page 82: ...1 4 DeviceA interface tunnel 1 DeviceA Tunnel1 service loopback group 1 ...
Page 200: ...1 11 DeviceB display vlan dynamic No dynamic vlans exist ...
Page 598: ...ii ...
Page 1757: ...4 9 ...
Page 1770: ...6 4 ...
Page 2017: ...2 11 Figure 2 3 SFTP client interface ...
Page 2238: ...1 16 DeviceA cfd linktrace service instance 1 mep 1001 target mep 4002 ...