Zachary Loeber

The personal website of Zachary Loeber.

VMware: VMware Report Generation GUI

Its been a while since I posted something new. This GUI is meant to configure regular vmware report generation. You are able to select reporting scoped to the whole farm down to individual hosts. Reports can be emailed or saved and be generated based on custom thresholds.

Version History

0.0.1 – 02/12/2013
– First release
0.0.2 – 03/29/2013
– Removed clear text password from config file
– Allowed for alternate credentials for wmi calls
– Many GUI updates and fixes.

History

The short history of this script stems from two side projects I had started several months ago. One was to better template out an option saving gui/script/xml project for future script releases. Another was for redoing some of the vmware reporting scripts I’ve used in the past. Currently the generated report is in a pretty ugly format (for me at least) but it is serviceable for the data currently gathered. In the future I aim to change the template to allow for stylized reports as well as allow a rudimentary automatic scheduling of the script from within the GUI.

Options

There are several options for those interested in monitoring their environment. Some options include;

General Options

  • Generating reports if thresholds are surpassed

Virtual Center

  • VC event errors (with threshold in # of days)
  • VMs created/cloned/deleted
  • VC windows server errors/warnings (with threshold in # of days)
  • VC windows server service status

ESX/vSphere Hosts

  • Hosts not responding
  • Hosts in maintenance
  • Host datastore utilization (with % free utilization threshold)

Virtual Machines

  • VM snapshots (with threshold in # of days)
  • VMs with thin provisioned disks
  • VMs with no vmware tools
  • VMs with connected CD drives
  • VMs with connected floppy drives

Usage

The GUI is used to perform an initial test connection to the server and to save options. Once connected to the server you can select more granular scoped reports based on the datacenter, cluster, and host if desired. Currently you need to report on the whole farm to get virtual center reporting options. Once the configuration is saved another script, VMware-Report.ps1 can be used to schedule the job (it will automatically load the saved xml config file and run without any interface).

Note: Alternately you can just modify the Globals.ps1 script variables and not use either the save file or the gui and the VMware-Report.ps1 script will run on that information alone.

Another Note: If you want to generate several kinds of reports at different times simply copy all three ps1 files to another directory and create a new config file with the GUI and use scheduled tasks to run the script.

Screenshots

vmware-report-gui-1 vmware-report-gui-2 vmware-report-gui-3 vmware-report-gui-4

Download: VMware-Report-GUI

At VMware Community Site

At Microsoft Script Gallery

comments powered by Disqus