How to find out when the VM was turned off in VCenter 6.5

cgeorgeisaac
cgeorgeisaac used Ask the Experts™
on
i have a few VMs in vCenter 6.5 which are OFF

How can I Get Virtual Machine Last On and Off Time using a simple method.
How can I get who logged in last

Can we find this information from ESXi Host.

Its on Windows  and Linux Environment.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Murali SripadaVMware Engineer | vExpert 18/19
Distinguished Expert 2018

Commented:
https://blogs.vmware.com/PowerCLI/2009/10/when-was-the-last-time-that-vm-was-powered-on.html

You can use powercli here using the above blog steps however the clause is it depends on your database retention policy as well and how old the task happened
cgeorgeisaacSenior Engineer

Author

Commented:
Thanks for your prompt assistance.
Where should I run the  PowerCLI.
Is there a way to find thru the  VM logs or ESXi Logs in a simpler way.
VMware Engineer | vExpert 18/19
Distinguished Expert 2018
Commented:
yes but that is tedious.. Let me give you why it is tedious.. Each VM's maintains logging, the latest log when it is powered on is kept in /vmfs/volumes/DatastoreUUID/VMFOLDER/vmware.log

If you know the VM names, with respective datastores info then you have to check each vmware.log of all 100 VMs

that should give you the info..  

Thanks,
MS
cgeorgeisaacSenior Engineer

Author

Commented:
Thanks will try that.
cgeorgeisaacSenior Engineer

Author

Commented:
That worked along with a few additional step. Many thanks.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial