WilliamLam.com

  • About
    • About
    • Privacy
  • VMware Cloud
  • Tanzu
    • Application Modernization
    • Tanzu services
    • Tanzu Community Edition
    • Tanzu Kubernetes Grid
    • vSphere with Tanzu
  • Home Lab
  • Nested Virtualization
  • Apple
You are here: Home / VCSA / vCenter Server 6.0 Tidbits Part 3: Finding all deployed Platform Services Controller

vCenter Server 6.0 Tidbits Part 3: Finding all deployed Platform Services Controller

04.08.2015 by William Lam // 9 Comments

In vSphere 6.0, there are a list of recommended topologies which can viewed in VMware KB 2108548. In the event that you need to locate all available Platform Services Controllers in your environment, you have a couple of options depending on type of access you have and the state of your environment (e.g. vSphere Web Client is down). Before taking a look at the solutions, here is a diagram of my vSphere 6.0 lab environment and its configuration: 2 PSCs configured for replication with 2 VCs joined to PSC1 and another VC joined to PSC2.

locate-vcenter-servers-and-platform-service-controllers
Option 1:

The first option to find this information is using the new System Configuration UI which is available in the vSphere 6.0 Web Client. You can quickly view all Nodes and their type as seen in the screenshot below. This would be the quickest and most efficient method if access to the vSphere Web Client is available.

locate-all-psc-servers-0
Option 2:

We can also connect to a new service in vSphere 6.0 known as the Component Manager via its MOB (Managed Object Browser) interface. You will need to open a browser and connect to the following URL and substituting it with the Hostname/IP Address of one of your PSC:

https://psc-01.primp-industries.com/cm/mob/?moid=ServiceManager&method=Search

If you do not know the Hostname/IP Address of your PSC Server, you can always find it by going to the vCenter Server Advanced Settings and searching for pattern "sso.admin" and you will see the address of your PSC Server as seen in the screenshot below.

Screen Shot 2015-03-29 at 2.56.33 PM
Once you have authenticated in, you will need to add the following snippet into the text box:

<searchCriteria>
<serviceType>
<productId>com.vmware.cis</productId>
<typeId>sso:admin</typeId>
</serviceType>
</searchCriteria>

locate-all-psc-servers-1
Note: For programmatic access, please refer to Option 3 for more details.

Next, click on Invoke Method to execute the query and if everything was successful, you should see entries under "serviceEndpoints" for all your PSCs as seen in the screenshot below.

locate-all-psc-servers-2
Option 3:

The final option is to of course retrieve this information programmatically using the new vCloud Suite SDK which is part of the vSphere 6.0 release. There are 6 new SDKs: .Net, Java, Perl, REST, Python & Ruby and you can find more information here. In this example, I will be using the vCloud Suite SDK for Python and using the sample located under the "lookupservice" directory called print_services.py You will need to download and extract the contents of the SDK onto a system that has a Python interpreter installed and below are the instructions for running this particular sample script.

First, you will need to edit a configuration file and provide some details to one of your PSC's

VMware-vCloud-Suite-SDK-Python-6.0.0/client/samples/src/sample.cfg

Here is an example of what the file should look like for my environment:

[connection]
lswsdlurl=file:///root/VMware-vCloud-Suite-SDK-Python-6.0.0/client/wsdl/lookupservice.wsdl
lssoapurl=https://psc-01.primp-industries.com/lookupservice/sdk
ssousername=*protected email*
ssopassword=VMware1!

Next, change into the following directory:

cd VMware-vCloud-Suite-SDK-Python-6.0.0/client/bin/

Finally, to run the sample script you will need to ensure run_sample.sh (wrapper script) is set to executable and then run the following:

./run_sample.sh ../samples/src/com/vmware/vcloud/suite/sample/lookupservice/print_services.py

If everything was configured successfully, you should see similar output as shown in the screenshot below:
finding-all-deployed-platform-service-controllers-and-vcenter-servers

  • vCenter Server 6.0 Tidbits Part 1: What install & deployment parameters did I use?
  • vCenter Server 6.0 Tidbits Part 2: What is my SSO Domain Name & Site Name?
  • vCenter Server 6.0 Tidbits Part 3: Finding all deployed Platform Services Controller
  • vCenter Server 6.0 Tidbits Part 4: Finding all deployed vCenter Servers
  • vCenter Server 6.0 Tidbits Part 5: New method of patching the VCSA
  • vCenter Server 6.0 Tidbits Part 6: Customizing VCSA’s DCUI
  • vCenter Server 6.0 Tidbits Part 7: Connecting to SSO/PSC using JExplorer
  • vCenter Server 6.0 Tidbits Part 8: Useful ldapsearch queries for vmdird
  • vCenter Server 6.0 Tidbits Part 9: Creating & managing SSO users using dir-cli
  • vCenter Server 6.0 Tidbits Part 10: Automating SSO Admin configurations
  • vCenter Server 6.0 Tidbits Part 11: Automate SSO Admin password change
  • vCenter Server 6.0 Tidbits Part 12: New methods of downloading Support Bundles for VCSA / PSC

More from my site

  • vCenter Server 6.0 Tidbits Part 4: Finding all deployed vCenter Servers
  • vCenter Server 6.0 Tidbits Part 2: What is my SSO Domain Name & Site Name?
  • Quick Tip - List all open ports on the VCSA / PSC
  • How to change the default ports on the vCenter Server Appliance in vSphere 6.0?
  • How to automatically repoint & failover VCSA to another replicated Platform Services Controller (PSC)?

Categories // VCSA, vSphere 6.0 Tags // component manager, lookupservice, mob, platform service controller, psc, vcloud suite sdk, vcsa

Comments

  1. Ganadmin says

    09/19/2015 at 12:05 am

    I have two PSC connected ( Active \ Passive ) to the same domain without loadbalancer , how can i find which PSC the VC is connected ...Do we have any command to find the PSC the Vcenter is communicating ....

    Reply
    • William Lam says

      09/19/2015 at 12:50 am

      There's no official tool, but you can use JXplorer to find the replication agreements between PSC's. Take a look at this blog post for more details if you've not seen it already http://www.virtuallyghetto.com/2015/05/vcenter-server-6-0-tidbits-part-7-connecting-to-ssopsc-using-jexplorer.html

      Reply
      • Ganadmin says

        09/19/2015 at 5:11 pm

        Thanks..

        Reply
      • Ganadmin says

        09/19/2015 at 8:37 pm

        Its showing all the VC , my case is PSC01 is connected to the VC01 and PSC02 is to VC02 under same domain and site with enhanced link mode . Is there anyway to find that VC01 is connected only with the PSC01, because it will be helpful for someone new to the environment to find the design..

        Reply
        • William Lam says

          09/21/2015 at 4:13 pm

          Yes, if you want to find the mapping between VC<->PSC, you can look at "Option 2" in this article http://www.virtuallyghetto.com/2015/04/vcenter-server-6-0-tidbits-part-4-finding-all-deployed-vcenter-servers.html and using the "sso.admin" VC Adv Setting. This will tell you which PSC the VC is currently pointed to

          Reply
          • Ganadmin says

            09/21/2015 at 4:48 pm

            Thanks Got it...

          • William Lam says

            09/21/2015 at 5:46 pm

            I've also just blogged about it here so its easier to find in the future http://www.virtuallyghetto.com/2015/09/which-platform-services-controller-psc-is-my-vcenter-server-pointing-to.html

  2. Weavge says

    05/10/2016 at 9:38 am

    Would the 'vdcrepadmin' with 'showservers' option be a 4th option?

    Reply
  3. Sheik Mohamed Hisham says

    11/16/2018 at 5:40 am

    I need to find the PSC's thumbprint using VC. I need it for my application to trust the PSC for further interactions with PSC. So, all I have is vCenterFQDN and SSO credentials. This is an external PSC model. vCenter version is 6.5 . I know 6.7 has a REST Api for this requirement. Unfortunately we can't go with 6.7. Any help is much appreciated 🙂

    Reply

Thanks for the comment! Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search

Author

William Lam is a Senior Staff Solution Architect working in the VMware Cloud team within the Cloud Infrastructure Business Group (CIBG) at VMware. He focuses on Cloud Native technologies, Automation, Integration and Operation for the VMware Cloud based Software Defined Datacenters (SDDC)

Connect

  • Email
  • GitHub
  • LinkedIn
  • RSS
  • Twitter
  • Vimeo

Recent

  • How to disable the Efficiency Cores (E-cores) on an Intel NUC? 03/24/2023
  • Changing the default HTTP(s) Reverse Proxy Ports on ESXi 8.0 03/22/2023
  • NFS Multi-Connections in vSphere 8.0 Update 1 03/20/2023
  • Quick Tip - How to download ESXi ISO image for all releases including patch updates? 03/15/2023
  • SSD with multiple NVMe namespaces for VMware Homelab 03/14/2023

Advertisment

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy

Copyright WilliamLam.com © 2023

 

Loading Comments...