< Home

info-center session log disable

Function

The info-center session log disable command disables the user session logging function.

The undo info-center session log disable command enables the user session logging function.

By default, the user session logging function is enabled.

Format

info-center session log disable

undo info-center session log disable

Parameters

None

Views

System view

Level

3: Management level

Usage Guidelines

Usage Scenario

The user session logging function saves the user input, device screen output, and time when the device executes the commands entered by users to a session log file. If the device becomes faulty or services become abnormal, you can obtain the user operation records from the saved session log file for fault location.

A session log file is generated in each VTY window and named cli_channel name.log, for example: cli_vty1.log. The generated session log files are stored in the sessionlog directory. The file size cannot exceed 1 MB.

If the number of session log files exceed the maximum value 20 (cannot be changed), the system compresses the files into .zip files. The compressed file is named cli_slot ID_timestamp_channel name_host name.log.zip, for example: cli_11_20171129081148_vty1_huawei.log.zip.

If the remaining device space is less than 35 MB, the system deletes the earliest log files until the remaining device space is more than 35 MB.

Precautions

Using the undo info-center enable or info-center disable command disables the information center will not affect the user session logging function. This function can only be enabled or disabled using the undo info-center session log disable or info-center session log disable command.

Example

# Disable the user session logging function.

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