Files
doc-exports/docs/lts/umn/lts_02_0015.html
Hasko, Vladimir 4ab0cf8c88 LTS UMN 0929 (recreate of #277)
Reviewed-by: Kucerak, Kristian <kristian.kucerak@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2022-12-02 09:59:13 +00:00

57 lines
13 KiB
HTML

<a name="lts_02_0015"></a><a name="lts_02_0015"></a>
<h1 class="topictitle1">Uninstalling ICAgent</h1>
<div id="body32001227"><p id="lts_02_0015__en-us_topic_0178700396_en-us_topic_0089582116_p912134511">If ICAgent is uninstalled from a host, log collection will be affected. Exercise caution when performing this operation.</p>
<div class="note" id="lts_02_0015__en-us_topic_0178700396_note10915102418718"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_02_0015__en-us_topic_0178700396_p13916924872">Uninstalling ICAgent does not delete the installation files. You need to delete them manually if necessary.</p>
</div></div>
<p id="lts_02_0015__en-us_topic_0178700396_a1e63d18ccc3740a8896ba307b7a03ae6">There are a number of ways to uninstall ICAgent:</p>
<ul id="lts_02_0015__en-us_topic_0178700396_en-us_topic_0089582116_ul46358011247"><li id="lts_02_0015__en-us_topic_0178700396_lbfc8dbb4e0354404874a0b9e28afcdc8"><a href="#lts_02_0015__en-us_topic_0178700396_s56b926e2e7b74b9ba2a87166afb4989b">Uninstalling ICAgent on the Console</a>: This can be used to uninstall ICAgent that has been successfully installed.</li><li id="lts_02_0015__en-us_topic_0178700396_l4dced8c4004345e08c1b128cf9055d67"><a href="#lts_02_0015__en-us_topic_0178700396_s3b88a85d5fc54597bdb601e26408a808">Uninstalling ICAgent on a Host</a>: This can be used to remove ICAgent that fails to be installed for reinstallation.</li><li id="lts_02_0015__en-us_topic_0178700396_li11176124162011"><a href="#lts_02_0015__en-us_topic_0178700396_section6144172213109">Remotely Uninstalling ICAgent</a>: This can be used to remotely uninstall ICAgent that has been successfully installed.</li><li id="lts_02_0015__en-us_topic_0178700396_li1826103317218"><a href="#lts_02_0015__en-us_topic_0178700396_section1091572622115">Batch Uninstalling ICAgent</a>: This can be used to uninstall ICAgent that has been successfully installed from a batch of hosts.</li></ul>
<div class="section" id="lts_02_0015__en-us_topic_0178700396_s56b926e2e7b74b9ba2a87166afb4989b"><a name="lts_02_0015__en-us_topic_0178700396_s56b926e2e7b74b9ba2a87166afb4989b"></a><a name="en-us_topic_0178700396_s56b926e2e7b74b9ba2a87166afb4989b"></a><h4 class="sectiontitle">Uninstalling ICAgent on the Console</h4><ol id="lts_02_0015__en-us_topic_0178700396_ol1163615355457"><li id="lts_02_0015__en-us_topic_0178700396_li13636153516452">Log in to the LTS console and choose <strong id="lts_02_0015__en-us_topic_0178700396_b1162463331810">Agent Management</strong> in the navigation pane on the left.</li><li id="lts_02_0015__en-us_topic_0178700396_li2636635174516">Select one or more hosts where ICAgent is to be uninstalled and click <strong id="lts_02_0015__en-us_topic_0178700396_b4802541796">Uninstall ICAgent</strong>.</li><li id="lts_02_0015__en-us_topic_0178700396_li1863643514519">In the <strong id="lts_02_0015__en-us_topic_0178700396_b51991672437">Uninstall ICAgent</strong> dialog box, click <strong id="lts_02_0015__en-us_topic_0178700396_b132001778432">Yes</strong>.<p id="lts_02_0015__en-us_topic_0178700396_p4648155913615">The uninstallation begins. This process takes about a minute.</p>
<p id="lts_02_0015__en-us_topic_0178700396_abcaa14c974d74c6294debcda7740cd79">When the ICAgent status changes from <strong id="lts_02_0015__en-us_topic_0178700396_b1984464019438">Uninstalling</strong> to <strong id="lts_02_0015__en-us_topic_0178700396_b1784444064315">Uninstalled</strong>, the ICAgent uninstallation has completed.</p>
<div class="note" id="lts_02_0015__en-us_topic_0178700396_note378712220197"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="lts_02_0015__en-us_topic_0178700396_p23592014467">To reinstall ICAgent, wait for 5 minutes after the uninstallation completes, or the reinstalled ICAgent may be unintentionally uninstalled again.</p>
</div></div>
</li></ol>
</div>
<div class="section" id="lts_02_0015__en-us_topic_0178700396_s3b88a85d5fc54597bdb601e26408a808"><a name="lts_02_0015__en-us_topic_0178700396_s3b88a85d5fc54597bdb601e26408a808"></a><a name="en-us_topic_0178700396_s3b88a85d5fc54597bdb601e26408a808"></a><h4 class="sectiontitle">Uninstalling ICAgent on a Host</h4><ol id="lts_02_0015__en-us_topic_0178700396_ol115565612467"><li id="lts_02_0015__en-us_topic_0178700396_li2055686104614">Log in to a host where ICAgent is to be uninstalled as user <strong id="lts_02_0015__en-us_topic_0178700396_b16932154710409">root</strong>.</li><li id="lts_02_0015__en-us_topic_0178700396_li1555611624615">Run the following command:<p id="lts_02_0015__en-us_topic_0178700396_p891012139469"><a name="lts_02_0015__en-us_topic_0178700396_li1555611624615"></a><a name="en-us_topic_0178700396_li1555611624615"></a><strong id="lts_02_0015__en-us_topic_0178700396_a4391a589ff234a96aa4761faba2c3ed7">bash /opt/oss/servicemgr/ICAgent/bin/manual/uninstall.sh;</strong></p>
<p id="lts_02_0015__en-us_topic_0178700396_p56221116462">If the message <strong id="lts_02_0015__en-us_topic_0178700396_b24871819144510">ICAgent uninstall success</strong> is displayed, the uninstallation has completed.</p>
</li></ol>
</div>
<div class="section" id="lts_02_0015__en-us_topic_0178700396_section6144172213109"><a name="lts_02_0015__en-us_topic_0178700396_section6144172213109"></a><a name="en-us_topic_0178700396_section6144172213109"></a><h4 class="sectiontitle">Remotely Uninstalling ICAgent</h4><p id="lts_02_0015__en-us_topic_0178700396_p1645519475100">You can uninstall ICAgent on one host remotely from another host. </p>
<ol id="lts_02_0015__en-us_topic_0178700396_ol10742172164617"><li id="lts_02_0015__en-us_topic_0178700396_li12742721174615">On a host that has ICAgent installed, run the following command. <em id="lts_02_0015__en-us_topic_0178700396_i10380242162018">x.x.x.x</em> indicates the IP address of the host you wish to uninstall ICAgent from.<p id="lts_02_0015__en-us_topic_0178700396_p940902511469"><strong id="lts_02_0015__en-us_topic_0178700396_b16236836122016">bash /opt/oss/servicemgr/ICAgent/bin/<strong id="lts_02_0015__en-us_topic_0178700396_b178991343134019">remoteUninstall</strong>/remote_uninstall.sh -ip </strong><em id="lts_02_0015__en-us_topic_0178700396_i1167683732019">x.x.x.x</em></p>
</li><li id="lts_02_0015__en-us_topic_0178700396_li19742182124613">Enter the password for user <strong id="lts_02_0015__en-us_topic_0178700396_b285211197535">root</strong> for the remote host.<div class="note" id="lts_02_0015__en-us_topic_0178700396_note65919111169"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="lts_02_0015__en-us_topic_0178700396_ul11493202120168"><li id="lts_02_0015__en-us_topic_0178700396_li184931521161615">If the Expect tool has been installed on the host you are running the command from, ICAgent will be uninstalled from the remote host after the command is executed. If the Expect tool has not been installed, you will need to enter the password of user <strong id="lts_02_0015__en-us_topic_0178700396_b16670721947">root</strong> for the remote host as prompted.</li><li id="lts_02_0015__en-us_topic_0178700396_li106360398163">Ensure that user <strong id="lts_02_0015__en-us_topic_0178700396_b1038616484217">root</strong> can run SSH or SCP commands on the host where ICAgent has been installed to communicate with the remote host.</li><li id="lts_02_0015__en-us_topic_0178700396_li15814953113619">If the message <strong id="lts_02_0015__en-us_topic_0178700396_b8499165174818">ICAgent uninstall success</strong> is displayed, the uninstallation has completed. </li></ul>
</div></div>
</li></ol>
</div>
<div class="section" id="lts_02_0015__en-us_topic_0178700396_section1091572622115"><a name="lts_02_0015__en-us_topic_0178700396_section1091572622115"></a><a name="en-us_topic_0178700396_section1091572622115"></a><h4 class="sectiontitle">Batch Uninstalling ICAgent</h4><p id="lts_02_0015__en-us_topic_0178700396_p291117412375">If ICAgent has been installed on a host and the ICAgent installation package <strong id="lts_02_0015__en-us_topic_0178700396_b198122515010">ICProbeAgent.tar.gz</strong> is in the <strong id="lts_02_0015__en-us_topic_0178700396_b179571538505">/opt/ICAgent/</strong> directory of the host, you can use this method to uninstall ICAgent from multiple hosts at once.</p>
<div class="notice" id="lts_02_0015__en-us_topic_0178700396_note1297320585379"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="lts_02_0015__en-us_topic_0178700396_p13973155814378">The hosts must all belong to the same Virtual Private Cloud (VPC) and be on the same subnet.</p>
</div></div>
<p id="lts_02_0015__en-us_topic_0178700396_p7639318174319"><strong id="lts_02_0015__en-us_topic_0178700396_b12639318194317">Prerequisites</strong></p>
<p id="lts_02_0015__en-us_topic_0178700396_p68236518517"></p>
<p id="lts_02_0015__en-us_topic_0178700396_p2616113913431">The IP addresses and passwords of all hosts to uninstall ICAgent have been collected, sorted in the <strong id="lts_02_0015__en-us_topic_0178700396_b82593272107">iplist.cfg</strong> file, and uploaded to the <strong id="lts_02_0015__en-us_topic_0178700396_b789353410102">/opt/ICAgent/</strong> directory on the host that has ICAgent installed. Each IP address and password in the <strong id="lts_02_0015__en-us_topic_0178700396_b122359532100">iplist.cfg</strong> file must be separated by a space, as shown in the following example:</p>
<p id="lts_02_0015__en-us_topic_0178700396_p1548225822014"><em id="lts_02_0015__en-us_topic_0178700396_i572720711112">192.168.0.109 Password</em> (Replace the IP address and password with the actual ones)</p>
<p id="lts_02_0015__en-us_topic_0178700396_p141601016222"><em id="lts_02_0015__en-us_topic_0178700396_i12536161013112">192.168.0.39 Password</em> (Replace the IP address and password with the actual ones)</p>
<div class="note" id="lts_02_0015__en-us_topic_0178700396_note1496715574713"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><ul id="lts_02_0015__en-us_topic_0178700396_ul10444321164817"><li id="lts_02_0015__en-us_topic_0178700396_li5122111919357">The <strong id="lts_02_0015__en-us_topic_0178700396_b368531461419">iplist.cfg</strong> file contains sensitive information. You are advised to clear it after using it.</li></ul>
<ul id="lts_02_0015__en-us_topic_0178700396_ul33449336484"><li id="lts_02_0015__en-us_topic_0178700396_li15759174210487">If all hosts share a password, list only IP addresses in the <strong id="lts_02_0015__en-us_topic_0178700396_b125498541111">iplist.cfg</strong> file and enter the password manually during execution. If one of the hosts uses a different password, type the password behind its IP address.</li></ul>
</div></div>
<p id="lts_02_0015__en-us_topic_0178700396_p179427484620"><strong id="lts_02_0015__en-us_topic_0178700396_b2025522713">Procedure</strong></p>
<ol id="lts_02_0015__en-us_topic_0178700396_ol14788175515460"><li id="lts_02_0015__en-us_topic_0178700396_li1178812550461">Run the following command on the host that has ICAgent installed:<p id="lts_02_0015__en-us_topic_0178700396_p152442311959"><a name="lts_02_0015__en-us_topic_0178700396_li1178812550461"></a><a name="en-us_topic_0178700396_li1178812550461"></a><strong id="lts_02_0015__en-us_topic_0178700396_b11980542182212">bash /opt/oss/servicemgr/ICAgent/bin/remoteUninstall/remote_uninstall.sh -batchModeConfig /opt/ICAgent/iplist.cfg</strong></p>
<p id="lts_02_0015__en-us_topic_0178700396_p12876313165214">Enter the default password for user <strong id="lts_02_0015__en-us_topic_0178700396_b95110514128">root</strong> of the hosts to uninstall ICAgent. If the passwords of all hosts have been configured in the <strong id="lts_02_0015__en-us_topic_0178700396_b17508508134">iplist.cfg</strong> file, press <strong id="lts_02_0015__en-us_topic_0178700396_b1276611619131">Enter</strong> to skip this step.</p>
<pre class="screen" id="lts_02_0015__en-us_topic_0178700396_screen146121372410">batch uninstall begin
Please input default passwd:
send cmd to 192.168.0.109
send cmd to 192.168.0.39
2 tasks running, please wait...
End of uninstall agent: 192.168.0.109
End of uninstall agent: 192.168.0.39
All hosts uninstall icagent finish.</pre>
<p id="lts_02_0015__en-us_topic_0178700396_p1568349182512">If the message <strong id="lts_02_0015__en-us_topic_0178700396_b186851828202414">All hosts uninstall icagent finish.</strong> is displayed, the batch uninstallation has completed.</p>
</li><li id="lts_02_0015__en-us_topic_0178700396_li87883553460">Choose <strong id="lts_02_0015__en-us_topic_0178700396_b487413045111">Agent Management</strong> in the LTS navigation pane to view the ICAgent status of the host.</li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="lts_04_0012.html">Agent Management</a></div>
</div>
</div>