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

HUAWEI CLOUD Stack 6.5.0 Alarm and Event Reference 04

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).
Changing the Email Gateway Password

Changing the Email Gateway Password

Scenarios

Before you change the password of the email gateway for connecting to SMN, you need to commission the email gateway using the gateway commissioning tool. If the commission is successful, you can change the password and verify services afterwards.

Prerequisites

  • You have obtained the username and password for logging in to DMK.
  • You have uploaded the SMN software package of the required version to DMK.
  • You have obtained the IP address and service account password of the NS_LB01 node.
  • You have installed the gateway commissioning tool.

Email Gateway Test

  1. Use PuTTY to log in to the node where the gateway commissioning tool is installed.

    The default account is hermes, and the default password is Hermes@123.

  2. Run the following command to load environment variables:

    source /etc/profile

  3. Run the following command to enter the Safetool directory:

    cd /opt/hermes/safetool/bin/

  4. Run the following command to encrypt the mailbox password:

    sh safetool -e

    Enter the rootkey directory as required and press Enter:

    /opt/hermes/safetool/bin/config/rootkey/

    Enter the mailbox password and press Enter.

    Enter the mailbox password again and press Enter. Information similar to the following is displayed:

    The encryption of content is:d2NjX2NyeXB0ATQxNDU1MzVGNDM0MjQzOzQzNDQ0MzQzMzk0NjQyNDU0NTM5MzAzNDMwNDE0NjMwNDEzNjMxMzkzNDQxMzc0MjQ0MzMzMTM4MzEzOTMxMzg7OzM1MzAzMDMwMzA7NUE0RkRBQkU1ODA5MkZCMTI1OTY1MEYzOUEyNDQxQTM7NkZDQjgyRDQ0NUYyRTJDQjs

  5. Add the ciphertext to the configuration file.

    Run the following command to enter the configuration directory of the email commissioning tool:

    cd /opt/hermes/email-test-tool/bin/config/email

    Open the email-smtpserver.xml file, replace the content between the <MailEncryptedPassword> fields with the ciphertext, and save the change. The following provides an example:

    <MailEncryptedPassword>d2NjX2NyeXB0ATQxNDU1MzVGNDM0MjQzOzQzNDQ0MzQzMzk0NjQyNDU0NTM5MzAzNDMwNDE0NjMwNDEzNjMxMzkzNDQxMzc0MjQ0MzMzMTM4MzEzOTMxMzg7OzM1MzAzMDMwMzA7NUE0RkRBQkU1ODA5MkZCMTI1OTY1MEYzOUEyNDQxQTM7NkZDQjgyRDQ0NUYyRTJDQjs</MailEncryptedPassword>

  6. Send a test email.

    Run the following command to enter the bin directory of the email commissioning tool:

    cd /opt/hermes/email-test-tool/bin

    Run the following command to send an email:

    sh emailtool

    Enter the email address when prompted. In normal cases, the mailbox can receive an email.

    If the mailbox fails to receive the email, verify the mailbox password and repeat 3 to 6.

    NOTE:

    The ciphertext generated for the same password is different each time.

Password Change

  1. Log in to the DMK platform.

    The default account is SMNALL, and the default password is Cloud12#$.

  2. In the navigation pane on the left, choose Deploy Guide.
  3. On the Service Configuration page, select SMN, the required version, InstallNS, and the region of the operation.

    Select NO for Host Repository.

    Select NO for Blue-Green Deployment.

  4. Click Next to go to the Hosts and User Configuration page.
  5. Select the team and account you added.
  6. Click beside Configuration File and configure encrypted_content under the email field to the ciphertext you obtained in 4.

    Figure 14-1 Changing the Email Gateway Password

  7. Click Execute. Check the installation task status in the run logs. If the log page is closed, you can find the task by choosing Task Board in the navigation pane on the left.

Verifying Services on the SMN Console

NOTE:

Ensure that the SMN console has been deployed at the site.

  1. Log in to the management console, enter the SMN console, and switch to the region where you have deployed the SMN service.
  2. Create a topic.
  3. Add email and SMS message subscriptions to the topic.
  4. Ensure that the email and SMS message subscribers can receive the confirmation messages and confirm the subscription.
  5. Publish a message to the topic and verify that the email and SMS subscribers can receive the message.

    NOTE:

    If the SMN console is not available, you can verify services using the test script. For details, see section Installing the API Test Script.

Translation
Download
Updated: 2019-08-30

Document ID: EDOC1100062365

Views: 34704

Downloads: 31

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