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

Command Reference for Block

OceanStor Dorado V3 Series V300R002

This document is applicable to OceanStor Dorado3000 V3, Dorado5000 V3, Dorado6000 V3 and Dorado18000 V3. Based on the CLI provided by the DeviceManager, this document describes how to use various commands classified by functions and how to set the CLI and manage the storage system through these commands.
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).
Logging In to the CLI of the Storage System

Logging In to the CLI of the Storage System

After logging in to the CLI of a storage system, you can query, set, manage, and maintain the storage system. This document describes how to log in to the CLI using the serial port in Linux, and using the serial port or management network port in Windows.

You can log in to the Storage System by either of the following methods:

  • Through the serial port

    After the controller enclosure is connected with the maintenance terminal using serial cables, you can log in to the CLI of the storage device using a terminal program (such as PuTTY).

  • Through the management network port
    • You can log in to CLI through IPv4 or IPv6.
    • After connecting the controller enclosure to the maintenance terminal by using a network cable, you can log in to the storage system by using any type of remote login software that supports the SSH (This document uses the PuTTY software as an example).
    • The initial IPV4 address of the management network ports: controller A is 192.168.128.101, controller B is 192.168.128.102, and the default subnet mask is 255.255.255.0.
    • Make sure that the IP address of the controller enclosure's management network port is in the same network segment as that of the maintenance terminal. Otherwise, you can modify the IP address of the management network port through a serial port. For details, see the change system management_ip command.

Logging In to the CLI Through the Serial Port (Windows)

NOTE:
  • This document uses the PuTTY software as an example. You can download PuTTY from chiark website.
  • You are advised to use the latest version of PuTTY, otherwise you may fail to log in to the storage system.
  1. Run the PuTTY software. The PuTTY Configuration dialog box is displayed, as shown in Figure 1-1.
    Figure 1-1 The dialog box of PuTTY Configuration

  2. Set Connection type to Serial. In the Serial line text box, enter the name of the serial port that connects the maintenance terminal to the storage system, for example, COM1. In Speed, enter 115200.

    You can query the serial port that connects the maintenance terminal to the storage system as follows (Windows 7 is used as an example):

    1. Right-click the icon of Computer on the desktop of the maintenance terminal and choose Manage from the shortcut menu.
    2. In the navigation tree of the Computer Manager dialog box, choose System Tools > Device Manager.
    3. Click Ports. The serial port that connects the maintenance terminal to the storage system, for example, COM1.

      There may be multiple serial port names, such as COM1, COM2, and COM3, on the maintenance terminal. Try these ports until you can successfully log in to the storage system.

  3. Click OK. When the connection succeeds, the following output is displayed.
    Authorized users only. All activities may be monitored and reported. 
    Storage Login:
  4. Enter the user name and password as prompted. You are required to change the password upon your initial login to ensure system security. If the login succeeds, the following information is displayed.
    Storage Login: admin 
     
    Authorized users only. All activity may be monitored and reported. 
    Using keyboard-interactive authentication. 
    password: 
     
    WARNING: You have accessed the system operated by XXX. 
    You are required to have a personal authorisation from the system administrator before you use this computer. Unauthorised access to or misuse of this system is prohibited. 
     
    For security purposes, please change the initial password and log in to the system using the new password. 
    Old password:************* 
    New password:************** 
    Reenter password:************** 
     
      System Name   : xxx.Storage 
      Health Status : Normal 
      Running Status  : Normal 
      Total Capacity  : 6.240TB 
      SN              : 210235G6TFZ0C7000045 
      Location        : 
      Product Model : XXXXX 
      Product Version : VXXXRXXXCXX 
      Time            : XXXX-XX-XX/XX:XX:XX +08:00 
    admin:/>
NOTE:
  • The default user name and password of super administrator are admin and Admin@storage respectively.
  • Product Model and Product Version vary with the actual device you have logged in to. The actual interface display prevails.
  • You are advised to change your login password periodically in the future by executing the change user_password command. This reduces the password leakage risks.
  • For domain authentication users, the user can log in to the storage system by typing ssh domain/Domain user name with the domain user password.

Logging In to the CLI Using the Serial Port (Linux)

NOTE:
  • This document uses the Minicom software as an example. You can download Minicom from its official website.
  • This document uses SSH Secure Shell Client to upload the Minicom installation package to the Linux host. You can download SSH Secure Shell Client from its official website.
  • You must enable SSH on the Linux host. The default port ID is 22.
  1. Check whether Minicom has been installed on the host.

    Log in to the Linux client and run the rpm -qa | grep minicom command.

    • If Minicom has been installed, its version is returned, for example:
      [root@localhost ~]# rpm -qa |grep minicom 
      [root@localhost ~]# minicom-2.3-27.24.4.1

      Go to 5 to configure Minicom.

    • If Minicom is not installed, no information will be returned. Go to 2, 3 and 4 to install it.
  2. Upload the Minicom and rzsz installation package to the Linux host. This document uses SSH Secure Shell Client on a Windows host to upload the packages to the Linux host.
    1. Install SSH Secure Shell Client on a Windows host. Double-click the Secure File Transfer Client shortcut to run the software.
    2. Click Quick Connect on the menu bar. Input the Host Name, User Name, Port, and Authentication of the Linux host and click connect. Then enter the password to access the Linux host.

      NOTE:

      The default port is 22.

    3. Click on the menu bar. The file transfer page is displayed.

      By default, Local Name is the file directory on the Windows host and Remote Name is the file directory on the Linux host.

    4. Select the Minicom installation package and rzsz installation package on the Windows host, right-click on it, and select upload to upload the installation packages to the Linux host.
  3. Install the rzsz software.

    On the Linux client, run the rpm -ivh Installation package name command.

    [root@localhost minicom]# rpm -ivh rzsz-0.12.20-853.2.i586.rpm 
    Preparing...     #############################################[100%] 
     1:rzsz        #############################################[100%]
  4. Install the Minicom software.

    On the Linux client, run the rpm -ivh Installation package name command.

    [root@localhost minicom]# rpm -ivh minicom-2.3-27.24.4.1.x86_64.rpm 
    Preparing...     #############################################[100%] 
     1:minicom     #############################################[100%]
  5. Configure Minicom.

    After Minicom has been installed, configure Minicom to connect the Linux host to the storage system.

    1. Log in to the Linux client and run the minicom -s command. The configuration page is displayed.

    2. Select Serial port setup and press Enter.

    3. Configure serial port parameters.
      1. Configure the serial port device.

        Press A. Input /dev/ttS0 in Serial Device and press Enter.

      2. Configure the Baud rate for the serial port.

        Press E. The Comm Parameters page is displayed. Generally, the Baud rate of the storage system is 115200. Press E and select 115200. Then press Enter to return to the configuration page.

      3. On the configuration page, click Save setup as dfl to save the configurations and then click Exit.
  6. After configuring Minicom, run the minicom command on the Linux client. The following message is returned:
    Authorized users only. All activities may be monitored and reported. 
    Storage login:
  7. Enter the user name and password as prompted. The system asks you to change the password upon the first login. Change the password immediately to ensure system security. The following information is displayed if the login is successful:
    Storage login: admin 
     
    Authorized users only. All activity may be monitored and reported. 
    Using keyboard-interactive authentication. 
    password: 
     
    WARNING: You have accessed the system operated by XXX. 
    You are required to have a personal authorisation from the system administrator before you use this computer. Unauthorised access to or misuse of this system is prohibited. 
     
    For security purposes, please change the initial password and log in to the system using the new password. 
    Old password:************* 
    New password:************** 
    Reenter password:************** 
     
      System Name     : xxx.Storage 
      Health Status : Normal 
      Running Status  : Normal 
      Total Capacity  : 6.240TB 
      SN              : XXXXXXXXXXXXXXXXXXXXXXXXX 
      Location        : 
      Product Model : XXXXX 
      Product Version : XXXXX 
      Time            : XXXX-XX-XX/16:38:22 +08:00 
    admin:/>
NOTE:
  • The default user name and password of super administrator are admin and Admin@storage respectively.
  • Product Model and Product Version vary with the actual device you have logged in to. The actual interface display prevails.
  • You are advised to change your login password periodically in the future by executing the change user_password command. This reduces the password leakage risks.
  • For domain authentication users, the user can log in to the storage system by typing ssh domain/Domain user name with the domain user password.

Logging In to the CLI Through the Management Network Port (Running CLI commands interactively)

NOTE:
  • This document uses the PuTTY software as an example. You can download PuTTY from chiark website.
  • You are advised to use the latest version of PuTTY, otherwise you may fail to log in to the storage system.
  1. Run the PuTTY software. The PuTTY Configuration dialog box is displayed, as shown in Figure 1-2.
    Figure 1-2 The dialog box of PuTTY Configuration

  2. Select Session. Type the IP address of the management network port in the Host Name (or IP address) text box in the Specify the destination you want to connect to area. The IP address 192.168.6.96 is used as an example. Set Connection type to SSH.
  3. Click Open, and the interface is displayed, and the following output is displayed.
    login as:
  4. Enter the user name and password as prompted. You are required to change the password upon your initial login to ensure system security. If the login succeeds, the following information is displayed.
    login as: admin 
     
    Authorized users only. All activity may be monitored and reported. 
    Using keyboard-interactive authentication. 
    password: 
     
    WARNING: You have accessed the system operated by XXX. 
    You are required to have a personal authorisation from the system administrator before you use this computer. Unauthorised access to or misuse of this system is prohibited. 
     
    For security purposes, please change the initial password and log in to the system using the new password. 
    Old password:************* 
    New password:************** 
    Reenter password:************** 
     
      System Name     : xxx.Storage 
      Health Status : Normal 
      Running Status  : Normal 
      Total Capacity  : 6.240TB 
      SN              : 210235G6TFZ0C7000045 
      Location        : 
      Product Model : XXXXX 
      Product Version : VXXXRXXXCXX 
      Time            : 2014-04-09/16:38:22 +08:00 
    admin:/>
NOTE:
  • The default user name and password of super administrator are admin and Admin@storage respectively.
  • Product Model and Product Version vary with the actual device you have logged in to. The actual interface display prevails.
  • You are advised to change your login password periodically in the future by executing the change user_password command. This reduces the password leakage risks.
  • For domain authentication users, the user can log in to the storage system by typing ssh domain/Domain user name with the domain user password.

Logging In to the CLI Through the Management Network Port (Running CLI commands remotely)

NOTE:
  • This document uses the PuTTY software as an example. You can download PuTTY from chiark website.
  • You are advised to use the latest version of PuTTY, otherwise you may fail to log in to the storage system.
  1. Run the PuTTY software. The PuTTY Configuration dialog box is displayed, as shown in Figure 1-3.
    Figure 1-3 The dialog box of PuTTY Configuration

  2. Select Session and set parameters as shown in Figure 1-4.
    Figure 1-4 Setting the Session parameter

    • In the Specify the destination you want to connect to area, in Host Name (or IP address), enter the IP address of the management network port that is connected with the maintenance terminal. For example, 192.168.6.96.
    • Select Connection type as SSH.
    • In Close Windows on exit, select Never.
  3. Select SSH. In Remote command, enter the command that needs to be executed, as shown in Figure 1-5.
    Figure 1-5 Options remote command

  4. Click Open, and the interface is displayed, and the following output is displayed.
    login as:
  5. Enter the user name and password as prompted. You are required to change the password upon your initial login to ensure system security. If the login succeeds, the following information is displayed.
    login as: admin 
     
    Authorized users only. All activity may be monitored and reported. 
    Using keyboard-interactive authentication. 
    password: 
     
    WARNING: You have accessed the system operated by XXX. 
    You are required to have a personal authorisation from the system administrator before you use this computer. Unauthorised access to or misuse of this system is prohibited. 
     
    For security purposes, please change the initial password and log in to the system using the new password. 
    Old password:************* 
    New password:************** 
    Reenter password:************** 
    #show system general 
     
      System Name         : xxx.Storage 
      Health Status       : Normal 
      Running Status      : Normal 
      Total Capacity      : 6.240TB 
      SN                  : 210235G6TFZ0C7000045 
      Location            : 
      Product Model       : XXXXX 
      Product Version     : VXXXRXXXCXX 
      High Water Level(%) : XX 
      Low Water Level(%)  : XX 
      WWN                 : 2100d494e80e9df2 
      Time                : 2017-05-18/01:02:25 UTC+08:00 Time            : 2014-04-09/16:38:22 +08:00 
      Patch Version       : SPCXXX     
NOTE:
  • The default user name and password of super administrator are admin and Admin@storage respectively.
  • Product Model and Product Version vary with the actual device you have logged in to. The actual interface display prevails.
  • You are advised to change your login password periodically in the future by executing the change user_password command. This reduces the password leakage risks.
  • Only CLI commands are supported (running CLI commands remotely in the diagnostic view is not supported).
  • The total length of remotely run commands varies with the clients. When the length exceeds 2,097,152 characters, the command is truncated (the client needs to support 2,097,152 characters).
  • For domain authentication users, the user can log in to the storage system by typing ssh domain/Domain user name with the domain user password.
Translation
Download
Updated: 2019-07-16

Document ID: EDOC1100049140

Views: 116080

Downloads: 134

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