VMware Cloud Community
peter79
Enthusiast
Enthusiast
Jump to solution

Collecting performance data in poswershell

Guys,

I'm fairly new to powershell so forgive any stupid questions I may ask.

I'm looking to gather the following information

VM Level ESX Level Cluster Level

CPU usuage average % % %

CPU usuage peak % % %

CPU usuage low % % %

CPU usuage peak time date & time date & time date & time

CPU usuage low time date & time date & time date & time

CPU Ready time Milliseconds n/a n/a

Memory usuage average % % %

Memory usuage peak % % %

Memory usuage low % % %

Storage Capacity % % n/a

IOPs #/sec #/sec n/a

Latency Milliseconds Milliseconds n/a

Network throughput Mbit/sec Mbit/sec n/a

I appreciate there is a lot of info there and I dont expect to get it all. I just want to know if its possible? If its possible would anyone have the scripts for getting the top 5 VM's for average CPU and memory usage over a week or 2 weeks time period?

Thanks in advance guys.

0 Kudos
1 Solution

Accepted Solutions
yboychev
Hot Shot
Hot Shot
Jump to solution

Take a look at the Get-Stat cmdlet. Play around a little bit and you'll find out that the needed information could be retrieved with that cmdlet. You may also search the forum for some scripts with Get-Stat that will give you some heads up.

Best regards,

Yavor

PowerCLI team

View solution in original post

0 Kudos
1 Reply
yboychev
Hot Shot
Hot Shot
Jump to solution

Take a look at the Get-Stat cmdlet. Play around a little bit and you'll find out that the needed information could be retrieved with that cmdlet. You may also search the forum for some scripts with Get-Stat that will give you some heads up.

Best regards,

Yavor

PowerCLI team

0 Kudos