VMware Cloud Community
mc1903cae
Enthusiast
Enthusiast

vCenter Server/PSC topology via PowerCLI?

Hi,

Is there any way to see the vCenter Server/PSC topology via PowerCLI?

Specifically:

1) vCenter Server to PSC Relationship - Akin to this CLI command:

     vmafd-cli get-ls-location --server-name localhost

2) PSC to PSC Replication Relationship(s) - Akin to these CLI commands:

     vdcrepadmin -f showservers -h PSC_FQDN -u administrator -w Administrator_Password

     vdcrepadmin -f showpartnerstatus -h localhost -u administrator -w Administrator_Password

     vdcrepadmin -f showpartners -h PSC_FQDN -u administrator -w Administrator_Password

2psc1vc-topology.png

Cheers

M

0 Kudos
2 Replies
LucD
Leadership
Leadership

You can obtain the information, not the drawing, via the vcenter REST API.
Start with (which should be similar to the -showservers parameter).

Connect-CisServer -Server <vcsa-fqdn> | Out-Null

$topNodes = Get-CisService -Name 'com.vmware.vcenter.topology.nodes'

$topNodes.list()


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
mc1903cae
Enthusiast
Enthusiast

Thank you Luc, much appreciated. Have a great weekend. M

0 Kudos