60
6. Save the 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 the 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 of the trace log file:
1. Enter system view.
system-view
N/A
2. Set the maximum size of the
trace log file.
info-center diagnostic-logfile
quota
size
By default, the maximum size of
the trace log file is 1 MB.
Enabling synchronous information output
System log output interrupts ongoing configuration operations, obscuring previously entered
commands. Synchronous information output shows the obscured commands. It also provides a
command prompt in command editing mode, or a [Y/N] string in interaction mode so you can
continue your operation from where you were stopped.
To enable synchronous information output:
1. Enter system view.
N/A
2.
information output.
info-center synchronous
By default, synchronous
information output is disabled.
Enabling duplicate log suppression
The output of consecutive duplicate logs at an interval of less than 30 seconds wastes system and
network resources.
With this feature enabled, the system starts a suppression period upon outputting a log:
• During the suppression period, the system does not output logs that have the same module
name, level, mnemonic, location, and text as the previous log.
• After the suppression period expires, if the same log continues to appear, the system outputs
the suppressed logs and the log number and starts another suppression period. The