Automation

 View Only
  • 1.  Collecting performance data in poswershell

    Posted Dec 10, 2010 11:50 AM

    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.



  • 2.  RE: Collecting performance data in poswershell
    Best Answer

    Posted Dec 10, 2010 12:07 PM

    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