VMware Cloud Community
hakhak
Contributor
Contributor

Get VM idle time

Can anyone help me how to get VM's idle time? 

0 Kudos
6 Replies
alanrenouf
VMware Employee
VMware Employee

How do you define the "idle time" ?

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
0 Kudos
hakhak
Contributor
Contributor

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? 

0 Kudos
LucD
Leadership
Leadership

Idle time is normally the time when the CPU has no work.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

alanrenouf
VMware Employee
VMware Employee

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.

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com
0 Kudos
hakhak
Contributor
Contributor

so can I identify the Idle VM by CPU I/O = 0?

0 Kudos
alanrenouf
VMware Employee
VMware Employee

You could check the average CPU over an amount of time and report the ones under x%

Blog: http://virtu-al.net Twitter: http://twitter.com/alanrenouf Co-author of the PowerCLI Book: http://powerclibook.com