info-center session log disable

Function

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

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

By default, the session log function is disabled.

Format

info-center session log disable

undo info-center session log disable

Parameters

None

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
cli write

Usage Guidelines

  • The session log function saves user input, terminal output, and the time when a device executes command lines as a file named cli_channel number.log into the sessionlog folder in the root directory, for example, cli_con0.log.
  • Run the command more display the contents of the session log.
  • Commands that fail to be executed are not recorded in the log.

Example

# Disable the session log function.
<HUAWEI> system-view
[~HUAWEI] info-center session log disable
# Enable the session log function and display the contents of the log.
<HUAWEI> system-view
Enter system view, return user view with return command.
[~HUAWEI] undo info-center session log disable
[*HUAWEI] commit
[~HUAWEI] quit
<HUAWEI> display info-center session log status
Info-center Session Log Status:
-------------------------------
Global Status: On
-------------------------------
User-Interface    Status
VTY 0             On
<HUAWEI> dir
Directory of cfcard:/sessionlog/

  Idx  Attr     Size(Byte)  Date        Time       FileName                     
    0  -rw-            273  Oct 21 2019 19:54:00   cli_vty0.log                 

1,638,400 KB total (946,724 KB free)
<HUAWEI> more cli_vty0.log

2019-10-21 19:53:51 [~HUAWEI]quit

2019-10-21 19:53:57 <HUAWEI>display info-center session log status
Info-center Session Log Status:
-------------------------------
Global Status: On
-------------------------------
User-Interface    Status
VTY 0             On

2019-10-21 19:54:02 <HUAWEI>dir
Directory of cfcard:/sessionlog/

  Idx  Attr     Size(Byte)  Date        Time       FileName                     
    0  -rw-            273  Oct 21 2019 19:54:00   cli_vty0.log                 

1,638,400 KB total (946,724 KB free)
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >