Batch Installing the Agent on Linux Servers
Scenarios
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 batches must belong to the same VPC.
- The Agent cannot be installed on Windows servers in batches.
Prerequisites
- You have performed operations described in Modifying the DNS Server Address and Adding Security Group Rules (Linux).
- An agency has been configured. For details, see How Do I Configure an Agency?
- You have the read and write permissions for the installation directories in Procedure. The Telescope process will not be stopped by other software after the installation.
- If you will use usernames and passwords to log in to ECSs on which the Agent is to be installed, you have collected IP addresses of all ECSs and the password of user root, kept them in the iplist.txt format, and uploaded 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
- If you will use key pairs to log in to the ECSs, you have collected IP addresses of all ECSs, kept them in the iplist.txt format, uploaded 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
- The Agent installation package has been downloaded.
Procedure
- Use SSH to log in to the ECS where the Agent has been installed as user root.
- Run either of the commands below to install the Agent in batches. batch_agent_install.sh and agentBatchPackage.sh are the installation scripts
cd /usr/local && curl -k -O ${download_url} && bash batch_agent_install.sh -t ${version}
cd /usr/local && curl -k -O ${download_url} && bash agentBatchPackage.sh
Replace ${download_url} with the download path in Table 1 and ${version} with the actual Agent version in Agent Features per Version. For example, the installation command for the CN North-Beijing1 region is as follows:
cd /usr/local && curl -k -O https://obs.cn-north-1.myhuaweicloud.com/uniagent-cn-north-1/script/batch_agent_install.sh && bash batch_agent_install.sh -t 2.5.6
- 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 ECSs on which the Agent have been installed.
After you configure the Agent, its status is still displayed as Uninstalled because the monitoring data is not reported yet. Wait 3 to 5 minutes and refresh the page.
Feedback
Was this page helpful?
Provide feedbackThank 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