R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Command Reference-6PW101
173
Examples
# Configure the local engine ID as 12 345678 9A .
<Sysname> system-view
[Sysname] snmp-agent local-engineid 123456789A
snmp-agent log
Syntax
snmp-agent log { all | get-operation | set-operation }
undo snmp-agent log { all | get-operation | set-operation }
View
System view
Default level
3: Manage level
Parameters
all: Enables logging of SNMP GET and SET operations.
get-operation: Enables logging of SNMP GET operation.
set-operation: Enables logging of SNMP SET operation.
Description
Use snmp-agent log to enable SNMP logging.
Use undo snmp-agent log to restore the default.
By default, SNMP logging is disabled.
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 operation.
<Sysname> system-view
[Sysname] snmp-agent log get-operation
# Enable logging SNMP SET operation.
<Sysname> system-view
[Sysname] snmp-agent log set-operation
snmp-agent mib-view
Syntax
snmp-agent mib-view { excluded | included } view-name oid-tree [ mask mask-value ]
undo snmp-agent mib-view view-name
View
System view