< Home

info-center logbuffer size

Function

The info-center logbuffer size command sets the maximum number of logs in the log buffer.

The undo info-center logbuffer size command restores the default maximum number of logs in the log buffer.

By default, a log buffer can store a maximum of 512 logs.

Format

info-center logbuffer size logbuffer-size

undo info-center logbuffer size [ logbuffer-size ]

Parameters

Parameter Description Value
logbuffer-size Specifies the maximum number of logs in the log buffer. The value is an integer that ranges from 0 to 1024. If logbuffer-size is 0, logs are not displayed.

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If the number of logs in the log buffer reaches the maximum value, new logs will replace the existing logs that were placed earlier in the log buffer until all the new logs are stored.

Precautions

When you run the info-center logbuffer size command multiple times, only the latest configuration takes effect.

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

Example

# Set the maximum number of logs in the log buffer to 50.

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