179 
authfail: Enables logging SNMP authentication failures. 
get-operation: Enables logging SNMP Get operations. 
set-operation: Enables logging SNMP Set operations. 
Usage guidelines 
Use SNMP logging to record the SNMP operations performed on the SNMP agent or authentication 
failures from the NMS to the agent for auditing NMS behaviors. The SNMP agent sends log data to 
the information center. You can configure the information center to output the data to a destination as 
needed. 
Examples 
# Enable logging SNMP Get operations. 
<Sysname> system-view 
[Sysname] snmp-agent log get-operation 
# Enable logging SNMP Set operations. 
<Sysname> system-view 
[Sysname] snmp-agent log set-operation 
# Enable logging SNMP authentication failures. 
<Sysname> system-view 
[Sysname] snmp-agent log authfail 
snmp-agent mib-view 
Use snmp-agent mib-view to create or update a MIB view. 
Use undo snmp-agent mib-view to delete a MIB view. 
Syntax 
snmp-agent mib-view { excluded | included } view-name oid-tree [ mask mask-value ] 
undo snmp-agent mib-view view-name 
Default 
The system creates the ViewDefault view when the SNMP agent is enabled. In this default MIB 
view, all MIB objects in the iso  subtree but the snmpUsmMIB,  snmpVacmMIB, and 
snmpModules.18 subtrees are accessible. 
Views 
System view 
Predefined user roles 
network-admin 
Parameters 
excluded: Denies access to any node in the specified MIB subtree. 
included: Permits access to all the nodes in the specified MIB subtree. 
view-name: Specifies a view name, a string of 1 to 32 characters. 
oid-tree: Specifies a MIB subtree by its root node's OID (for example, 1.3.6.1.2.1.1) or object name 
(for example, system), a case-sensitive string of 1 to 255 characters. An OID is a dotted numeric 
string that uniquely identifies an object in the MIB tree. 
mask mask-value: Sets a MIB subtree mask, a hexadecimal string. Its length is an even number in 
the range of 2 to 32.