VMware Cloud Community
vcpguy
Expert
Expert

How to know when was the VM last turned ON ?

I have inherited a environment, where lots of VM are never been used. A total waste of SAN storage space and ESX resources, is there a way, I can find out, for how long a VM has not been powered ON ?

Thanks

----------------------------------------------------------------------------- Please don't forget to reward Points for helpful hints; answers; suggestions. My blog: http://vmwaredevotee.com
0 Kudos
4 Replies
RParker
Immortal
Immortal

The only way really to tell is by the logs in VC (assuming it wasn't removed and re-added). So you can click on a VM, look at the tasks/events for that VM, and see when it was "powered on" last.

Then you can start the VM (if this is Windows) look for last updated folders, usually under documents and settings and see if you can tell if files were last modified..

Then you can look in the event viewer for that machine, and see if you can look at either audit or security, and that should give you a list. Obviously if you login you have to go back a few entries to see when someone last accessed it, and that may give a clue.

This is a tough thing to do, and I have been exploring better ways to find out this info myself... but alas, there doesn't seem to be an easy way to tell when a machine was ultimately used or last powered on realistically.. it's a manual process.

0 Kudos
Jasemccarty
Immortal
Immortal

If you log into the ESX console, look at the VMware.log file in the same directory as the .vmx file, you will be able to see the recent power ons of the VM.

Just type "more vmware.log".
Jase McCarty
http://www.jasemccarty.com
Co-Author of VMware ESX Essentials in the Virtual Data Center
(ISBN:1420070274) from Auerbach

Jase McCarty - @jasemccarty
0 Kudos
Texiwill
Leadership
Leadership

Hello,

There tends to be a new vmware.log file created for each power on of a VM as well. You can go through the logs to see when a reboot happened or a power on but you may end up going through more than one log file.


Best regards,

Edward L. Haletky

VMware Communities User Moderator

====

Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

CIO Virtualization Blog: http://www.cio.com/blog/index/topic/168354

As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

--
Edward L. Haletky
vExpert XIV: 2009-2023,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos
Jasemccarty
Immortal
Immortal

I tried to convey that, but it was a little difficult typing on an iPhone.

Jase McCarty

http://www.jasemccarty.com

Co-Author of VMware ESX Essentials in the Virtual Data Center

(ISBN:1420070274) from Auerbach

Jase McCarty - @jasemccarty
0 Kudos