VMware Cloud Community
DannyChapman
Contributor
Contributor

Performance data of all vms in a specific cluster(s)

I know this has probably been answered before but I can't find it. Any help is appreciated.

I am looking to connect to a vcenter server and query 3 different clusters, Clus1/2/3.

I want to pull a list of all vms and gather performance metrics over the past 30 days.

I am looking for a script that will create a table similar to this:

vmname | Cluster | Allocated Mem | Max Mem Usage | Avg Mem Usage | Allocated Storage (mb) | Storage Used | CPU Avg | CPU Max | Network Usage (max) | Network Usage (Avg)

Thank you greatly in advance.

Reply
0 Kudos
3 Replies
daphnissov
Immortal
Immortal

This would either be a PowerCLI script or if you have vROps then a view and report. If you have vROps that's probably the way to go.

Reply
0 Kudos
DannyChapman
Contributor
Contributor

That's what I'm looking for....a PowerCli script to do this.

Reply
0 Kudos
imacfj
Enthusiast
Enthusiast

I dont have a script to hand, however, below is a great article written about retrieving stats using powercli;

PowerCLI & vSphere statistics - Part 1 - The basics - LucD notes

Reply
0 Kudos