VMware Cloud Community
SetClearInfra
Contributor
Contributor

Cluster Details VIA PowerShell - PowerCLI

How would I go about getting the details of each of my clusters VIA Powershell.

For instance:

DRS Details:

  • Current Host Load Standard Deviation

  • DRS Faults

  • DRS Recomendations

  • Is it possible to extract the Resource Distribution Chart from vCenter?

HA Details:

  • Failover Capacity

  • Configured Failover Capacity

  • TotalPowered on VMs in cluster

  • Total Hosts in Cluster

  • Total good hosts in cluster

General:

  • VMware DRS State

  • VMware HA State

  • VMware EVC Mode

Would prefer if someone could point me at the API refrence so that I can understand this myself.

Just having the answer provided for you doesnt help anyone learn it...

Thanks in advance!

0 Kudos
5 Replies
LucD
Leadership
Leadership

To start you off.

There's a lot of info in the Get-Cluster and Get-DrsRecommendation cmdlets.

For the Resource Distribution Chart you can use the Get-Stat cmdlet. As a matter of fact I'm preparing a post on that chart.

____________

Blog: LucD notes

Twitter: lucd22


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

SetClearInfra
Contributor
Contributor

LucD,

Have you had the oppertunity to create the post on the Resource Distribution Chart?

0 Kudos
LucD
Leadership
Leadership

I'm afraid not.

That's a weekend project Smiley Wink

____________

Blog: LucD notes

Twitter: lucd22


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

0 Kudos
NHammes
Contributor
Contributor

Hello all - I am very new to the PowerCLI world and working every day to learn more, but I was wondering if anyone ever got a script together to gather the information listed originally in this post? This would be an incredibly useful script for initial reviews of VMware platforms...

Thanks and thanks for all the other great scripts you guys continue to put out here for all of us to use and learn from.

Nate

0 Kudos
simonadams
Contributor
Contributor

Does anyone know whether the resource distribution charts can be extracted and reported on with Power CLI ?

Or maybe more to the point, has it been done yet ??

0 Kudos