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

CX910 Switch Module V100R001C00 User Guide 22

This document describes the CX910 10GE switch module (CX910 for short) of the Tecal E9000 server in terms of its features, installation, removal, and configuration. This document applies to the CX910 whose GE/10GE switching planes use the software versions of 1.1.x.x.x, and 1.23-1.99.
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).
Using the CLI to Collect 10GE switching plane Information

Using the CLI to Collect 10GE switching plane Information

Scenarios

Use the CLI to collect the following information:

  • Logs
  • Debugging information
  • Trap information

Prerequisites

Conditions

WFTPD 4.2.4.610 or later has been installed. wftpd32.exe is a cross-platform tool used to transfer files from a PC to switch modules. This tool is a piece of third-party free software. Obtain it yourself.

Data

Data list

Parameter

Example Value

IP addresses

192.168.1.100

Subnet mask

255.255.255.0

Default gateway

0.0.0.0

The default user name of a switching plane is root, and the default password is Huawei12#$.

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.

    NOTE:

    WFTPD 4.2.4.610 or later has been installed.

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

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

      Skip this step if you log in to the switch module by using 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. If the configured IP address and the FTP server address are not on the same network segment, run the following command on the HMM CLI to configure a gateway address for the 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. 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. Log in to the FTP server, and enter the user name and password.

      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.

    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.

Translation
Download
Updated: 2018-09-20

Document ID: EDOC1000015891

Views: 14197

Downloads: 335

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