info-center max-logfile-number

Function

The info-center max-logfile-number command sets the maximum number of compressed information files to be stored.

The undo info-center max-logfile-number command restores the default maximum number of compressed information files to be stored.

The default maximum number varies with information file types. The default maximum number is 200 for common log files.

Format

info-center max-logfile-number [ security ] filenumbers

undo info-center max-logfile-number [ security ]

Parameters

Parameter Description Value
security

Indicates security log files.

-

filenumbers

Specifies the maximum number of compressed information files to be stored.

The value is an integer ranging from 3 to 500.

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
log write

Usage Guidelines

Usage Scenario

The total number of compressed files must be limited in the following cases:

  • An increasing number of compressed files are generated as system actions are taken during system operations, and the excessive compressed files on a device consume plenty of disk space resources.
  • Users want to view only the latest compressed files.

Precautions

To set the maximum number of compressed files that can be stored on a device, run the info-center max-logfile-number command. When the number of compressed files generated in the system exceeds the maximum number that you have configured, the system deletes old compressed files and keeps only a number of compressed files less than or equal to the configured maximum value.

If the number of stored compressed files is greater than the default value, system performance is much affected. Therefore, set the maximum value properly as needed. If plenty of compressed files exist, manually delete some of them or wait for the system to automatically delete them when the existing number exceeds the configured maximum value. If you do not manually delete them, CPU usage increases in a short period of time.

Example

# Set the maximum number of compressed files to be stored to 100.
<HUAWEI> system-view
[~HUAWEI] info-center max-logfile-number 100
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >