Oct 10

Help me, Help you – vSphere DRS Rules


I’ve now been in my Product Management role at VMware for 9 months and it has definitely had me going at 400 MPH every single day. It’s good though, I’m able to talk with customers, meet with you all at places like VMUGs and VMworld US (I won’t be in Barcelona this year while I’m taking some paternity leave). I’m able to better understand your use-cases, your pain points, and your wish lists.

We’ve got some great things that will be talked about at VMworld Barcelona, so definitely make sure to come back and read about them here throughout the duration of the conference and later.

Our engineers are working on some great stuff that I wish I could tell you about, but you know how it is. I can’t yet… However, for now, I’m looking to you once again to help me, help you. “What do I need?” You may be asking yourselves… I’m looking for information on your DRS rules (Affinity / Anti-Affinity) for your clusters.


Before you turn away, let me tell you exactly what I’m looking for.


Output from the script

You’ll see here that I don’t want nor need specific information about your environment other than the number of DRS rules per cluster, the total number of VMs in those rules, and then a calculation of the two, giving me an average number of VMs per DRS rule. The Cluster names are not used, just simple Cluster1,2,3, etc. Simple enough?

So how do you get this info to me? I’ve made it really simple. You can use this nice little script that I made for just this occasion, which you can see on Github: Start-RulesQuery.PS1  which you can also see below. You will see exactly what it queries and the script is a simple read-only which will output the data into a CSV which it will then instruct you to email to me.

For those of you willing to take the time to do this, let me just say that I really appreciate it, as well as, this information (which is only for my consumption) is being used to help develop some more DRS goodness to make your life even better, easier, and simpler. (All you need to do is open a PowerCLI console, connect to vCenter, and update line 61 with a destination for the CSV file before pasting the code block into PowerCLI)

If you have any questions or comments, you can reach me in the usual areas: Twitter, Email, in-person, etc. Thanks for your help!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">

four × 5 =