Automation

 View Only
  • 1.  VM DRS Score per VM via powercli?

    Posted Jan 29, 2024 03:17 PM

    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

     

     



  • 2.  RE: VM DRS Score per VM via powercli?

    Posted Jan 29, 2024 04:54 PM

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



  • 3.  RE: VM DRS Score per VM via powercli?

    Posted Jan 29, 2024 06:52 PM

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

    Lists all VMs in cluster by current DRS Score.

    vmdrsscroe.gif



  • 4.  RE: VM DRS Score per VM via powercli?

    Posted Jan 29, 2024 07:37 PM

    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.