vSphere Environment Analysis
vSphere Infrastructure analysis is important, so I wrote this script to help me to easily get a quick understanding of a given environment. This grew out of the CPU Ready script that I wrote several months ago, in addition to CPU Ready detection, it can check for Memory problems as well as report the maximum CPU Usage and Active Memory for every VM in an environment. Usage: vm-analyze.ps1 -Stat <metric to examine> -VM <VM to examine> -Days <# of days to examine> -Threshold <Threshold % as an integer above which to report CPU Ready> The script accepts the following for the Stat option: cpuReady memProblem cpuMax memMax The -VM option is optional - if it is included (as the name of a VM), the script will perform its work on that specific VM, otherwise it will analyze all VMs in the inventory. The -Days option specifies how far back to analyze; it defaults to 6 days if not specified. This can be important to play around with, as some of the examine