-->

HOW TO FIND VCENTER INSTANCES REGISTERED WITH YOUR PSC

 

HOW TO FIND VCENTER INSTANCES REGISTERED WITH YOUR PSC

I recently facing the issue while upgrade the SRM. We want to be check registered instances on vCenter.

Open an SSH session to the vCenter Server Appliance with embedded Platform Services Controller and run:

The following steps:-

> Connect to the Platform Services Controller using SSH.

> Enable the shell by typing the ‘shell’ command.

> Create a text file with a list of the services registered within the Platform Services Controller,  by running this command:

/usr/lib/vmidentity/tools/scripts/lstool.py list --url http://localhost:7080/lookupservice/sdk > /tmp/psc_services.txt


To get SRM instances on vCenter run the below command

root@vCenter  [ /usr/lib/vmware-vmafd/bin ]# echo "SRM servers";grep -A9 "Service Type: vcDr" /tmp/psc_services.txt | egrep "Service ID:|URL"

SRM servers

        Service ID: 8d4f4594-007a-4b9b-b30f-aab88a79f6ef

                URL: https://sxxx-SRM-xx01.com:443/drserver/vcdr/extapi/sdk

        Service ID: 1c798953-c196-4f2c-9004-1cc61d56aa48

                URL: https://ssxxx-SRM-xx02.com:443/drserver/vcdr/vmomi/sdk

root@vCenter [ /usr/lib/vmware-vmafd/bin ]# echo "vrUis";grep -A8 "Service Type: vrUi" /tmp/psc_services.txt | egrep "Service ID:|URL"

vrUis

        Service ID: h5-dr-8d4f4594-007a-4b9b-b30f-aab88a79f6ef

                URL: https://sxxx-SRM-xx01.com/plugin/ngcplugin.zip

        Service ID: h5-dr-1c798953-c196-4f2c-9004-1cc61d56aa48

                URL: https://sxxx-SRM-xx02.com/dr

root@vCenter [ /usr/lib/vmware-vmafd/bin ]#


To unregister the duplicate/unwanted instance, run this command

/usr/lib/vmidentity/tools/scripts/lstool.py unregister --url 'http://localhost:7080/lookupservice/sdk' --user "administrator@vsphere.local" --password 'pwd' --id 'Service ID number' --no-check-cert



HOW TO FIND VCENTER INSTANCES REGISTERED WITH YOUR PSC HOW TO FIND VCENTER INSTANCES REGISTERED WITH YOUR PSC Reviewed by Virtulization on July 13, 2022 Rating: 5

No comments:

Home - PageNavi (show/hide)

hide
Powered by Blogger.