Reporting the health of your vSphere environment with vCheck
In this section of the book, I want to introduce a PowerCLI script that every vSphere admin should use. The vCheck script written by Alan Renouf can check your vSphere environment for various configuration issues and report them in HTML format. The vCheck script reports several issues, such as VMs having CD-ROMs connected, VMs with CPU or memory reservations configured, VMs ballooning or swapping, VMs with less than 100 MB free space on a disk, VMs with an old hardware version, and VMs that do not have VMware Tools installed. These are just a few examples. The script reports many more issues.
The script is written in a modular way, and it uses a plugin for every check it performs. It is very easy to write plugins and add them to the script. There are plugins created to check other technologies such as Microsoft Exchange, vCloud Director, vCloud Air, System Center Virtual Machine Manager (SCVMM), and Cisco UCS. Reading the vCheck...