VMware Cloud Community
vivari
Enthusiast
Enthusiast
Jump to solution

How to list top 10 vms with high IOPS on each datastore using vrops 6.1

Hi ,

I want to list the top 10 vms based on IOPS on  a selected datastore.

is it possible ? if yes how?

Durga

Tags (1)
Reply
0 Kudos
1 Solution

Accepted Solutions
vivari
Enthusiast
Enthusiast
Jump to solution

Hello vman,

I am very much aware how to work with powershell, the same f.....king way i tried before my last question, and it didnot worked.

here is the solution, what i wanted.

https://vxpresss.blogspot.in/2015/07/monitor-datastores-using-datastore.html#comment-form

View solution in original post

Reply
0 Kudos
9 Replies
r0ck
Enthusiast
Enthusiast
Jump to solution

We try to do the same with vrops 6.2.1..

until now we had no success. please help us.

Reply
0 Kudos
carvaled
Enthusiast
Enthusiast
Jump to solution

I have a way to do this but it requires a powershell script and the suite-api... please answer the questions below and i will automate it for you.

Are you looking at the top 10 VM's by MAX or AVG?

Top 10 within what time range? 1h, 24h, 7 days ... etc?

Which IOPS do you want to sort by? read or write?

Reply
0 Kudos
vivari
Enthusiast
Enthusiast
Jump to solution

I am looking for top 10 vms by read IOPS for 24 hrs

Reply
0 Kudos
carvaled
Enthusiast
Enthusiast
Jump to solution

I  have finished the script and report, i will create a blog post about it tomorrow and share it with you.

Reply
0 Kudos
carvaled
Enthusiast
Enthusiast
Jump to solution

here is my solution, I wrote a blog post about it and you can pickup the required files from my blog.

vRops – Report – suite-api – Datastore Top10 VM’s by IOPS | vMan

Reply
0 Kudos
vivari
Enthusiast
Enthusiast
Jump to solution

from above blog, can u explain, where to place the .ps1 file and home.

from where to run the script?

where from vrops or from powershell?

lot of confusion

Reply
0 Kudos
carvaled
Enthusiast
Enthusiast
Jump to solution

have you ever used powershell? if not make sure you first run... Set-ExecutionPolicy RemoteSigned but make sure you understand what that means for the security of the server or workstation you change that on.

You can copy the script anywhere for example EG: D:\vROPS\Top10VMIOPSbyDatastore.ps1


inside D:\vROPS\ create empty folders called


D:\vROPS\collection

D:\vROPS\config

D:\vROPS\reports

Make sure you create the credentials file in the correct folder (save the username and password you need to connect to vRops), the Read Only role will not work, you must use atleast Content Administrator to be able to execute reports in vROPs.

$cred = Get-Credential

$cred | Export-Clixml -Path "d:\vRops\Config\HOME.xml"


Make sure to update the values below to match the above file and the vRops Address of your server


You can leave the $ReportID and $objtype with the default values below...


3

4

5

6

7

8

9

param

(

    [String]$vRopsAddress = 'vROps.vMan.ch',

    [String]$objtype = 'Datastore',

    [String]$creds = 'HOME',

    [String]$ReportID = '5c7bb333-2e74-440d-8f60-28cc26d61760'

)

Reply
0 Kudos
vivari
Enthusiast
Enthusiast
Jump to solution

Hello vman,

I am very much aware how to work with powershell, the same f.....king way i tried before my last question, and it didnot worked.

here is the solution, what i wanted.

https://vxpresss.blogspot.in/2015/07/monitor-datastores-using-datastore.html#comment-form

Reply
0 Kudos
carvaled
Enthusiast
Enthusiast
Jump to solution

Well that is a simple dashboard which i assumed you had already attempted

my approach was a report...

Reply
0 Kudos