
84
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 the SNMP Get operation.
set-operation
: Enables logging of the SNMP Set operation.
Description
Use the
snmp-agent log
command to enable SNMP logging.
Use the
undo snmp-agent log
command to restore the default.
By default, SNMP logging is disabled.
If specified SNMP logging is enabled, when the NMS performs a specified operation to the SNMP agent,
the latter records the operation-related information and saves it to the information center. With
parameters for the information center set, output rules of the SNMP logs are decided (that is, whether
logs are permitted to output and the output destinations).
Examples
# Enable logging of the SNMP GET operation.
<Sysname> system-view
[Sysname] snmp-agent log get-operation
# Enable logging of the SNMP SET operation.
<Sysname> system-view
[Sysname] snmp-agent log set-operation
snmp-agent ifmib long-ifindex enable
Syntax
snmp-agent ifmib long-ifindex enable
undo snmp-agent ifmib long-ifindex enable
View
System view
Default level
2: System level
Parameters
None