beautypg.com

Configuring synchronous information output – H3C Technologies H3C S5120 Series Switches User Manual

Page 657

background image

1-14

To do…

Use the command…

Remarks

Enter system view

system-view

Enable information center

info-center enable

Optional

Enabled by default

Enable the log file feature

info-center logfile enable

Optional

Enabled by default

Configure the frequency with
which the log file is saved

info-center logfile frequency
freq-sec

Optional

The default value is 86,400
seconds.

Configure the maximum
storage space reserved for a
log file

info-center logfile size-quota
size

Optional

The default value is 5 MB.

Configure the directory to save
the log file

info-center logfile
switch-directory
dir-name

Optional

By default, it is the log file
directory under the logfile
directory of the Flash.

Manually save the log buffer
content to the log file

logfile save

Optional

Available in any view

By default, the system saves
the log file with the frequency
defined by the info-center
logfile frequency
command.

To ensure that the device works normally, use the info-center logfile size-quota command to set a log

file to be no smaller than 1 MB and no larger than 10 MB.

Configuring Synchronous Information Output

Synchronous information output refers to the feature that if the user’s input is interrupted by system

output such as log, trap, or debugging information, then after the completion of system output the

system will display a command line prompt (a prompt in command editing mode, or a [Y/N] string in

interaction mode) and your input so far.

This command is used in the case that your input is interrupted by a large amount of system output.

With this feature enabled, you can continue your operations from where you were stopped.

Follow these steps to enable synchronous information output:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable synchronous
information output

info-center synchronous

Required

Disabled by default