No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Obtaining Diagnostic Information and Log Files from an S7700 Stack System

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Obtaining Diagnostic Information and Log Files from an S7700 Stack System

Obtaining Diagnostic Information and Log Files from an S7700 Stack System

Introduction

This document describes how to obtain diagnostic information and log files in a CSS of S series switches.

Prerequisites

To obtain diagnostic information and log files from a CSS, ensure that there are reachable routes between the server and CSS.

Problem

When a Cluster Switch System (CSS) is not operating properly, you can transfer the device diagnostic information and log files to a server to locate the fault. Figure 1-1 assumes the following physical setup.
Figure 1-1 Physical setup

Procedure

  1. Generate a diagnostic information file.

    <HUAWEI> display diagnostic-information dia-info.txt  
    Now saving the diagnostic information to the device 
     100%                                           
    Info: The diagnostic information was saved to the device successfully. 
    NOTE:
    • The default path of a text file is the root directory of the device storage, for example, flash:/. You can run the dir command in the user view to check whether the text file has been created.
    • The display diagnostic-information file-name command is used to collect system diagnostic information for fault location. Executing this command may affect the system performance. For example, it may cause a high CPU usage. Therefore, do not run this command when the system is operating properly. Additionally, do not simultaneously run this command on multiple terminals connected to the switch. Otherwise, the CPU usage of the switch will increase sharply, causing system performance deterioration.

  2. Save the latest log file manually. Log files will be saved periodically. You are advised to manually save log information in the log buffer to log files when obtaining log files.

    <HUAWEI> save logfile all   
    Info: Save logfile successfully. 
    Info: Save diagnostic logfile successfully.

  3. Transfer diagnostic information files and log files to the server through FTP. The CSS functions as the FTP client, and the server functions as the FTP server. The FTP function has been enabled on the server.

    1. Run the dir ? command to check the status of the CSS flash memory. The following command output shows that the flash memories of the four MPUs in the CSS are 1/9#flash, 1/10#flash, 2/10#flash, and 2/9#flash respectively.
      <HUAWEI> dir ?     
        1/9#flash:        Device name                         
        1/10#flash:       Device name                         
        2/10#flash:       Device name                         
        2/9#flash:        Device name                         
        /all              List all files                      
        /all-filesystems  List files on all filesystems       
        STRING            [drive][path][file name]            
        flash:            Device name 
    2. Upload the diagnostic information files, user log files, and diagnostic log files of the four MPUs to the server.
      <HUAWEI> ftp 10.1.1.10                                            
      Trying 10.1.1.10 ...                                              
      Press CTRL+K to abort                                                 
      Connected to 189.44.241.99.                                           
      220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user 
      User(189.44.241.99:(none)):test                                          
      331 Give me your password, please                                     
      Enter password:                                                       
      230 Logged in successfully 
        
      [ftp] put flash:/dia-info.txt 
      200 PORT command okay          
      150 "F:\ftp\dia-info.txt" file ready to receive in ASCII mode                     
      226 Transfer finished successfully.                                               
      FTP: 3361771 byte(s) sent in 5.995 second(s) 547.61Kbyte(s)/sec.  
       
      [ftp] put 1/9#flash:/logfile/log.log log-1-9.log                                      
      200 PORT command okay                  
      150 "F:\ftp\log-1-9.log" file ready to receive in ASCII mode                          
      226 Transfer finished successfully. 
      FTP: 5573930 byte(s) sent in 12.232 second(s) 524.84Kbyte(s)/sec. 
       
      [ftp] put 1/9#flash:/logfile/log.dblg log-1-9.dblg 
      200 PORT command okay                  
      150 "F:\ftp\log-1-9.dblg" file ready to receive in ASCII mode                          
      226 Transfer finished successfully. 
      FTP: 5573930 byte(s) sent in 12.232 second(s) 524.84Kbyte(s)/sec. 
       
      [ftp] put 1/10#flash:/logfile/log.log log-1-10.log                                      
      200 PORT command okay                  
      150 "F:\ftp\log-1-10.log" file ready to receive in ASCII mode                          
      226 Transfer finished successfully. 
      FTP: 5573930 byte(s) sent in 12.232 second(s) 524.84Kbyte(s)/sec. 
       
      [ftp] put 1/10#flash:/logfile/log.dblg log-1-10.dblg 
      200 PORT command okay                  
      150 "F:\ftp\log-1-10.dblg" file ready to receive in ASCII mode                          
      226 Transfer finished successfully. 
      FTP: 5573930 byte(s) sent in 12.232 second(s) 524.84Kbyte(s)/sec. 
       
      [ftp] put 2/9#flash:/logfile/log.log log-2-9.log                                      
      200 PORT command okay                  
      150 "F:\ftp\log-2-9.log" file ready to receive in ASCII mode                          
      226 Transfer finished successfully. 
      FTP: 5573930 byte(s) sent in 12.232 second(s) 524.84Kbyte(s)/sec. 
       
      [ftp] put 2/9#flash:/logfile/log.dblg log-2-9.dblg 
      200 PORT command okay                  
      150 "F:\ftp\log-2-9.dblg" file ready to receive in ASCII mode                          
      226 Transfer finished successfully. 
      FTP: 5573930 byte(s) sent in 12.232 second(s) 524.84Kbyte(s)/sec. 
       
      [ftp] put 2/10#flash:/logfile/log.log log-2-10.log                                      
      200 PORT command okay                  
      150 "F:\ftp\log-2-9.log" file ready to receive in ASCII mode                          
      226 Transfer finished successfully. 
      FTP: 5573930 byte(s) sent in 12.232 second(s) 524.84Kbyte(s)/sec. 
       
      [ftp] put 2/10#flash:/logfile/log.dblg log-2-10.dblg 
      200 PORT command okay                  
      150 "F:\ftp\log-2-10.dblg" file ready to receive in ASCII mode                          
      226 Transfer finished successfully. 
      FTP: 5573930 byte(s) sent in 12.232 second(s) 524.84Kbyte(s)/sec. 
      [ftp] quit
    3. Transfer the data dictionary file used for parsing diagnostic commands to the server.

NOTE:

If the data dictionary file name is not specified, the default file name is data-dict.xml.

<HUAWEI> system-view
[HUAWEI] diagnose
[HUAWEI-diagnose] info-center create logbook ftp 10.1.1.10 user-name test password test
Info: It may take several seconds, please wait ...                       
Info: Succeeded in creating a data dictionary. 
Translation
Download
Updated: 2019-06-29

Document ID: EDOC1100088105

Views: 336

Downloads: 12

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next