Enabling synchronous information output, Enabling duplicate log suppression – H3C Technologies H3C MSR 5600 User Manual
Page 224
211
Step Command
Remarks
5.
(Optional.) Specify the
directory to save diagnostic
log files.
info-center diagnostic-logfile
directory dir-name
By default, a diagnostic log file is
saved in the diagfile directory
under the root directory of the
storage device.
This command cannot survive a
reboot. (MSR 2600/MSR 3600.)
This command cannot survive a
reboot or an active/standby
switchover. (MSR 5600.)
6.
Save the diagnostic logs in the
diagnostic log file buffer to a
diagnostic log file.
•
Method 1: Configure the
interval to perform the saving
operation:
info-center diagnostic-logfile
frequency freq-sec
•
Method 2: Manually save the
diagnostic logs in the buffer to
a diagnostic log file:
diagnostic-logfile save
The default saving interval is
86400 seconds.
The diagnostic-logfile save
command is available in any view.
Enabling synchronous information output
The output of system logs interrupts ongoing configuration operations. You have to find the previously
input commands before the logs. Synchronous information output can show the previous input after log
output and 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:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enable synchronous
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, making it difficult for network administrators to find useful information and maintain the
device.
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 suppression period
is 30 seconds for the first time, 2 minutes for the second time, and 10 minutes for subsequent times.