Article
RSS
CODE: Check available CPU reserve under Virtual Server

Ben Armstrong provides the community with yet another useful script.

Set vs = CreateObject("VirtualServer.Application")

Wscript.Echo "Available system capacity: "  & vs.AvailableSystemCapacity

 

This will report the available system capacity as a percent.  Note that this is specifically refering to the ability to reserve CPU resource for a virtual machine - and not how much CPU resource is actually being used.  By default virtual machines have a CPU reserve of 0%.  You could have any number of these virtual machines running - and still have this script report that 100% CPU reserves were available (as this is technically true).  Though once you start setting CPU reserves on virtual machines - this script will tell you exactly how much CPU capacity you have left.

To read the original posting, or to comment and thank Ben Armstrong for sharing these scripts, go here.

 

Published Sunday, May 21, 2006 8:24 AM by David Marshall
Filed under:
Share this post: del.ici.ousDel.ici.ous Digg ThisDigg Newsvine ThisNewsvine Reddit ThisReddit Slashdot It!Slashdot TechnoratiTechnorati
Comments
There are no comments for this post.
To post a comment, you must be a registered user. Registration is free and easy! Sign up now!
Calendar
<May 2006>
SuMoTuWeThFrSa
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910