293
Step
Command
Remarks
5.
(Optional.) Specify the
directory to save the
diagnostic log file.
info-center diagnostic-logfile
directory
dir-name
By default, the diagnostic log file is
saved in the
diagfile
directory
under 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.
6.
Save diagnostic logs in the
diagnostic log file buffer to
the diagnostic log file.
•
Configure the interval to
perform the saving
operation:
info-center
diagnostic-logfile
frequency
freq-sec
•
Manually save diagnostic
logs in the buffer to the
diagnostic log file:
diagnostic-logfile save
The default saving interval is
86400 seconds.
The
diagnostic-logfile save
command is available in any view.
Configuring the maximum size of the trace log file
The device has only one trace log file. When the trace log file is full, the device overwrites the oldest
trace logs with new ones.
To set the maximum size for the trace log file:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Set the maximum size for the
trace log file.
info-center trace-logfile quota
size
By default, the maximum size of
the trace log file is 10 MB.
Setting the minimum storage period for log files
and logs in the log buffer
Use this feature to set the minimum storage period for log files and logs in the log buffer.
Logs in the log buffer
By default, when the log buffer is full, new logs will automatically overwrite the oldest logs. After the
minimum storage period is set, the system identifies the storage period of a log to determine whether
to delete the log. The system current time minus a log's generation time is the log's storage period.
•
If the storage period of a log is shorter than or equal to the minimum storage period, the system
does not delete the log. The new log will not be saved.
•
If the storage period of a log is longer than the minimum storage period, the system deletes the
log to save the new log.