Installing and Starting the Agent on a Source Server
Download the Agent from the SMS console to a source server and install it. Enter the AK/SK pair for the Huawei Cloud account that you are migrating to and the SMS domain name. After the Agent is started, it reports information about the source server to SMS.
Prerequisites
You have obtained the AK/SK pair for your target account. For details, see How Do I Obtain an AK/SK Pair for a Huawei Cloud Account? or How Do I Obtain an AK/SK Pair for an IAM User?
Installing and Starting the Agent
- Log in to the source AWS EC2 console.
- Run the following command to switch to the root user:
su root
If it is successful, the root user is shown.

Run the following command to set a password for the root user:sudo passwd root
- Sign in to the SMS console.
- In the navigation pane, choose Agents. The Agents page is displayed.
- Select the Linux card, and in the Linux Agent area, click the
icon next to Agent URL to copy the Agent download command. Run the command on the source server to download the Agent installation package. 
- Copy and run the commands to download the CMS and CRL files to the Linux source server, then verify the integrity of the Agent installation file. For details, see How Do I Verify the Integrity of the Agent Installation File?

- Decompress the SMS-Agent software package.
tar -zxvf SMS-Agent.tar.gz
- Switch to the SMS-Agent directory on the source server.
cd SMS-Agent
- Start the SMS-Agent.
./startup.sh
- Read the displayed information carefully, enter y, and press Enter. Figure 1 Entering y
- Enter the AK/SK pair for the Huawei Cloud account that you are migrating to and the SMS domain name. Obtain the SMS domain name on the Agents page of the SMS console, as shown in Figure 3. Figure 2 Entering the AK/SK pair
If the following information is shown, the SMS-Agent has been started and will start reporting source server information to SMS.Figure 4 Agent running
You can go to the Servers page on the SMS console to check the record of the source server.
Figure 5 Normal connection
What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot
