Audit Logs
Chapter 4. Maintenance Tasks
48
For parameter and attribute descriptions, go to “log” on page 76. Attributes
are case-sensitive. To specify multiple attributes on a single command, insert
them in a quoted string (enclosed in quotation marks), as the first example
below shows. Logging changes go into effect immediately.
Examples
z
This example enables snmp-traps and snmp-packets logging. The events are
recorded in the log file, but not displayed on the terminal. The configuration is
saved.
config>
log "snmp-trap snmp-packets" noTerminal logFile quiet
config>
exit
admin>
copy system:running nvram:config
z
This example uses the
log list
command to display the available logging
attributes and their states. The default settings display in the response.
config>
log list
Terminal Output Log file output Level Setting
snmp-trap disabled disabled quiet
snmp-event disabled disabled quiet
snmp-packets disabled disabled quiet
cmbSsh disabled enabled quiet
CCB disabled enabled quiet
Ike disabled enabled quiet
Ssh disabled enabled quiet
systemLog enabled enabled quiet
Disable Logging
There are two ways to disable logging:
z
Enter the
log
command with the
noTerminal
and
noLogFile
attributes,
described in “Configure Log File Events” on page 46.
z
Enter the
no log
command to turn off event logging for specified events:
a. Log on as Network Manager.
b. Enter configuration mode.
c. At the
config>
prompt, enter this command:
no log <
attribute
>
where
attribute
is an enabled logging attribute.
Example
These commands stop logging a previously configured event, snmp-traps, and
then save the new configuration.
admin>
config t
config>
no log snmp-trap
config>
exit
admin>
copy system:running nvram:config