Wednesday, 8 April 2015

PowerCli - Get-StatType

I had to produce a report to gather some statistics information over a period of time where you would normally see in the performance charts within vCenter. Using powercli you would normally run the command "get-stats" followed by the type of statistics you would like to gather.

Using "Get-StatType" helped by letting you know what type of statistics you could gather from a particular object, for example "Get-StatType -Entity %Enter Your VM Name%" would return a list of possible statistics you can get for your VM.

The type of entity you can query against are Virtual Machine, Virtual Machine Host, Cluster or Resource Pool.

No comments:

Post a Comment

Azure Resource Support for Availability Zone

Over the years, an increasing number of services are consumed in the cloud and as architects one of the key considerations is designing the ...