Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
On this page

Show all

Help Center/ Server Migration Service/ FAQs/ Agent Installation and Startup/ How Do I Download and Install the Agent on Source Servers?

How Do I Download and Install the Agent on Source Servers?

Updated on 2025-01-24 GMT+08:00

Windows

  1. Sign in to the SMS console. In the navigation pane on the left, choose Agents.
  2. Select the Windows card. Locate the Agent that matches your source server, click the icon next to Agent to download the Agent installation package.

    You can also use the following links to download the desired Agent:
    • Windows Agent (Python 3)

      https://sms-resource-intl-ap-southeast-3.obs.ap-southeast-3.myhuaweicloud.com/SMS-Agent-Py3.exe

    • Windows Agent (Python 2)

      https://sms-resource-intl-ap-southeast-3.obs.ap-southeast-3.myhuaweicloud.com/SMS-Agent-Py2.exe

    CAUTION:

    When you download the Agent from the preceding links, you need to go to the SMS console to read and agree to the Service Statement.

  3. Click the icon next to SHA256 File to download the SHA256 verification code. Verify the integrity of the Agent installation package by referring to How Do I Verify the Integrity of the Agent Installation File?

    You can also run the following command to download SHA256 verification code:

    • Windows Agent (Python 3)

      https://sms-resource-intl-ap-southeast-3.obs.ap-southeast-3.myhuaweicloud.com/SMS-Agent-Py3.exe.sha256

    • Windows Agent (Python 2)

      https://sms-resource-intl-ap-southeast-3.obs.ap-southeast-3.myhuaweicloud.com/SMS-Agent-Py2.exe.sha256

  4. Install the software by referring to Windows.

Linux

  1. Sign in to the SMS console. In the navigation pane on the left, choose Agents.
  2. Select the Linux card, and in the Linux Agent pane, click the icon next to Agent to copy the Agent download command. Then download the Agent installation package from the source server.

    You can also use either of the following commands to download the Agent:

    wget -t 3 -T 15 https://sms-resource-intl-ap-southeast-3.obs.ap-southeast-3.myhuaweicloud.com/SMS-Agent.tar.gz
    curl -O https://sms-resource-intl-ap-southeast-3.obs.ap-southeast-3.myhuaweicloud.com/SMS-Agent.tar.gz
    CAUTION:

    When you download the Agent using the preceding commands, you need to go to the SMS console to read and agree to the Service Statement.

  3. Copy the command next to SHA256 File and run the command on the source server. Use the hash value contained in the SHA256 file to verify the integrity of the Agent installation package. For details, see How Do I Verify the Integrity of the Agent Installation File?

    You can also run either of the following commands to download the SHA256 verification code:

    wget -t 3 -T 15 https://sms-resource-intl-ap-southeast-3.obs.ap-southeast-3.myhuaweicloud.com/SMS-Agent.tar.gz.sha256

  4. Decompress the Agent software package.

    tar -zxvf SMS-Agent.tar.gz

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

    cd SMS-Agent

  6. If you do not need to use an HTTPS proxy, go to 7.

    If you do not need to use an HTTPS proxy, go to 8.

    CAUTION:
    • If your source server cannot access Huawei Cloud over the Internet, a proxy server can help you. You need to configure a proxy server by yourself.
    • The proxy is used for registering the source server with SMS when a Direct Connect or VPN connection is used. It is not used for data migration.

  7. (Optional) Configure the HTTP/HTTPS proxy for the Agent.

    1. Go to the config directory.
      cd SMS-Agent/agent/config
    2. Open and edit the auth.cfg file. Do not edit the auth.cfg file unless you need to use an HTTP/HTTPS proxy.
      vi auth.cfg

      The values shown here are for reference only.

      [proxy-config]
      enable = true
      proxy_addr = https://your-proxy-addr.com
      proxy_port = 3128
      proxy_user = root
      use_password = true
      NOTE:
      • enable: To use a proxy, set it to true.
      • proxy_addr: Replace your-proxy-addr with the IP address of the proxy server, not that of the target server. Use the protocol configured for the proxy. HTTPS is recommended.
      • proxy_user: Enter the username required for the proxy. If no username is required, leave it blank.
      • use_password: If a password is required for the proxy, set it to true. If no password is required, set it to false.
    3. Save the auth.cfg file and exit.
      :wq

  8. Start the Agent.

    ./startup.sh

  9. Carefully review what information will be collected by the Agent, enter y, and press Enter.

    Figure 1 Entering y

  10. Enter the AK/SK pair for the Huawei Cloud account and the SMS domain name for the region you are migrating to. You can 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 EPS service has been enabled for the Huawei Cloud account, after you entered the AK/SK pair, the Agent will list all enterprise projects the account is allowed to access. You can select the enterprise project you would like to migrate the source server to. This enables you to isolate permissions, resources, and finance during the migration. For details, see Migrating Servers into an Enterprise Project.

    When the following information is displayed, the Agent has been started up and will automatically start reporting source server information to SMS. You can go to the Servers page on the SMS console to view the record of the source server.
    Figure 4 Agent running

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback