Automation

 View Only
  • 1.  VM Performance Data to CSV

    Posted Jul 17, 2015 07:57 PM

    I'm trying to come up with a script to pull information for a VM (or in this case 12) for a set time frame of apx 90 min (in 5 min intervals).

    Stats to pull:

    1.      CPU Counters
      • %SYS
      • %RDY
      • %USED
      • GID
      • NWLD
      • %CSTP
      • %MLMTD
      • %SWPWT
    2. Storage Counters
      1. ABRTS/s
      2. ACTV
      3. DAVG/cmd
      4. GAVG/cmd
      5. KAVG/cmd
      6. vi. QUED
      7. vii. RESETS/s
    3. Memory Counters
      1. MCTLSZ
      2. SWCUR
      3. SWR/s
      4. SWW/s
    4. Network Counters
      1. %DRPTX
      2. %DRPRX

    Can this be done for the times we were not able to provide a report from ESXTOP?  This vCenter is not in our vROPS environment or I would create a report for it.



  • 2.  RE: VM Performance Data to CSV

    Posted Jul 17, 2015 11:04 PM

    Are you asking if this can be done with the Get-EsxTop cmdlet ?



  • 3.  RE: VM Performance Data to CSV

    Posted Jul 18, 2015 11:20 PM

    Yes, can this be done in a script using Get-ESXTop (or other) cmdlets?  If so, has someone already done something similar?



  • 4.  RE: VM Performance Data to CSV

    Posted Jul 19, 2015 08:46 AM

    Yes, that is possible.

    See my Hitchhiker’s Guide to Get-EsxTop – Part 1 for example.

    Not sure if all the metrics you listed are mapped though.

    You will need to compile the list of available metrics first (script in my post)