< Home

info-center logfile size

Function

The info-center logfile size command sets the log file size.

The undo info-center logfile size command restores the default log file size.

By default, the log file size is 8 MB.

Format

info-center logfile size size

undo info-center logfile size

Parameters

Parameter Description Value
size Specifies the log file size. The value is an integer that is 4, 8, 16, or 32, in MB. The default value is 8 MB.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

To configure the Switch to export information to a log file, run the info-center logfile size command to set the log file size.

Precautions

If you configure the device to export information to a log file, exported information is saved in the log.log or log.dblg file. When the log.log or log.dblg file exceeds the specified size, the system compresses the file in to a zip package and names the compressed file date time.log.zip or date time.dblg.zip.

The info-center logfile size command takes effect only after the information center function has been enabled using the info-center enable command.

Example

# Set the log file size to 32 MB.

<HUAWEI> system-view
[HUAWEI] info-center logfile size 32
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >