59
Managing the security log file
To manage and maintain the security log file, the security log administrator must pass local AAA
authentication first. For more information about security log administrator, see Security Configuration
Guide.
To manage the security log file:
Display a summary of the security
log file.
display security-logfile
summary
Available in user view.
Change the directory of the
security log file.
1. system-view
2. info-center
security-logfile directory
dir-name
By default, the security log file is
saved in the
seclog
directory in the
root directory of the storage device.
The configuration made by this
command cannot survive an IRF
reboot or a master/subordinate
switchover.
Manually save all the contents in
the security log file buffer to the
security log file.
security-logfile save
Available in any view.
Saving diagnostic logs to the diagnostic log file
By default, the system saves diagnostic logs from the diagnostic log file buffer to the diagnostic log
file every 24 hours. You can adjust the saving interval or manually save diagnostic logs to the
diagnostic log file. After saving diagnostic logs to the diagnostic log file, the system clears the
diagnostic log file buffer.
The diagnostic log file has a maximum capacity. When the capacity is reached, the system replaces
earliest diagnostic logs with new logs.
To enable saving diagnostic logs to a diagnostic log file:
1. Enter system view.
system-view
N/A
2. Enable the information
center.
info-center enable
By default, the information center
is enabled.
3. Enable
logs to the diagnostic log file.
info-center logfile enable
By default, saving diagnostic logs
to the diagnostic log file is
enabled.
4. (Optional.)
maximum size of the
diagnostic log file.
info-center diagnostic-logfile
quota
size
By default, the maximum size is
10 MB.
To ensure normal operation, set
the size
between 1 MB and 10 MB.
5. (Optional.) Specify the
directory to save diagnostic
log files.
info-center diagnostic-logfile
directory
dir-name
flash:/diagfile.
This command cannot survive an
master/subordinate switchover.