If the ICAgent on a server is uninstalled, server O&M will be affected, making AOM functions unavailable. Exercise caution when performing this operation.
You can uninstall the ICAgent using either of the following methods:
The uninstallation takes about 1 minute to complete. When the ICAgent status changes from Uninstalling to Uninstall, the ICAgent has been uninstalled.
bash /opt/oss/servicemgr/ICAgent/bin/manual/uninstall.sh;
In addition to the preceding method, you can use a method similar to Inherited Installation to remotely uninstall the ICAgent.
bash /opt/oss/servicemgr/ICAgent/bin/remoteUninstall/remote_uninstall.sh -ip x.x.x.x
If the ICAgent has been installed on a server and the ICProbeAgent.zip installation package exists in the /opt/ICAgent/ directory of this server, use this method to uninstall the ICAgent from multiple remote servers in batches with a few clicks.
The servers must belong to the same Virtual Private Cloud (VPC) and network segment.
Prerequisites
The IP addresses and passwords of all servers from which the ICAgent is to be uninstalled have been collected, sorted in the iplist.cfg file, and uploaded to the /opt/ICAgent/ directory on the server where the ICAgent has been installed. The following is an example of the iplist.cfg file, where IP addresses and passwords are separated by spaces.
192.168.0.109 password (Set the password as required.)
192.168.0.39 password (Set the password as required.)
Procedure
bash /opt/oss/servicemgr/ICAgent/bin/remoteUninstall/remote_uninstall.sh -batchModeConfig /opt/ICAgent/iplist.cfg
Enter the default password of the root user as prompted. If the passwords of all IP addresses have been configured in the iplist.cfg file, press Enter to skip this step. Otherwise, enter the default password.
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.
Wait until the message All hosts uninstall icagent finish. is displayed, which indicates that the ICAgent has been uninstalled from all the hosts listed in the configuration file.