292
Task
Command
Remarks
Change the directory of the
security log file.
a
system-view
b
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.
(In standalone mode.) This
command cannot survive a reboot
or an active/standby switchover.
(In IRF mode.) This command
cannot survive an IRF reboot or a
global active/standby switchover in
an IRF fabric.
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 device 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 device supports multiple diagnostic log files. Each diagnostic log file has a maximum capacity.
The diagnostic log files are named as
diagfile1.log
,
diagfile2.log
, and so on. When
diagfile1.log
is
full, the system compresses
diagfile1.log
as
diagfile1.log.gz
and creates a new diagnostic log file
named
diagfile2.log
. The process repeats until the last diagnostic log file is full.
After the last diagnostic log file is full, the device repeats the following process:
1.
The device locates the oldest compressed diagnostic log file
diagfileX.log.gz
and creates a
new file using the same name (
diagfileX.log
).
2.
When
diagfileX.log
is full, the device compresses the log file as
diagfileX.log.gz
to replace the
existing file
diagfileX.log.gz
.
To avoid loss of important logs, back up the diagnostic log files regularly.
To enable saving diagnostic logs to the diagnostic log file:
Step
Command
Remarks
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 saving diagnostic
logs to the diagnostic log file.
info-center diagnostic-logfile
enable
By default, saving diagnostic logs
to the diagnostic log file is
enabled.
4.
(Optional.) Set the maximum
size for the diagnostic log
file.
info-center diagnostic-logfile
quota size
The default setting is 10 MB.
To ensure normal operation, set
the
size
argument to a value
between 1 MB and 10 MB.
Summary of Contents for FlexNetwork 10500 SERIES
Page 224: ...213 ...
Page 311: ...300 Now the system can record log information to the specified file ...