VMware Cloud Community
shahbhavya
Contributor
Contributor

Retrieval of vCenter and Site data using python

Hello All,

After collecting inventory and performance data using propertyCollector, me and My team now wants to collect vCenter and Site data. If you know anything about which is the best way to retrieve it and which things it should contain, please share.

Thanks a tonnes for your time.

0 Kudos
3 Replies
msripada
Virtuoso
Virtuoso

What do you define as "vCenter and site data"?

0 Kudos
shahbhavya
Contributor
Contributor

Hello,

As per my understanding, it's all about Platform Service Controllers, partner sites and SSOs active on vCenter server. Please correct me if I'm wrong.

0 Kudos
msripada
Virtuoso
Virtuoso

You can get the info using lstool.py list output

VMware Knowledge Base

For windows:

"%VMWARE_PYTHON_BIN%" "%VMWARE_CIS_HOME%\VMware Identity Services\lstool\scripts\lstool.py" list --url http://localhost:7080/lookupservice/sdk > c:\psc_services.txt

For Linux appliances:

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

Thanks,

MS

0 Kudos