Got it

[Q&A]how to collect log on CE switch

Latest reply: Jun 24, 2018 17:12:01 943 1 0 0 0

If you have some issues with CE switch, you can collect the basic logs and send to Huawei TAC for the investigation.

1. collect the command “display diagnostic-information”.

2. collect all the log.log, diag.log, log* and diaglog* in the logfile directory. 

3. collect the system log: 

For the point 2 and 3, You can follow below steps to collect them.

1. Run the command “collect diagnostic information” in the diagnose view:
<HUAWEI> system-view
[~HUAWEI] diagnose
[~HUAWEI-diagnose] collect diagnostic information     //after this command is executed,  then the file ‘’ will be generated in the root directory and logfile directory.

2. Enter logfile directory, then you can find all the log.log, diag.log, log*, diaglog* and in the logfile, then use any FTP tool to download all the log files to you laptop.
<HUAWEI> cd logfile
<HUAWEI> dir      
Directory of flash:/logfile/                                                                                                        
  Idx  Attr     Size(Byte)  Date        Time       FileName                     
    0  -rw-      1,215,581  Mar 10 2018 01:28:07   diag.log
1  -rw-        598,074  Mar 08 2018 18:00:28   //if the diag.log exceeds the specified size, diag.log may be compressed into diaglog*
2  -rw-        585,565  Mar 09 2018 22:31:53                                                 
    3  -rw-        577,576  Mar 10 2018 05:39:09
4  lrw-             42  Mar 10 2018 06:20:34 -> flash:/    
5  -rw-      7,392,575  Mar 10 2018 19:22:18   log.log 
6  -rw-        171,657  Mar 08 2018 13:44:38   //if the log.log exceeds the specified size, log.log may be compressed into log*
     7  -rw-         71,056  Mar 09 2018 02:44:38                                                     
    8  -rw-         73,260  Mar 09 2018 15:33:09                                                     
    9  -rw-         71,613  Mar 10 2018 04:21:34    
  • x
  • convention:

MVE Created Jun 24, 2018 17:12:01

very much informative and useful doc. thanks
View more
  • x
  • convention:


You need to log in to comment to the post Login | Register

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 " User Agreement."

My Followers

Login and enjoy all the member benefits


Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Please bind your phone number to obtain invitation bonus.