Recently while working in lab, I came across situation where I had to remove the vCloud Availability 3.5 plugin from vCenter. To remove plugins from vCenter, we usually employ mob for this task, but removing the vCAV plugin follow different path. In this post I will walk through steps of doing the same.
Login to your vcsa appliance over SSH and execute following commands:
1: List vCAV plugin registrations in the vCenter Server Lookup service
1 |
# /usr/lib/vmidentity/tools/scripts/lstool.py list --ep-type com.vmware.vcav.endpoint --url http://localhost:7080/lookupservice/sdk 2>/dev/null |
Make a note of the Service ID from the output
2: Unregister vCAV plugin from the vCenter Lookup service, by providing the SSO credentials and using the Service Id fetched from previous command.
1 |
# /usr/lib/vmidentity/tools/scripts/lstool.py unregister --url http://localhost:7080/lookupservice/sdk --user 'administrator@sso-domain' --password 'SSO password' --id <service-id> |
3: Re run command from step 1 to verify vCAV plugin has been unregistered from lookup service.
4: Remove the leftover installation files.
1 2 3 |
# rm -rf /etc/vmware/vsphere-ui/cm-service-packages/com.vmware.cis.vsphereclient.plugin/com.vmware.h4.vsphere.client-3.0.0 # rm -rf /etc/vmware/vsphere-ui/cm-service-packages/com.vmware.cis.vsphereclient.plugin/com.vmware.h4.ngc.client-3.0.0 |
Update: 02-06-2020
For VCAV 4.0, use below command to remove leftover plugin files
# rm -rf /etc/vmware/vsphere-ui/cm-service-packages/com.vmware.cis.vsphereclient.plugin/com.vmware.h4.vsphere.client-4.0.0.16104499
5: Restart vSphere Client
1 2 |
root@vcenter [ ~ ]# vmon-cli -r vsphere-ui Completed Restart service request. |
I hope you enjoyed reading this post. Feel free to share this on social media if it is worth sharing 🙂