snmp-agent usm-user
•
snmp-agent log
Use the snmp-agent log command to enable logging SNMP operations.
Use the undo snmp-agent log command to disable logging SNMP operations.
Syntax
snmp-agent log { all | get-operation | set-operation }
undo snmp-agent log { all | get-operation | set-operation }
Default
SNMP logging is disabled.
Views
System view
Predefined user roles
network-admin
Parameters
all: Enables logging SNMP Get and Set operations.
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 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 specific 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
snmp-agent mib-view
Use the snmp-agent mib-view command to create or update a MIB view.
Use the undo snmp-agent mib-view command to delete a MIB view.
Syntax
snmp-agent mib-view { excluded | included } view-name oid-tree
undo snmp-agent mib-view view-name
104