This script will change the resource allocation of a given vSphere VM. By default, the allocation is increased one ‘SharesLevel’ for CPU, HDD, Memory or all three.
If the SharesLevel for a resource is ‘Custom’ this will not be changed. ALL hard disks will be set to a new SharesLevel based on the current level of the FIRST disk. Example, script is set to Increase level for All resources:
CPU SharesLevel ‘Normal’ —> CPU ShareLevel ‘High’
Memory SharesLevel ‘Custom’ —> Memory SharesLevel ‘Custom’
FIRST HDD SharesLevel ‘Low’, SECOND HDD SharesLevel ‘Normal’ —> ALL HDD SharesLevel ‘Normal’
This script returns the details of the target machine CPU(s) as reported by the OS via WMI, including properties like max clock speed, revision, and status.
Use the Verbose option for extra details.
Show the average usage for each CPU over a specified period of time.
Can help to spot overloaded or over specified vCPU allocations for computers although the SBA should be run a number of times, particularly when under peak usage/load.
Capture Period – the number of seconds to monitor CPU usage for