所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

从S7700集群系统中获取诊断信息和日志文件

评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
从S7700集群系统中获取诊断信息和日志文件

从S7700集群系统中获取诊断信息和日志文件

简介

这篇文档主要介绍如何从S系列集群系统中获取诊断信息和日志文件。

问题描述

当集群系统运行异常时可以将设备诊断信息和日志文件传输到服务器上,用于分析定位故障原因。

图1-1为例,从集群系统获取诊断信息和日志文件。

图1-1 获取诊断信息和日志文件组网图

操作步骤

  1. 将设备的诊断信息保存到dia-info.txt文件中。
    <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. 
    说明:
    • txt文件的缺省保存路径为设备存储器根目录,例如flash:/,用户视图下使用dir命令可以确认文件是否已生成。
    • 该命令主要用于问题定位,搜集系统诊断信息,搜集时可能会影响系统的性能(例如CPU占用率升高等)。因此,在系统正常运行时不建议执行该命令。并且,严禁在连接到设备的多个终端上同时执行该命令,否则可能造成设备的CPU占用率明显增高,导致设备性能下降。
  2. 手动保存最新的日志文件。日志文件会定时进行保存,建议在获取日志文件时,手动将缓存区中的日志信息保存到日志文件。
    <HUAWEI> save logfile all  
    Info: Save logfile successfully.         
    Info: Save diagnostic logfile successfully.
  3. 通过FTP方式将诊断信息文件和日志文件传输到服务器。这里集群系统作为FTP客户端,服务器作为FTP服务器端,服务器已开启FTP功能。
    1. 执行dir ?查看当前集群系统的存储器状态。通过下面的显示可以看出该集群系统4块主控板的存储器分别为:1/9#flash、1/10#flash、2/10#flash、2/9#flash。
      <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. 将4个主控板的诊断信息文件、用户日志文件和诊断日志文件上传到服务器。
      <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. 将解析诊断命令的数据字典文件传输到服务器上。
      说明:

      数据字典不指定文件名时,默认是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. 
翻译
下载文档
更新时间:2019-06-29

文档编号:EDOC1100088140

浏览量:511

下载量:62

平均得分:
本文档适用于这些产品
相关版本
相关文档
Share
上一页 下一页