1-17 
Description 
Use the snmp-agent log command to enable network management operation logging. 
Use the undo snmp-agent log command to disable network management operation logging. 
By default, network management operation logging is disabled. 
After SNMP logging is enabled, when NMS performs specified operations on the SNMP agent, the 
SNMP agent records and then saves the information related to the operations into the information 
center of the device. 
 
 
z  When SNMP logging is enabled on a device, SNMP logs are output to the information center of the 
device. With the output destinations of the information center set, the output destinations of SNMP 
logs will be decided. 
z  The severity level of SNMP logs is informational, that is, the logs are taken as general prompt 
information of the device. To view SNMP logs, you need to enable the information center to output 
system information with informational level.  
z  For detailed description on system information and information center, refer to the Information 
Center Configuration part in this manual. 
 
Examples 
# Enable logging for both the get and the set operations performed on the NMS. 
<Sysname> system-view 
System View: return to User View with Ctrl+Z. 
[Sysname] snmp-agent log all 
snmp-agent mib-view 
Syntax 
snmp-agent mib-view { included | excluded } view-name oid-tree [ mask mask-value ] 
undo snmp-agent mib-view view-name 
View 
System view 
Parameters 
included: Specifies that the MIB view includes this MIB subtree. 
excluded: Specifies that the MIB view excludes this MIB subtree. 
view-name: View name. 
oid-tree: OID MIB subtree of a MIB subtree. It can be the ID of a node in OID MIB subtree (such as 
1.4.5.3.1) or an OID (such as “system”).