< Home

info-center local log-counter disable

Function

The info-center local log-counter disable command disables the local log from carrying the sequence number.

The undo info-center local log-counter disable command enables the local log to carry the sequence number.

By default, the local log carries the sequence number.

Format

info-center local log-counter disable

undo info-center local log-counter disable

Parameters

None

Views

System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

If the device keeps running for a long time, a large number of logs may be generated.

  • You can run the info-center local log-counter disable command to disable logs sent to the log buffer, log file, console, or terminal from carrying the sequence number, and run the undo info-centerlocal log-counter disable command to enable these logs to carry the sequence number.
  • You can run the undo info-center local log-counter disable command to enable logs to carry the incremental sequence number, checking whether all logs have been sent to the log buffer, log file, console, or terminal.
  • Logs sent to the console log file, or terminal are counted separately and therefore carry different sequence numbers in ascending order. The sequence number of the earliest log is 0.

  • Logs sent to the log buffer carry sequence numbers in descending order. The sequence number of the latest log is 0.

Example

# Disable local logs from carrying the sequence number.

<HUAWEI> system-view
[HUAWEI] info-center local log-counter disable

# Enable local logs to carry the sequence number.

<HUAWEI> system-view
[HUAWEI] undo info-center local log-counter disable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >