< Home

info-center max-logfile-number

Function

The info-center max-logfile-number command sets the maximum number of log files to be saved.

The undo info-center max-logfile-number command restores the default maximum number of log files to be saved.

By default, a maximum of 200 log files can be saved.

Format

info-center max-logfile-number filenumbers

undo info-center max-logfile-number

Parameters

Parameter Description Value
filenumbers Specifies the maximum number of log files that can be saved. The value is an integer that ranges from 3 to 500.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If too many log files are saved on the Switch, many disk space resources are occupied. To view log files generated recently, run the info-center max-logfile-number command to set the maximum number of log files that can be saved.

Precautions

If the number of log files generated on the Switch exceeds the limit, the system deletes the oldest log file so that the number of log files is not larger than the maximum value.

If the number of saved log files is greater than the default value, more system resources are consumed. The default value is recommended. Excess log files can be deleted manually or automatically. When the system deletes excess log files, high CPU usage may last for a short period.

Example

# Set the maximum number of log files to be saved 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 >