forked from docs/doc-exports
Reviewed-by: Rumpler, Mihály <mihaly.rumpler@t-systems.com> Co-authored-by: qiujiandong1 <qiujiandong1@huawei.com> Co-committed-by: qiujiandong1 <qiujiandong1@huawei.com>
31 lines
5.0 KiB
HTML
31 lines
5.0 KiB
HTML
<a name="ces_01_0034"></a><a name="ces_01_0034"></a>
|
|
|
|
<h1 class="topictitle1">Installing the Agents in Batches on Linux ECSs</h1>
|
|
<div id="body1564629104574"><div class="section" id="ces_01_0034__en-us_topic_0111157443_section476316142516"><h4 class="sectiontitle">Scenarios</h4><p id="ces_01_0034__p1410835575913">This topic describes how to batch install the Agents on Linux ECSs.</p>
|
|
</div>
|
|
<div class="section" id="ces_01_0034__section149797195411"><h4 class="sectiontitle">Operation</h4><p id="ces_01_0034__p18358133752016">After binding an elastic IP address (EIP) to an ECS, use the ECS as the execution node and run scripts in batches to copy, decompress, and install the Agent package and configuration file to other ECSs (target nodes).</p>
|
|
<div class="notice" id="ces_01_0034__note194601711191216"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><ul id="ces_01_0034__ul16659629133512"><li id="ces_01_0034__li16659429113513">The target nodes in one batch must be deployed in the same VPC.</li></ul>
|
|
<ul id="ces_01_0034__ul15774123114353"><li id="ces_01_0034__li477473193513">For servers running Windows OSs, Agents cannot be installed in batches.</li></ul>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="ces_01_0034__en-us_topic_0111157443_section57291745182517"><h4 class="sectiontitle">Prerequisites</h4><ul id="ces_01_0034__en-us_topic_0111157443_ul13405132212344"><li id="ces_01_0034__li18374644113417">During the creation, all ECSs use the same PEM file. Upload the PEM file to the <strong id="ces_01_0034__b5625331154411">/usr/local</strong> directory of the ECS on which the Agent has been installed, and name the file <strong id="ces_01_0034__b463913317443">user.pem</strong>.</li><li id="ces_01_0034__en-us_topic_0111157443_li1383632313411">The IP addresses of all ECSs (target nodes) have been listed in a <strong id="ces_01_0034__b13285222193511">iplist.txt</strong> file and uploaded to the <strong id="ces_01_0034__b9728124764418">/usr/local</strong> directory on the execution node.<div class="note" id="ces_01_0034__note1980815720321"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="ces_01_0034__p18081457153218">In the iplist.txt file, list each IP address on a separate line:</p>
|
|
<pre class="screen" id="ces_01_0034__screen158081557153210">192.168.1.1
|
|
192.168.1.2</pre>
|
|
</div></div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="ces_01_0034__en-us_topic_0111157443_section335374517325"><h4 class="sectiontitle">Procedure</h4><ol id="ces_01_0034__en-us_topic_0111157443_ol865218536327"><li id="ces_01_0034__en-us_topic_0111157443_li10651653103217">Log in to the execution node as user <strong id="ces_01_0034__b39871240163411">root</strong>.</li><li id="ces_01_0034__li5584184645618">Run the following commands to set the permission for <strong id="ces_01_0034__b16848038016">user.pem</strong> to <strong id="ces_01_0034__b156948607">0600</strong> and download the batch installation script:<p id="ces_01_0034__p137631017183116"><strong id="ces_01_0034__b478694213316">cd /usr/local && chmod 0600 user.pem && wget http://telescope-eu-de.obs.eu-de.otc.t-systems.com/scripts/batchInstall && chmod +x batchInstall</strong></p>
|
|
</li><li id="ces_01_0034__li116322147418">Run the following command to install the Agent on the execution and target nodes:<p id="ces_01_0034__p1595365663016"><a name="ces_01_0034__li116322147418"></a><a name="li116322147418"></a><strong id="ces_01_0034__b1033513732911">cd /usr/local && ./batchInstall -pem -c "wget https://telescope-eu-de.obs.eu-de.otc.t-systems.com/scripts/agentInstall.sh && chmod 755 agentInstall.sh && ./agentInstall.sh"</strong></p>
|
|
</li><li id="ces_01_0034__li19411357173920">After the installation completes, log in to the Cloud Eye console.</li><li id="ces_01_0034__li11988237101">In the navigation pane on the left, choose <strong id="ces_01_0034__b1015513411415">Server Monitoring</strong>.<div class="p" id="ces_01_0034__p31271927101014">View the list of ECSs on which the Agents have been installed.<div class="note" id="ces_01_0034__note1118018412224"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="ces_01_0034__p9180194162219">After you configure the Agent, its status is still displayed as <strong id="ces_01_0034__b84235270615929">Uninstalled</strong> because the monitoring data is not reported yet. Wait 3 to 5 minutes and refresh the page.</p>
|
|
</div></div>
|
|
</div>
|
|
</li><li id="ces_01_0034__li1437192191118">On the <strong id="ces_01_0034__b1364102514914">Server Monitoring</strong> page, select all ECSs and click <strong id="ces_01_0034__b19643252917">Restore Agent Configurations</strong>.</li><li id="ces_01_0034__li51508613124">Click <strong id="ces_01_0034__b51453332091">One-Click Restore</strong>.</li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="ces_01_0120.html">Server Monitoring</a></div>
|
|
</div>
|
|
</div>
|
|
|