Updated on 2025-08-19 GMT+08:00

Batch Installing Agents

This topic describes how to batch install the Agent on Linux servers.

Constraints

  • Batch installation cannot be performed across regions.
  • The servers where the Agent is to be installed in a batch must be in the same VPC.
  • Agents cannot be installed on Windows servers in batches.

Prerequisites

  • You have modified DNS server addresses and added security group rules.
  • You have configured an agency.
  • You have the read and write permissions for the installation directories. The Telescope process will not be stopped by other software after the installation.
  • Username and password: As you have collected IP addresses of all ECSs and the password of user root, keep them in the iplist.txt file and upload them to the /usr/local directory on the first ECS.

    In the iplist.txt file, each line contains only one IP address in the "IP address,Password of user root" format.

    In the following example, abcd is the password.

    192.168.1.1,abcd
    192.168.1.2,abcd
  • Key: As you have collected IP addresses of all ECSs, keep them in the iplist.txt file, upload them to the /usr/local directory on the first ECS, and uploaded the key file user.pem to the /usr/local directory on the ECS.

    In the iplist.txt file, each line contains only one IP address.

    An example is provided as follows:

    192.168.1.1
    192.168.1.2

Procedure

  1. Use SSH to log in to the ECS where the Agent has been installed as user root.
  2. Install the Agents in batches.
    cd /usr/local && curl -k -O https://uniagent-eu-west-101.obs.eu-west-101.myhuaweicloud.eu/package/batch_agent_install.sh && bash batch_agent_install.sh -r eu-west-101 -u 0.2.1 -t 2.7.5 -d agent.ces.myhuaweicloud.eu -o myhuaweicloud.eu
  3. After the installation is complete, log in to the Cloud Eye console and choose Server Monitoring in the navigation pane on the left.
    View the list of all ECSs with the Agent installed.

    After you configure the Agent, its status is still displayed as Uninstalled because the monitoring data has not been reported yet. Wait for 3 to 5 minutes and refresh the page.