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 8.0.0 DSware Tool Command Reference 02

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 by Configuring Environment Variables

Authentication by Configuring Environment Variables

To avoid entering the user name and password frequently, you can configure environment variables DswareTool_username and DswareTool_password. Encrypt the entered password using the AES256 algorithm and use the obtained ciphertext as the value of environment variable DswareTool_password.

The default user name is admin.

The default password is Admin@storage.

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

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

    The default authentication user name is admin and the default password is Admin@storage.

    After the password of the authentication user is entered, the following encrypted ciphertext 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

  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 user name and encrypted ciphertext as environment variables:

    export DswareTool_username=admin

    export DswareTool_password=$password

An example is provided as follows:

dsware@SZX1000100896:/opt/dsware/client/bin> sh dswareTool.sh --op encryptPwdByAes256 -encryptTool java
Enter your password:
Retype your password:
[Wed Aug 3 20:53:10 CST 2016] DswareTool operation start.
------------------------------------------------------------
Encrypted password is:rQIOvMKSXExjjXTJC459C1D96C0CF0265F75A8AE9267147F
------------------------------------------------------------
[Wed Aug 3 20:53:10 CST 2016] DswareTool operation end.
You have new mail in /var/mail/root
dsware@SZX1000100896:read -s password
dsware@SZX1000100896:/opt/dsware/client/bin> export DswareTool_username=admin
You have new mail in /var/mail/root
dsware@SZX1000100896:/opt/dsware/client/bin> export DswareTool_password=$password

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1100081411

Views: 4889

Downloads: 3

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