VMware vCenter Operations Management Suite can be expensive. If you are like me and there is no budget for vCOPs, this script will give you a vCPU & vRAM recommendations based off of past virtual machine usage. The following script will connect to your vCenter, grab historical performance data and provide recommendations that were designed around two vKernel whitepapers. The following whitepapers are:
- vKernel VM Memory (vRAM) Sizing Considerations – bit.ly/1lJNovi
- vKernel vCPU Sizing Considerations – bit.ly/1xfv4if
The script is simple to use only requiring the vCenter parameter to start with all defaults:
PoorMansRecommendations.ps1 -vCenter site1.local.domain
Specifies additional authentication information. Grabbing 60 days of past performance instead of the default 30 days:
PoorManRecommendations.ps1 -vCenter site1.local.domain -Username fred -Password root -PastDays 60
Specifies more samples for accuracy and using a larger ‘building block’ for memory recommendations:
PoorMansRecommendations.ps1 -vCenter site1.local.domain -PastDays 60 -MaxSamples 25000 -MemoryBuildingBlockMB 1024
When running the script interactively, a progress bar be displayed as it calculates recommendations per virtual machine:
This should only be used as a guidance, point of reference, a conversation point or just a rough estimate. Each environment and workload characteristics are unique, please use your logic along with this data to come to a solution that is right for your environment.
Download the script: PoorMansRecommendations.ps1
Thanks for looking. Please leave any questions or comments below and have a great day!