You may want to unregister a cluster from Prism Central for various reasons.
Currently, we don’t provide this option via the Prism GUI as to reduce the risk of accidentally unregistering a cluster. In recent releases, numerous key features such as micro-segmentation, CALM, Self-Service portal, Karbon etc require Prism Central and unregistration could result in these services being unavailable.
However, if you still wish to unregister a cluster either because the cluster is decommissioned or to deploy a new PC, these are the high-level steps you would have to follow.
- SSH into any CVM in the cluster that needs to be unregistered and run the below command.
ncli multicluster remove-from-multicluster external-ip-address-or-svm-ips=<PC_IP_ADDRESS> username=<PC_USERNAME> password=<PC_PASSWORD> force=true
- parameters: PC_IP_ADDRESS, PC_USERNAME, PC_PASSWORD
- SSH into the Prism Central VM and run the unregistration script.
python /home/nutanix/bin/unregistration_cleanup.py uuid
- parameters: uuid is the cluster UUID (not PC UUID)
- SSH again into the CVM in the cluster and run the unregistration script here as well.
python /home/nutanix/bin/unregistration_cleanup.py uuid
- parameters: uuid is the PC UUID (not cluster UUID)
For more detailed information and steps, make sure to look at KB-4944.