Configuring the maximum size of the trace log file, Enabling synchronous information output – H3C Technologies H3C S6300 Series Switches User Manual
Page 96
83
Step Command
Remarks
4.
(Optional.) Configure the
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 argument to a value between
1 MB and 10 MB.
5.
(Optional.) Specify the
directory to save diagnostic
log files.
info-center diagnostic-logfile
directory dir-name
The default directory is
flash:/diagfile.
This command cannot survive an
IRF reboot or a master/subordinate
switchover.
6.
Save the diagnostic logs in the
diagnostic log file buffer to the
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
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:
Step Command
Remarks
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
The system log output interrupts ongoing configuration operations, obscuring the 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:
Step Command
Remarks
1.
Enter system view.
system-view
N/A