PowerCLI: VM stats and Google Charts

From VI-Toolkit
Jump to navigation Jump to search

VM stats using PowerCLI and Google Charts

author: Paolo Pepe

Description

The article displays a great example on how-to use powerCLI to generate an HTML page and fancy graphic charts using Google charts.

Usage

Example usage of Get-Stat powerCLI command:

Get-Stat -Entity (Get-VMHost -Name 10.0.1.62 | Get-VM | Where-Object PowerState -match "PoweredOn") -Stat $stat -Start (Get-Date).AddHours(-24) -MaxSamples (10) -IntervalMins 10 | Measure-Object Value -Average  

Location

http://hostilecoding.blogspot.com/2014/03/vmware-vm-stats-using-powercli-and.html