Updated on 2026-08-05 GMT+08:00

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

  1. Log in to the source AWS EC2 console.
  2. 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

  3. Sign in to the SMS console.
  4. In the navigation pane, choose Agents. The Agents page is displayed.
  5. 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.

  6. 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?

  7. Decompress the SMS-Agent software package.

    tar -zxvf SMS-Agent.tar.gz

  8. Switch to the SMS-Agent directory on the source server.

    cd SMS-Agent

  9. Start the SMS-Agent.

    ./startup.sh

  10. Read the displayed information carefully, enter y, and press Enter.

    Figure 1 Entering y

  11. 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
    Figure 3 Obtaining the SMS domain name

    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