Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 231085

Script to determine Datastore free space minus new VM

$
0
0

Was hoping someone could provide some assistance, I'm at the end of my googling ability unfortunately and am looking to do the following :

 

  • Import a list of VMs from a CSV to be migrated to a new Datastore/datastore cluster
  • Check the amount of free space on the DS *after* the server would be migrated (current datastore free space minus VM UsedSpace)
  • Calculate the total space of the DS minus reserve (CapacityMB * .xx)
  • If free space after migration is -ge capacity minus reserve do not migrate.

 

I've tried doing a few variations but it seems like the datastore and VM numbers are in different formats.

 

Thank you!


Viewing all articles
Browse latest Browse all 231085

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>