How can I view the command operation records?

Created: Aug 23, 2019 14:10:54Latest reply: Aug 23, 2019 14:13:17 36 1 0 0
  Rewarded Hi-coins: 0 (problem resolved)

Why there is no command operation record in the log buffer? How can I view the command operation records?


  • x
  • convention:

Featured Answers
Popeye_Wang
Admin Created Aug 23, 2019 14:13:17 Helpful(0) Helpful(0)

Hi Sprout,

The memory space of the device is limited. By default, only the logs of the warning or higher levels are recorded in the logbuffer. But the command operation log level is notifications, which will not be recorded in the logbuffer.

Log level:
How can I view the command operation records?-3042997-1
 How can I view the command operation records?-3042997-2

If you just want to view recent operation records, run the display history-command command.
You can set the maximum size of the history command buffer to 256.
[HUAWEI] user-interface console 0
[HUAWEI-ui-console0] history-command max-size 256
 
If you want to record the command operation log in the logbuffer, there are two ways:
1. Reduce the level of logs recorded by the logbuffer:
[Huawei] info-center source default channel logbuffer log level notifications
 
2.  Enable the logbuffer to record the SHELL module information.
[Huawei] info-center source SHELL channel logbuffer log level debugging state on

This article contains more resources

You need to log in to download or view. No account?Register

x
  • x
  • convention:

All Answers
Popeye_Wang
Popeye_Wang Admin Created Aug 23, 2019 14:13:17 Helpful(0) Helpful(0)

Hi Sprout,

The memory space of the device is limited. By default, only the logs of the warning or higher levels are recorded in the logbuffer. But the command operation log level is notifications, which will not be recorded in the logbuffer.

Log level:
How can I view the command operation records?-3042997-1
 How can I view the command operation records?-3042997-2

If you just want to view recent operation records, run the display history-command command.
You can set the maximum size of the history command buffer to 256.
[HUAWEI] user-interface console 0
[HUAWEI-ui-console0] history-command max-size 256
 
If you want to record the command operation log in the logbuffer, there are two ways:
1. Reduce the level of logs recorded by the logbuffer:
[Huawei] info-center source default channel logbuffer log level notifications
 
2.  Enable the logbuffer to record the SHELL module information.
[Huawei] info-center source SHELL channel logbuffer log level debugging state on

This article contains more resources

You need to log in to download or view. No account?Register

x
  • x
  • convention:

Reply

Reply
You need to log in to reply to the post Login | Register

Notice Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " Privacy."
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Login and enjoy all the member benefits

Login and enjoy all the member benefits

Login