Can anyone help me how to get VM's idle time?
How do you define the "idle time" ?
This is what I am wondering too. My boss request me to list out the idle VM. Is idle VM = Vm that is online but doesnt have any I/O by its network ussage?
Idle time is normally the time when the CPU has no work.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Exactly, Idle time normally means different things to different people, if you said it was low to none CPU usage your are in danger of including VMs which may be used for monthly or yearly batch jobs.
If you say its machines that haven't been logged into in x days then you are in danger of including servers which are fully used but not logged into.
This is really one of those things that comes down to your own policy, of course you can use the list to narrow down the search for idle VMs or give an indication but it really does rely on your business procedures and practices.
so can I identify the Idle VM by CPU I/O = 0?
You could check the average CPU over an amount of time and report the ones under x%