卸载ICAgent 批量卸载 当您已有服务器安装过ICAgent,且该服务器“/opt/ICAgent/”路径下ICAgent安装包ICProbeAgent.zip存在,通过该方式可对多个远端服务器进行一键式继承批量卸载。 注意 批量卸载的ECS需同属一个VPC下,并在同一个网段中。 前提条件 已收集需要卸载Agent的所有虚拟机IP、密码,按照iplist.cfg格式整理好,并上传到已安装过ICAgent机器的/opt/ICAgent/目录下。iplist.cfg格式示例如下所示,IP与密码之间用空格隔开: 192.168.0.109 密码(请根据实际填写) 192.168.0.39 密码(请根据实际填写) 说明 iplist.cfg中包含您的敏感信息,建议您使用完之后清理一下。 如果所有弹性云服务器的密码一致,iplist.cfg中只需列出IP,无需填写密码,在执行时输入此密码即可;如果某个IP密码与其他不一致,则需在此IP后填写其密码。 iplist.cfg文件中每一行应以回车作为结尾。 操作步骤 步骤 1 在已安装ICAgent的服务器上执行如下命令。 bash /opt/oss/servicemgr/ICAgent/bin/remoteUninstall/remoteuninstall.sh batchModeConfig /opt/ICAgent/iplist.cfg 根据脚本提示输入待卸载机器的root用户默认密码,如果所有IP的密码在iplist.cfg中已有配置,则直接输入回车键跳过即可,否则请输入默认密码。 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. 请耐心等待,当提示All hosts uninstall icagent finish.时,则表示配置文件中的所有主机卸载操作已完成。 步骤 2 卸载完成后,在应用性能管理左侧导航栏中选择“配置管理 > Agent管理”,查看该服务器ICAgent状态。