VMware Cloud Community
MattGGS
Contributor
Contributor

VM DRS Score per VM via powercli?

The VM DRS Score can be viewed per cluster per VM in vCenter.   This per VM score shows which VMs are the most unhappy per cluster.   I would like to export this info via Powercli on regular schedule so that I can correlate the DRS migrations to their VM DRS Score relative to the time of migration.

William Lam has a script that reports on VM DRS Score ranges in buckets,  but not per VM:

https://williamlam.com/2022/01/retrieving-vm-drs-score-using-vsphere-api-and-powercli.html

Is this currently possible via PowerCLI or any VMware API?

Thanks

 

 

Labels (2)
Tags (1)
Reply
0 Kudos
3 Replies
LucD
Leadership
Leadership

Are you sure about the "... per VM ..."?
Afaik, the score for VMs is in buckets, not per individual VM.


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

Reply
0 Kudos
MattGGS
Contributor
Contributor

In vCenter:   Cluster->Monitor->VM DRS Score

Lists all VMs in cluster by current DRS Score.

vmdrsscroe.gif

Reply
0 Kudos
LucD
Leadership
Leadership

I see.
No, I'm afraid I don't know of any API that could provide that info.
It wouldn't be the first private API used in the Web Client.


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