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

Installation Guide

OceanStor 5000, 5000F, 6000, and 6000F V5 Series V500R007

This document is applicable to OceanStor 5110 V5, 5110F V5, 5300 V5, 5300F V5, 5500 V5, 5500F V5, 5600 V5, 5600F V5, 5800 V5, 5800F V5, 6800 V5, and 6800F V5 storage systems. It describes hardware installation of those storage systems for helping you easily and quickly finish the installation.
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

Logging In to the CLI

After logging in to the CLI of a storage system, you can query, set, manage, and maintain the storage system. On any maintenance terminal connected to a storage system, you can log in to the CLI by using PuTTY to access the IP address of the management network port on the controller of a storage system. Two authentication modes for a CLI login are Username+Password and Public Key. This section describes how to use the two authentication modes to log in to the CLI.

Logging In to the CLI of the Storage System (User Name + Password)

This document uses Windows Server 2008 as an example. For maintenance terminal running other versions of operating systems, adjust the operations based on actual conditions.

You can log in to the storage system by either of the following methods:

  • Through the serial port

    The maintenance terminal has been connected to the serial port on the storage device through a serial cable.

  • 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).
    • For a 2 U controller enclosure, the default IP addresses of the management network ports on controllers A and B are respectively 192.168.128.101 and 192.168.128.102, and the default subnet mask is 255.255.0.0. For a 3 U or 6 U controller enclosure, the default IP addresses of the management network ports on management modules 0 and 1 are respectively 192.168.128.101 and 192.168.128.102, and the default subnet mask is 255.255.0.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 by running the change system management_ip command.
Logging In to the CLI Through the Serial Port
NOTE:
  • This document uses the PuTTY software as an example. You can download PuTTY from the 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 10-4.

    Figure 10-4 Dialog Box of PuTTY Configuration

  2. In Connection type, select Serial. In Speed, enter 115200.
  3. Click Open. When the connection succeeds, the following output is displayed.
    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 Huawei. 
    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     : Huawei.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 the 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 password leakage risks.
  • If you forget the password as an administrator or a read-only user, contact the super administrator to run change user to reset the password. If you forget the password as a super administrator (admin by default), contact root administrator _super_admin to log in to the CLI through a serial port and run initpasswd to reset the password.
Logging In to the CLI Through the Management Network Port
NOTE:
  • This document uses the PuTTY software as an example. You can download PuTTY from the 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 10-5.
    Figure 10-5 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 Huawei. 
    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     : Huawei.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 the 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 password leakage risks.
  • If you forget the password as an administrator or a read-only user, contact the super administrator to run change user to reset the password. If you forget the password as a super administrator (admin by default), contact root administrator _super_admin to log in to the CLI through a serial port and run initpasswd to reset the password.

Logging In to the CLI of the Storage System Using a Public Key

This section uses PuTTY as an example to describe how to generate public and private keys as well as configure public key authentication to log in to the CLI.

Prerequisites
  • Only a super administrator has the permission to modify users' authentication mode for logging in to the CLI.
  • Public key authentication for logging in to the CLI is configured for local users only, not for domain users.
Precautions
  • After a private key is generated, keep it secure.
  • Change the public key periodically. Use the new private-public key pair for login authentication to improve system security.
Procedure
  1. The super administrator generates a private-public key pair for a local user.

    1. Run the puttygen.exe file.

      Go to the PuTTY Key Generator main window, as shown in Figure 10-6.

      Figure 10-6 Main window of the generator for a private-public key pair

    2. In the Parameters area in the lower part of the page, set Type of key to generate to SSH-2 RSA or SSH-2 DSA, and set Number of bits in a generated key to an integer from 2048 to 8192.
    3. Click Generate and move the cursor over the blank area in the lower part of the Key area to generate a public key.

      The public key will be displayed in the area, as shown in Figure 10-7.

      Figure 10-7 Generating the public key

    4. Copy and save the public key to the local path.
    5. (Optional) In Key passphrase, enter a password to encrypt the private key. In Confirm passphrase, enter the password again.
      NOTE:

      For the security of the private key file, you are advised to configure a secure password to encrypt the private key file.

    6. The method to generate the private key file varies with the tool used to log in to the CLI.
      • If you use PuTTY to log in to the CLI, click Save private key and save the private key file to the local path, as shown in Figure 10-8.
      Figure 10-8 Generating the private key
      • If you use the other tools to log in to the CLI, choose Conversions > Export OpenSSH key and save the private key file to the local path, as shown in Figure 10-9.
      Figure 10-9 Generating the private key

  2. The super administrator modifies the login authentication mode of local users.

    1. Log in to the CLI of a storage system as the super administrator.
    2. Run the change user_ssh_auth_info general user_name=test123 auth_mode=publickey command to modify users' modification mode to public key. user_name indicates the user name of the login authentication mode to be modified.
    3. Copy the locally saved public key to Public key on the CLI as instructed, and press Enter.

      After executing the command successfully, users map the private key to the public key to log in to the CLI.

       
      admin:/>change user_ssh_auth_info general user_name=test123 auth_mode=publickey 
      CAUTION:Only public keys generated using the SSH-2 RSA/DSA encryption algorithm and using keys whose lengths range from 2048 to 8192 bits are supported. 
      Public key:ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQPLuhb/KuHbyZi1n7yX6N3v5KG0JX8XdDnX0dfhN4yP7V+WXeqRt93YGepnsxIuvve1QCms3jxT8uy2kDMwRY6opLRV2qh5QCk1M54owpdnjwphs1g2oKyddt5iZ7xl0svZU7gfR2qP4WgGI8lBa9rA8bQlZWOd+mW6OJ80Wey37FcyZwNJpRNciTWfg2ju2sQuuvmtmum8hALQu930LbRWmTTtP33IAW/a1LMXjeEj49yhAAfL5OXVvyGMvDi3UfZJmWUZMF6eAG8joSiM50K8QuW7YUzW43t1LAXfGa7wBsp2u6HvckMXxzyr/3tanHkc1nuGZ55+Byw9mbnNn2Z root@Storage 
      Command executed successfully.     

  3. Local users configure PuTTY and log in to the storage system.

    1. Start PuTTY.

      Go to the PuTTY Configuration window.

    2. Click Session. In the right pane, type the IP address of a storage system's management network port in the Host Name (or IP address) text box. Set Port and Connection type to 22 and SSH respectively.
    3. Choose Connection > Data. In the Login details text box in the right pane, type the user name of the login authentication mode to be modified.
    4. Choose Connection > SSH > Auth. In the right pane, click Browse. Select and open the locally saved private key file.
    5. Click Open to log in to the CLI.
    NOTE:

    If the password of the private key is encrypted in 1.e, type the password when logging in to the CLI, and then press Enter.

    Using username "test123".
    
    Authorized users only. All activities may be monitored and reported.
    Authenticating with public key "imported-openssh-key"
    Passphrase for key "imported-openssh-key":
    Last login: XX XX XX XX:XX:XX XXXX from 192.168.18.158
    
    WARNING: You have accessed the system.
    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.
    
    System Name     : Huawei.Storage
    Health Status : Normal
    Running Status  : Normal
    Total Capacity  : 4.247TB
    SN            : XXXXXXXXXX
    Location        :
    Product Model : XXXX
    Product Version : VX00R00XC00
    Time            : XXXX-XX-XX/XX:XX:XX UTC+08:00
    Patch Version :
    test123:/>

Follow-up Procedure

To modify a user's login authentication mode to the Username+Password mode, run the change user_ssh_auth_info general user_name=test123 auth_mode=password command and use the original password to log in to the CLI of a storage system.

Translation
Download
Updated: 2019-07-11

Document ID: EDOC1000181531

Views: 94245

Downloads: 874

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