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

FusionStorage V100R006C20 Block Storage Service Software Installation Guide 07

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).
Authentication Using Environment Variables

Authentication Using Environment Variables

Scenarios

To avoid entering the username and password frequently, you can configure environment variables DswareTool_username and DswareTool_password.

Prerequisites

Conditions

You have logged in to the FusionStorage Manager (FSM) node as user dsware.

Data

Authentication username and password. The default username is cmdadmin, and the default password is IaaS@PORTAL-CLOUD9!.

Procedure

    1. Run the following command and enter the password as instructed to obtain the encrypted password.

      sh /opt/dsware/client/bin/dswareTool.sh --op encryptPwdByAes256 -encryptTool java

      Default authentication username: cmdadmin

      Default authentication password: IaaS@PORTAL-CLOUD9!

      Information similar to the following is displayed:

      Encrypted password is:CBA25C9E9CEBB19FD566EE7EE9BC51BF

    2. Run the following command, enter the encrypted ciphertext of the authentication user, and press Enter to save the encrypted ciphertext to the password variable.

      read -s password

      For example:

      dsware@FSM01:~> read -s password //After
      you press Enter, no information is displayed. Enter the encrypted ciphertext.
      When you enter the encrypted ciphertext, the entered information will not be displayed.

    3. Optional: Run the echo $password command to check whether the ciphertext configuration is correct. If the ciphertext configuration is incorrect, reconfigure the ciphertext.
    4. Run the following commands to configure the username and encrypted password as environment variables.

      export DswareTool_username=username

      export DswareTool_password=$password

      For example:

      dsware@FSM01:~> export DswareTool_username=cmdadmin
      dsware@FSM01:~> export DswareTool_password=$password

Translation
Download
Updated: 2019-06-29

Document ID: EDOC1100016637

Views: 29906

Downloads: 19

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