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

Huawei Server Maintenance Manual 09

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).
Collecting Switch Module Logs (E9000)

Collecting Switch Module Logs (E9000)

Preparing for Information Collection

Connecting a PC to the Ethernet Switching Plane

Connect a PC to the Ethernet switching plane before logging in to the switching plane.

Procedure
  1. Connect the Ethernet port on the PC to the MGMT ports on the active and standby MM910s over the local area network (LAN). Figure 3-2 shows the network connections.

    If you want to connect your local PC directly to the MM910 using a network cable but the MGMT port on the active MM910 is already connected with a network cable, do not remove the network cable from the MGMT port on the active MM910. Otherwise, an active/standby switchover of the MM910s will be triggered, which may cause network interruption. You can connect the network cable from the local PC to the STACK port of the active MM910 in the chassis. If the STACK port on the active MM910 is also used, connect the network cable to an idle STACK port on an active MM910 in a chassis cascaded with the E9000 chassis.

    Figure 3-2 Network connections
    NOTE:
    • For MM910 V2.25 or earlier, the port on the switch module in slot 2X or 3X is used as the default management network port for connecting to an external network. In this situation, do not connect the MGMT port on the MM910 and the port on the switch module to the same network simultaneously. Connecting these ports simultaneously will cause a network storm.

      To use the MGMT port on the MM910 panel as the management network port for connecting to an external network, run the smmset -d outportmode -v 1 command on the CLI.

    • For MM910 V2.26 or later, the MGMT port on the MM910 panel is used as the default management network port for connecting to an external network.

  2. Log in to the MM910 CLI with the floating IP address of the MM910 and the SSH connection tool.

    This section uses PuTTY as an example for logging in over SSH. For details, see Logging In to a Server Over a Network Port by Using PuTTY.

    NOTE:

    Step 3 to Step 5 describe how to configure the IP address and route information of the management network port by using the Ethernet switching plane. Skip these steps if the configuration has already been completed.

  3. (Optional) To query the IP address of the management network port on the Ethernet switching plane, run the following command:

    smmget -l swiN:fruM -d swipcontrol

    The parameters in the command are described as follows:

    • N: specifies the slot number of a switch module. Slot number values are 1 to 4, indicating switch module slots 1E, 2X, 3X, and 4E from left to right respectively.
    • M: specifies the ID of a switching plane. The value 2 indicates the Ethernet switching plane.

    Check whether the queried IP address is 0.0.0.0.

  4. (Optional) To set the IP address of the management network port on the Ethernet switching plane to an unused IP address, run the following command:

    smmset -l swiN:fruM -d swipcontrol -v ipaddress maskaddress

    The parameters in the command are described as follows:

    • N: specifies the slot number of a switch module. Slot number values are 1 to 4, indicating switch module slots 1E, 2X, 3X, and 4E from left to right respectively.
    • M: specifies the ID of a switching plane. The value 2 indicates the Ethernet switching plane.
    • ipaddress: specifies the IP address of the management network port.
    • maskaddress: specifies the subnet mask of the management network port.

  5. (Optional) Configure a gateway address for the Ethernet switching plane so that the switching plane can communicate with the PC correctly.

    NOTE:

    When using stacked switching planes, configure a gateway address only for the primary stacking switching plane.

    smmset -l swiN:fruM -d route -v targetvalue maskvalue gatewayvalue

    The parameters in the command are described as follows:

    • N: specifies the slot number of a switch module. Slot number values are 1 to 4, indicating switch module slots 1E, 2X, 3X, and 4E from left to right respectively.
    • M: specifies the ID of a switching plane. The value 2 indicates the Ethernet switching plane.
    • targetvalue: specifies the target network segment IP address of the switching plane.
    • maskvalue: specifies the subnet mask of the switching plane.
    • gatewayvalue: specifies the gateway address of the switching plane.

    Example: root@SMM:/# smmset -l swi1:fru1 -d route -v 13.12.13.14 255.255.0.0 192.168.122.115

Querying the Software Version of an Ethernet Switching Plane

Before upgrading a switch module, query the software version of the Ethernet switching plane of the switch module.

Prerequisites
  • The switch module has been powered on.
  • You have obtained the user name and password for logging in to an Ethernet switching plane over Secure Shell (SSH). The default user name is admin, and the default user password is Huawei12#$.
  • You have obtained the user name and password for logging in to the MM910. The default user name is root, and the default user password is Huawei12#$.
  • You have obtained the values of the required parameters.
    Table 3-8 Required parameters

    Parameter

    Example Value

    IP address and subnet mask of the management network port on the Ethernet switching plane

    • IP address of the management network port: 192.168.9.61
    • Subnet mask: 255.255.255.0

    Floating IP address, subnet mask, and gateway address of the MM910

    • IP address: 10.85.4.77
    • Subnet mask: 255.255.255.0
    • Gateway address: 10.85.4.1
Procedure
  1. Connect a PC to the Ethernet switching plane.

    For details, see Connecting a PC to the Ethernet Switching Plane.

  2. Log in to the CLI of the Ethernet switching plane with the MM910 Serial over LAN (SOL) function.

    For details, see Logging In to a Compute Node, Pass-through Module, or Switch Module over SOL.

  3. To query the software version of the Ethernet switching plane, run the following command:

    display version

    • The software version is V5 if the command output contains Switch Version.
      Information similar to the following is displayed for V5:
      BoardName                : CX910 
      CPLD Version             : 003 
      PCB Version              : VER.A 
      Bootrom Version          : 008 
      Creation Time            : Sep 17 2012, 09:53:25 
      Backup Bootrom Version : 008    
      Creation Time            : Sep 17 2012, 09:53:25    
      Switch Version           : 1.1.0.200.3  
      Creation Time            : Oct 17 2012, 17:10:28 
      Backup Switch Version    : 1.1.0.200.3  
      FC BoardName             : UNKNOWN 
      FC PCB Version           : UNKNOWN        

    • The software version is V8 if the command output contains Software Version.
      Information similar to the following is displayed for V8:
      Huawei Versatile Routing Platform Software 
      VRP (R) software, Version 8.60 (OSCA V100R002C01) 
      Copyright (C) 2012-2013 Huawei Technologies Co., Ltd. 
      HUAWEI OSCA uptime is 0 day, 0 hour, 20 minutes 
        
      CX910_10GE(Master) 3 : uptime is  0 day, 0 hour, 20 minutes 
              StartupTime 2013/12/16 01:54:58 
      Memory      Size    : 2048 M bytes 
      Flash       Size    : 1024 M bytes 
      CX910_10GE version information 
      1. PCB      Version : CX910_10GE VER C 
      2. MAB      Version : 1 
      3. Board    Type    : CX910_10GE4. CPLD1    Version : 013 
      5. BIOS     Version : 038 
      6. Software Version : 1.2.1.0.39     

Collecting Switch Module Logs

Information Collection Method
Table 3-9 Methods for collecting switch module logs

Switching Plane Type

Switch Module Type

Prerequisites

Information Collection Method

Reference

Ethernet switching plane and FC switching plane

Switch modules based on the Versatile Routing Platform (VRP) V5 and V8

  • You have downloaded InfoCollect.
  • You have pinged the MM910 IP address of the target server.

InfoCollect

Using Infocollect to Collect Switch Module Logs

Ethernet switching plane

Switch module based on the VRP V5 platform

You have completed Connecting a PC to the Ethernet Switching Plane.

  • CLI
NOTE:

The information collected when using this method is the same as the Fabric plane information collected when using InfoCollect. For details, see FusionServer Tools V2R2 InfoCollect User Guide.

  • WebUI
NOTE:

To use the one-click collection function of the MM910 WebUI, ensure that the MM910 software version is 6.00 or later and the switching plane software version is 5.30 and later.

Switch module based on the VRP V8 platform

FC switching plane

CX311, CX911, and CX915 switch modules

You have completed Connecting a PC to the Ethernet Switching Plane.

CLI

Using the Switch Module CLI to Collect Information About an FC Switching Plane (MX510)

You have completed Logging In to the Web Tools of the MX510.

WebUI

Using the Switch Module Web Tools to Collect FC Switching Plane Information (MX510)

CX210, CX220, CX912, and CX916 switch modules

You have completed Connecting a PC to the Ethernet Switching Plane.

CLI

Using the Switch Module CLI to Collect Information About an FC Switching Plane (MX210 or MX220)

Using Infocollect to Collect Switch Module Logs

For details about how to use Infocollect to collect E9000 switch module logs, see "Collecting Switch Module Log Files" in the FusionServer Tools 2.0 InfoCollect User Guide.

Using the Switch Module CLI of the V5 Platform to Collect Ethernet Switching Plane Information

Use the CLI of an E9000 switch module to collect the following information about the V5 platform:

  • Logs
  • Debugging information
  • Trap information

For details about how to query the Ethernet switching plane version, see Querying the Software Version of an Ethernet Switching Plane.

Prerequisites
  • WFTPD 4.2.4.610 or later has been installed on a PC.
  • You have logged in to the Ethernet switching plane CLI. For details, see Logging In to a Server Over a Network Port by Using PuTTY or Logging In to a Compute Node, Pass-through Module, or Switch Module over SOL.
  • You have installed wftpd32.exe, which is used to transfer files between different platforms, for example, from a PC to a switch module.
  • You have obtained the user name and password for logging in to the switching plane. The default user name is root, and the default user password is Huawei12#$.
  • You have obtained the values of the required parameters.
    Table 3-10 Required parameters

    Parameter

    Example Value

    IP addresses

    CX911: 192.168.1.100

    CX912: 10.77.77.77

    Subnet mask

    255.255.255.0

    Default gateway

    0.0.0.0

    NOTE:

    You can query and set IP addresses of all modules on the MM910 WebUI. For details about how to log in to the MM910 WebUI, see Logging In to the MM910 WebUI.

    • For MM910 earlier than (U54) 2.20, choose System Management > Network Management > Switch Module > IP Address.
    • For MM910 (U54) 2.20 or later, choose Chassis Settings > Network Settings > Switch Module.
Procedure
  1. Configure an FTP server.

    For details, see Configuring an FTP Server.

  2. Set an IP address for the management network port.

    1. To query and set the IP address of the management network port, log in to the Ethernet switching plane with a serial port or the Serial over LAN (SOL) function, and run the following commands on the switching plane CLI so that the switch module can communicate with the FTP server properly:
      NOTE:

      Skip this step if you are logging in to the switch module with a network port.

      <Fabric>system-view

      [Fabric]interface MEth 0/0/1

      [Fabric-MEth0/0/1]ip address 192.168.100.123 24

      [Fabric-MEth0/0/1]display this

      # 
      interface MEth0/0/1 
       ip address 192.168.100.123 255.255.255.0 
      # 
      return     

      [Fabric-MEth0/0/1]quit

      [Fabric]quit

    2. Configure a gateway address for the switching plane if the configured IP address and the FTP server address are not on the same network segment. To configure this address, run the following command on the HMM CLI:

      smmset -l swiN:fruM -d route -v targetvalue maskvalue gatewayvalue

      The parameters in the command are described as follows:

      • N: specifies the slot number of a switch module. Its value ranges from 1 to 4, indicating switch module slots 1E, 2X, 3X, and 4E from left to right respectively.
      • M: specifies the ID of a switching plane. The value 2 indicates the Ethernet switching plane.
      • targetvalue: specifies the target network segment IP address of the switching plane.
      • maskvalue: specifies the subnet mask of the switching plane.
      • gatewayvalue: specifies the gateway address of the switching plane.

        For example, if the IP address is 192.168.112.1, run the following command:

        smmset -l swi3:fru2 -d route -v 0.0.0.0 0.0.0.0 192.168.112.1

  3. Obtain logs.

    1. Collect logs.

      <Fabric>display diagnostic-information diag-info.txt

      Now saving the diagnostic information to the device                            
       
      Info: The diagnostic information was saved to the device successfully.     

      <Fabric>save logfile

      Save log file successfully.
    2. View the log file system.

      <Fabric>dir

      Directory of flash:/ 
        Idx  Attr     Size(Byte)  Date        Time(LMT)  FileName  
          0  -rw-          1,075  Apr 01 2000 23:55:17   private-data.txt 
          1  -rw-          1,260  Apr 02 2000 00:00:13 hostkey 
          2  -rw-            540  Apr 02 2000 00:00:17 serverkey 
          3  -rw-        148,848  Sep 08 2015 11:22:40 diag-info.txt 
      16,129 KB total (15,976 KB free)     

      <Fabric>dir flashvx:/logfile/

      Directory of flashvx:/logfile/                                                   
        Idx  Attr     Size(Byte)  Date        Time(LMT)  FileName                      
          0  -rw-      2,939,200  Apr 01 2000 23:55:02 log.dblg                      
          1  -rw-         95,988  Jan 07 2014 19:16:00 2014-01-07.19-13-54.log.zip 
          2  -rw-        172,081  Jan 07 2014 21:35:14 2014-01-07.21-31-56.log.zip 
          3  -rw-      2,716,484  Jan 23 2014 01:35:24 log.log                       
        4  -rw-      4,589,648  Jan 17 2014 12:30:48 2000-04-01.23-55-08.dblg          
    3. Enter the user name and password to log in to the FTP server.

      The following uses the FTP server address 200.1.1.126 and the user name root as examples:

      <Fabric>ftp 200.1.1.126

      Trying 200.1.1.126                                            
      Press CTRL+K to abort                                                   
      Connected to 200.1.1.126                                               
      220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user 
      User(200.1.1.126 none):root                                           
      331 Give me your password, please                                       
      Enter password:                                                         
      230 Logged in successful                                               
      [ftp]
      NOTE:

      The FTP server address is determined by the user IP address. Ensure that the FTP server address and the management IP address of the switch module are on the same network segment.

    4. Convert the log file into a binary file for transfer.

      [ftp]binary

    5. Obtain the log file.

      [ftp]put flash:/diag-info.txt

      200 PORT command okay 
      150 "F:\diag-info.txt" file ready to receive in IMAGE / Binary mode 
      226 Transfer finished successfully. 
      FTP: 148848 byte(s) sent in 0.280 second(s) 531.60Kbyte(s)/sec.      

      [ftp]lcd flashVX:/logfile

      The current local directory is flashVX:/logfile.     

      [ftp]mput *

      Error: The file name . is invalid. 
      Error: The file name .. is invalid. 
      200 PORT command okay 
      150 "F:\log.dblg" file ready to receive in IMAGE / Binary mode 
      226 Transfer finished successfully. 
      FTP: 1513938 byte(s) sent in 1.160 second(s) 1305.11Kbyte(s)/sec. 
      200 PORT command okay 
      150 "F:\log.log" file ready to receive in IMAGE / Binary mode 
      226 Transfer finished successfully. 
      FTP: 2689148 byte(s) sent in 1.940 second(s) 1386.15Kbyte(s)/sec. 
       
      [ftp]quit
    6. View the log file in the FTP directory on the PC.

Using the Switch Module CLI of the V8 Platform to Collect Ethernet Switching Plane Information

Use the CLI of an E9000 switch module to collect the following information about the V8 platform:

  • Logs
  • Debugging information
  • Trap information

For details about how to query the Ethernet switching plane version, see Querying the Software Version of an Ethernet Switching Plane.

Prerequisites

Conditions

  • You have installed wftpd32.exe, which is used to transfer files between different platforms, for example, from a PC to a switch module.
  • You have obtained the user name and password for logging in to the switching plane. The default user name is root, and the default user password is Huawei12#$.
  • You have obtained the values of the required parameters.
    Table 3-11 Required parameters

    Parameter

    Example Value

    IP addresses

    CX911, CX311, and CX915: 192.168.1.100

    CX912, CX210, and CX220: 10.77.77.77

    Subnet mask

    255.255.255.0

    Default gateway

    0.0.0.0

    NOTE:

    You can query and set IP addresses of all modules on the MM910 WebUI. For details about how to log in to the MM910 WebUI, see Logging In to the MM910 WebUI.

    • For MM910 earlier than (U54) 2.20, choose System Management > Network Management > Switch Module > IP Address.
    • For MM910 (U54) 2.20 or later, choose Chassis Settings > Network Settings > Switch Module.
Procedure
  1. Configure an FTP server.

    For details, see Configuring an FTP Server.

  2. Log in through the serial port or SOL, and run the following command on the Ethernet switching plane CLI to check whether the management network port IP address is configured:

    NOTE:

    Skip this step if you are logging in to the switch module with a network port.

    <HUAWEI>system-view

    [~HUAWEI]interface MEth 0/0/0

    [~HUAWEI-MEth0/0/0]display this

    • If the command output is as follows with no IP address, go to step 3:
      # 
      interface MEth0/0/0 
      # 
      return     
    • If the command output is as follows, with an IP address and the gateway information, go to step 4:
      # 
      interface MEth0/0/0 
       ip address 192.168.100.123 255.255.255.0 
      # 
      return     

  3. (Optional) To query and set the IP address of the management network port, log in to the Ethernet switching plane with a serial port or the Serial over LAN (SOL) function, and run the following commands on the switching plane CLI so that the switch module can properly communicate with the FTP server:

    NOTE:

    Skip this step if you are logging in to the switch module by using a network port.

    <HUAWEI>system-view

    [~HUAWEI]interface MEth 0/0/0

    [~HUAWEI-MEth0/0/0]ip address 192.168.100.123 24

    [~HUAWEI-MEth0/0/0]commit

    [~HUAWEI-MEth0/0/0]display this

    # 
    interface MEth0/0/0 
     ip address 192.168.100.123 255.255.255.0 
    # 
    return     

    [~HUAWEI-MEth0/0/0]quit

    [~HUAWEI]quit

  4. Obtain logs.

    1. View the log file system.

      <HUAWEI>system-view

      Enter system view, return user view with return command.

      [~HUAWEI]diagnose

      Warning: Enter diagnose view, return user view by pressing Ctrl+Z. 
      Info: The diagnose view is used to debug system hardware and software. Misuse of some commands in this view will affect system performance. Therefore, use these commands with the guidance of Huawei engineers.     

      [~HUAWEI-diagnose]collect diagnostic information

      Info: Succeeded in collecting diagnostic information in slot 3.

      [~HUAWEI-diagnose]display diagnostic-information diag-info.txt

      Now saving the diagnostic information to the device.......................................................................................................................................................... 
      Info: The diagnostic information was saved to the device successfully.

      [~HUAWEI-diagnose]return

      <HUAWEI>save logfile

      Info: Save logfile successfully.

      <HUAWEI>dir

      Directory of flash:/ 
       
        Idx  Attr     Size(Byte)  Date        Time       FileName                      
          0  drwx              -  Apr 07 2014 22:32:50 $_checkpoint                  
          1  dr-x              -  Feb 21 2014 15:03:54 $_security_info               
          2  -rw-    117,788,305  Jan 01 1970 00:03:53 xxx.cc 
          3  -rw-    117,784,209  Feb 21 2014 14:47:03 xxx.cc 
          4  -rw-     76,227,537  Feb 21 2014 14:41:45 xxx.cc 
          5  drwx              -  Jan 01 1970 00:00:19 POST                          
          6  -rw-         10,568  Feb 21 2014 18:20:01 cfg_from_smm                  
          7  -rw-          6,575  Mar 22 2014 04:14:27 cfg_local                     
          8  -rw-         19,435  Mar 22 2014 04:14:24 device.sys                    
          9  -rw-      1,130,184  Apr 08 2014 16:22:11 diag-info.txt                 
       10  drwx              -  Apr 08 2014 16:18:55 logfile                       
       11  -rw-          1,838  Mar 22 2014 04:14:24 vrpcfg.zip                    
       
      1,048,576 KB total (367,972 KB free)

      <HUAWEI>dir logfile/

      Directory of flash:/logfile/ 
       
        Idx  Attr     Size(Byte)  Date        Time       FileName                      
          0  -rw-      7,971,326  Apr 08 2014 16:35:00 diag.log                      
          1  -rw-        444,920  Feb 21 2014 18:23:11 diaglog_3_20140221182310.log.zip 
          2  -rw-      1,756,870  Apr 08 2014 16:18:55 diagnostic_information.zip    
          3  -rw-      4,269,737  Apr 08 2014 16:45:08 log.log                       
          4  -rw-        354,428  Dec 22 2013 11:32:34 log_3_20131222113233.log.zip  
          5  -rw-        353,715  Jan 16 2014 08:50:19 log_3_20140116085018.log.zip  
       
      1,048,576 KB total (367,972 KB free)     
    2. Query stack information.

      Record the queried slot numbers and roles of the stacked switch modules.

      <HUAWEI>display stack

      -------------------------------------------------------------------------------- 
      MemberID Role     MAC              Priority Device Type     Bay/Chassis        
                                                                                       
      -------------------------------------------------------------------------------- 
      2        Standby  dcd2-fcf8-5600 100        CX910           2X/300             
                                                                                       
      3        Master dcd2-fcf8-55c0 100        CX910           3X/300             
                                                                                       
      --------------------------------------------------------------------------------     

      Role indicates the switch module role. The value of Role is Master, Standby, or Slave, indicating the master switch module, standby switch module, or slave switch module. Bay in Bay/Chassis indicates the switch module slot number.

    3. Obtain the log file.

      <HUAWEI>ftp 192.168.100.122

      Trying 192.168.100.122 ...                                                       
      Press CTRL+K to abort                                                            
      Connected to 192.168.100.122.                                                    
      220 WFTPD 2.0 service (by Texas Imperial Software) ready for new user            
      User(192.168.100.122:(none)):huawei                                             
      331 Give me your password, please                                                
      Enter password:                                                                  
      230 Logged in successfully       

      [ftp]binary

      200 Type is Image (Binary)

      # On the FTP server, create a log receiving directory for the master switch module in the stack. Replace 3 in swi3 with the actual stack ID of the master switch module. The stack ID is the switch module slot ID. (If the switch modules are not stacked, create a log receiving directory for the current switch module by replacing 3 in swi3 with the slot ID of the current switch module.)

      [ftp]mkdir swi3

      [ftp]cd swi3

      [ftp]put flash:/diag-info.txt

      200 Port command successful. 
      150 Opening data connection for diag-info.txt. 
      /     100% [***********]  
      226 File received ok 
       
      FTP: 1756870 byte(s) send in 0.308 second(s) 5570.431Kbyte(s)/sec.

      [ftp]mput flash:/logfile/*

      200 Port command successful. 
      150 Opening data connection for diag.log. 
      /     100% [***********]  
      226 File received ok 
       
      FTP: 7971326 byte(s) send in 0.798 second(s) 9755.010Kbyte(s)/sec. 
      200 Port command successful. 
      150 Opening data connection for diaglog_3_20140221182310.log.zip. 
      /     100% [***********]  
      226 File received ok 
       
      FTP: 444920 byte(s) send in 0.113 second(s) 3845.061Kbyte(s)/sec. 
      200 Port command successful. 
      150 Opening data connection for diagnostic_information.zip. 
      /     100% [***********]  
      226 File received ok 
       
      FTP: 1756870 byte(s) send in 0.308 second(s) 5570.431Kbyte(s)/sec. 
      200 Port command successful. 
      150 Opening data connection for log.log. 
      /     100% [***********]  
      226 File received ok 
       
      FTP: 4272491 byte(s) send in 3.492 second(s) 1194.832Kbyte(s)/sec. 
      200 Port command successful. 
      150 Opening data connection for log_3_20131222113233.log.zip. 
      /     100% [***********]  
      226 File received ok 
       
      FTP: 354428 byte(s) send in 0.238 second(s) 1454.289Kbyte(s)/sec. 
      200 Port command successful. 
      150 Opening data connection for log_3_20140116085018.log.zip. 
      /     100% [***********]  
      226 File received ok 
       
      FTP: 353715 byte(s) send in 0.265 second(s) 1303.486Kbyte(s)/sec.

      [ftp]cd ..

      # On the FTP server, create a log receiving directory for the standby or slave switch module in the stack. Replace 2 in swi2 with the actual stack ID of the standby or slave switch module. The stack ID is the switch module slot ID. (If the switch modules are not stacked, log in to the remaining switch modules and follow the preceding procedure to collect logs.)

      [ftp]mkdir swi2

      [ftp]cd swi2

      [ftp]mput 2#flash:/logfile/*

      [ftp]cd ..

      [ftp]quit

      221 Windows FTP Server (WFTPD, by Texas Imperial Software) says goodbye 
      <HUAWEI>
      NOTE:
      • When you use the mput command in the FTP CLI, 2#flash:/ indicates the flash root directory of the switch module with the ID 2. You can obtain the stack ID and role information by using the display stack command.
      • The flash root directory of the primary switch module in a stack is flash:/.
      • If multiple switch modules are displayed after running the display stack command, obtain the log file of each switch module.
    4. View the log file in the FTP directory on the PC.

Using the Switch Module Web Tools to Collect FC Switching Plane Information (MX510)

Use the switch module Web Tools to collect information about a Fibre Channel (FC) switching plane (MX510).

This section applies to the following switch modules: CX311, CX911, and CX915.

Prerequisites
  • The management IP address of an FC switch module and the server IP address can ping each other.
  • You have logged in to the Web Tools of the FC switching plane. For details, see Logging In to the Web Tools of the MX510.
  • You have obtained the user name and password for exporting the dump_support log file. The user name is images, and the default user password is Huawei12#$.
  • You have obtained the values of the required parameters.
    Table 3-12 Required parameters

    Parameter

    Example Value

    IP address

    192.168.1.100

    Subnet mask

    255.255.255.0

    Default gateway

    0.0.0.0

Procedure
  1. In the Web Tools window, choose Switch > Download Support File. See Figure 3-3.

    Figure 3-3 Web Tools window

  2. Select the directory for storing the log file, and click Start.

    The log file download starts. If Status is "Support file saved", the log file has been successfully exported, as shown in Figure 3-4.

    Figure 3-4 Download Support File

Using the Switch Module CLI to Collect Information About an FC Switching Plane (MX510)

Use the switch module CLI to collect information about a Fibre Channel (FC) switching plane (MX510).

This section applies to the following switch modules: CX311, CX911, and CX915.

Prerequisites
  • A PC is connected properly to the management network port on the server using a network cable.
  • You have installed CoreFTPServer.exe or msftpsrvr.exe, which is used to transfer files between different platforms, for example, from a PC to a switch module. The following uses msftpsrvr.exe as an example.
NOTE:

If the MX510 firmware version is earlier than 9.8.2.6.0, you can use the FTP tool WFTPD to collect information. For details, see Configuring an FTP Server.

  • You have obtained the user name and password for logging in to the switching plane. The default user name is admin, and the default user password is Huawei12#$.
  • You have obtained the values of the required parameters.
    Table 3-13 Required parameters

    Parameter

    Example Value

    IP addresses

    192.168.1.100

    Subnet mask

    255.255.255.0

    Default gateway

    0.0.0.0

Procedure
  1. Configure an SFTP server.

    For details, see Using SFTP to Transfer Files.

  2. Log in to the MX510.

    For details, see Logging In to a Server Over a Network Port by Using PuTTY or Logging In to a Compute Node, Pass-through Module, or Switch Module over SOL. Access the FC switching plane CLI.

  3. Query and set the management IP address.

    1. To query the management IP address, run the following command on the CLI of the FC switching plane:

      FCoE_GW: admin> show version

             ***************************************************** 
             *                                                   * 
             *       Command Line Interface SHell  (CLISH)       * 
             *                                                   * 
             ***************************************************** 
       
             SystemDescription Huawei FCoE-FC Gateway module 
             HostName            <undefined> 
             Eth1IPv4NetworkAddr 192.168.96.96 
             Eth1IPv6NetworkAddr fe80::2c0:ddff:fe24:21fe 
             MAC1Address         00:c0:dd:24:21:fe 
             WorldWideName       10:00:00:c0:dd:24:21:fd 
             SerialNumber        2198080446DQCB46F882 
             SymbolicName        FCoE_GW 
             ActiveSWVersion     V9.8.0.10.0 
             ActiveTimestamp     Fri May 17 21:19:51 2013 
             POSTStatus          Passed 
             SwitchMode          Full Fabric

      Eth1IPv4NetworkAddr indicates the management IP address.

    2. To ensure that the switch module can communicate with the configured SFTP server, set the management IP address as follows:

      FCoE_GW: admin> admin start

      FCoE_GW (admin): admin> set setup system ipv4

      Set a static IPv4 address as prompted.

      EthIPv4NetworkDiscovery (1=Static, 2=Bootp, 3=Dhcp, 4=Rarp) :1 
      EthIPv4NetworkAddress (dot-notated IP Address) : 192.168.101.123 
      EthIPv4NetworkMask (dot-notated IP Address) : 255.255.255.0 
      EthIPv4GatewayAddress (dot-notated IPv4 Address) : 192.168.101.254 
      Do you want to save and activate this system setup? (y/n): [n] y
    3. Query the static IPv4 address of the FCoE gateway.

      FCoE_GW (admin): admin> show setup system ipv4

      The command output is as follows:

      System Information 
        ------------------ 
        Eth1IPv4NetworkDiscovery  Static 
        Eth1IPv4NetworkAddress    192.168.101.123 
        Eth1IPv4NetworkMask       255.255.255.0 
        Eth1IPv4GatewayAddress    192.168.101.254     

  4. Obtain logs.

    1. To collect logs and save the logs to the local PC, run the following command:

      FCoE_GW: admin> create support

    2. Set the log collection parameters as prompted. See Figure 3-5.

      The key information in Figure 3-5 is described as follows:

      • 192.168.100.214 is the IP address of the local PC.
      • The user name and password for the SFTP server are both vxworks.
      • If you press Enter when the CLI prompts you to specify the directory for storing the dump file, the dump file will automatically be downloaded to the default directory on the SFTP server.
    Figure 3-5 Collecting logs

Using the Switch Module CLI to Collect Information About an FC Switching Plane (MX210 or MX220)

Use the switch module CLI to collect information about a Fibre Channel (FC) switching plane (MX210 or MX220).

The switch module in this section can be a CX210, CX220, CX912, or CX916. The FC switching plane of the CX210 and CX912 is MX210, and the FC switching plane of the CX220 and CX916 is MX220.

Prerequisites
  • A PC is connected properly to the management network port on the server using a network cable.
  • You have installed CoreFTPServer.exe or msftpsrvr.exe, which is used to transfer files between different platforms, for example, from a PC to a switch module. The following uses msftpsrvr.exe as an example.
  • You have obtained the user name and password for logging in to the switching plane. The default user name is admin, and the default user password is Huawei12#$.
  • You have obtained the values of the required parameters.
    Table 3-14 Required parameters

    Parameter

    Example Value

    IP address

    10.77.77.77

    Subnet mask

    255.255.255.0

    Default gateway

    0.0.0.0

Procedure
  1. Configure an SFTP server.

    For details, see Using SFTP to Transfer Files.

  2. Log in to the MX210 or MX220.

    For details, see Logging In to a Server Over a Network Port by Using PuTTY or Logging In to a Compute Node, Pass-through Module, or Switch Module over SOL. Access the FC switching plane CLI.

  3. Run the ipaddrset command to set the management IP address and then run the ipaddrshow command to check whether the IP address is correct.

    • IPv4

      FC_SW:admin> ipaddrset

      Ethernet IP Address [10.77.77.77]:10.32.53.47

      Ethernet Subnetmask [255.255.255.0]:255.255.240.0

      Fibre Channel IP Address [none]:

      Fibre Channel Subnetmask [none]:

      Gateway IP Address [0.0.0.0]:10.32.48.1

      DHCP [Off]:

      IP address is being changed...Done.

      FC_SW:admin> ipaddrshow

      FC_SW:admin> ipaddrshow 
      Ethernet IP Address: 10.32.53.47 
      Ethernet Subnetmask: 255.255.240.0 
      Fibre Channel IP Addresss: none  
      Fibre Channel Subnetmask: none  
      Gateway IP Address 10.32.48.1 
      DHCP: Off
    • IPv6

      FC_SW:admin> ipaddrset -ipv6 --add fd00:60:69bc:82:205:33ff:fed7:f6fe/64

      IP address is being changed...Done.

      FC_SW:admin> ipaddrshow

      SWITCH 
      Ethernet IP Address: 10.20.24.55 
      Ethernet Subnetmask: 255.255.240.0 
      Gateway IP Address: 10.20.16.1 
      DHCP: Off 
      IPv6 Autoconfiguration Enabled: No 
      Local IPv6 Addresses: 
      static fd00:60:69bc:82:205:33ff:fed7:f6fe/64 preferred 
      IPv6 Gateways: fe80:21b:3dff:fe0b:7800 fe80:21b:edff:fe0b:2400
    NOTE:

    The current environment uses IPv4 addresses, so you can skip setting the IPv6 address.

  4. Collect the supportsave logs on the CLI.

    1. To save logs to the SFTP server, run the following command:

      FC_SW:admin> supportsave

      This command collects RASLOG, TRACE, supportShow, core file, FFDC data 
      and then transfer them to a FTP/SCP/SFTP server or a USB device. 
      This operation can take several minutes. 
      NOTE: supportSave will transfer existing trace dump file first, then 
      automatically generate and transfer latest one. There will be two trace dump 
      files transferred after this command. 
      OK to proceed? (yes, y, no, n): [no] y
    2. Set the log collection parameters as prompted.
      • Host IP or Host Name: specifies the IP address of the SFTP server, which is the target device for storing logs.
      • User Name: specifies the SFTP server user name, which is used to log in to the target device.
      • Password: specifies the SFTP server password, which is used to log in to the target device.
      • Protocol: specifies the transfer protocol. Select SFTP.
      • Remote Directory: specifies the directory for storing log files on the SFTP server. You will need to create /support in the home directory of the SFTP server, and set Remote Directory to /support.

        (Optional) If the message Do you want to continue with CRA (Y/N) is displayed, enter N to start log collection.

      Figure 3-6 Collecting logs

    If the message SupportSave completed is displayed, log collection is successful.

Translation
Download
Updated: 2019-02-25

Document ID: EDOC1000041338

Views: 71694

Downloads: 3788

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