此適用於 Linux 的 vRealize Operations Manager 版本不包括完整的解除安裝選項。若要移除此產品,您需執行解除安裝命令並手動移除 vRealize Operations Manager 安裝的其餘構件。

先決條件

vCenter Server 中以根使用者身分登入主控台,或透過直接存取方式。在 vCenter Server 中,使用 Alt+F1 存取登入提示。

基於安全考量,依預設會停用 vRealize Operations Manager 遠端終端機工作階段。

程序

  1. 執行下列命令,解除安裝此產品:
    /usr/bin/sh /usr/lib/vmware-vcopssuite-installsupport/_vRealize\ Operations\ Manager\ Enterprise_installation/Uninstall\ vRealize\ Operations\ Manager\ Enterprise -i silent

    或者,如果您正在移除 Beta 版本,請執行下列命令:

    /usr/bin/sh /usr/lib/vmware-vcopssuite-installsupport/_vCenter\ Operations\ Manager\ Enterprise_installation/Uninstall\ vCenter\ Operations\ Manager\ Enterprise -i silent
  2. 執行下列命令,停止 HTTPD 服務:
    /sbin/service httpd stop
    
  3. 執行下列命令,移除 RPM:
    /bin/rpm -e --nodeps httpd
    /bin/rpm -e --nodeps httpd-tools
    /bin/rpm -e --nodeps VMware-Postgres
    /bin/rpm -e --nodeps VMware-Postgres-libs
    /bin/rpm -e --nodeps VMware-Postgres-osslibs
    /bin/rpm -e --nodeps VMware-Postgres-osslibs-server
    
  4. 執行下列命令,移除額外的使用者和群組:
    /usr/sbin/userdel -fr admin
    /usr/sbin/userdel -fr postgres
    /usr/sbin/groupdel admin
    
  5. 執行下列命令,移除額外的檔案和目錄:
    /bin/rm -rf /usr/lib/openssl/lib/libcrypto.so.10
    /bin/rm -rf /usr/lib/openssl/lib/libssl.so.10
    /bin/rm -rf /usr/lib/openssl/lib/
    /bin/rm -rf /usr/lib/openssl/
    /bin/rm -rf /usr/lib/vmware-vcopssuite-installsupport/.buildInfo.<build_number>
    /bin/rm -rf /usr/lib/vmware-vcopssuite-installsupport/
    /bin/rm -rf /etc/rc.d/*/*vmware-vcops-watchdog
    /bin/rm -rf /etc/rc.d/*/*vmware-casa
    /bin/rm -rf /etc/rc.d/*/*vmware-vcops
    /bin/rm -rf /etc/rc.d/*/*vmware-vcops-web
    /bin/rm -rf /etc/rc.d/*/*vmware-vcops-reboot-config
    /bin/rm -rf /var/log/firstboot
    /bin/rm -rf /var/log/preb2b
    /bin/rm -rf /var/log/postb2b
    /bin/rm -rf /var/log/firstboot
    /bin/rm -rf /var/log/casa_logs
    /bin/rm -rf /var/log/tomcat_logs
    /bin/rm -rf /var/log/vcops_logs
    /bin/rm -rf /var/.com.zerog.registry.xml
    /bin/rm -rf /var/log/log
    
  6. 執行下列命令,移除 sudoers 項目。如果您已多次執行安裝程式,您可能需要多次執行下列命令。
    /bin/sed -i '/# ------ vCenter Operations Manager Settings for VCOPS_USER/,/# ------ End of vCenter Operations Manager Settings for VCOPS_USER/d' /etc/sudoers
    /bin/sed -i '/# ------ vCenter Operations Manager Settings for CaSA/,/# ------ End of vCenter Operations Manager Settings for CaSA/d' /etc/sudoers
    /bin/sed -i '/# ------ vCenter Operations Manager Settings for vsutilities/,/# ------ End of vCenter Operations Manager Settings for vsutilities/d' /etc/sudoers
    
  7. 檢閱 sudoers 檔案 /etc/sudoers,確保沒有 vRealize Operations Manager 項目。