Wednesday, November 29, 2017

VMware Datastore Tracker

I used an old script by Hugo Peeters to create this script as an "idiot light" for VMware SAN volumes.  It tracks them over time, compares to the previous one and stores the data for future processing.  I have another script that can ingest the data to produce graphs of data use over months.

The script was recently updated to support the new v6 commandlets.  It produces an nice clean HTML email that has gains color coded green, losses color coded red, and the percentage free in a color scale from dark green to red.

Again, the script was produced from numerous sources.  Here is a sanitized example of the email message generated by the script.  The color change in the "vCenter" column indicates data from 2 seperate vCenter instances.  Note that the vCenter instance names are hard coded half way down (I got lazy...) so they need to be edited in the config file and script.

My scripts are all on the MS PowerShell Gallery now so that I'm not editing these posts with each version update.   You can find this script, named "Datastore-Tracker.ps1", at the main library link of: https://www.powershellgallery.com/profiles/Kcmjr/

Edit as needed for your environment before running.



No comments:

Post a Comment