VMware Cloud Community
mhsi
Contributor
Contributor

vCenter - Logging virtual machine shutdown/startup

I am looking through the Tasks & Events for the Datacenter, the Cluster, the Hosts, and the Virtual Machines, but I don't see any logs in the "Tasks" or "Events" for if/when a virtual machine is shutdown or started up via the machine.  It logs if I shutdown/startup using vCenter, but I was wondering if there was a way I could log shutdown/startup events that are triggered from the virtual machine.

Tags (3)
Reply
0 Kudos
4 Replies
sparrowangelste
Virtuoso
Virtuoso

you are probably better off hitting the vm's event logs itself.

you could setup alarams for the vm when its powered on or off.

not ideal but can work.

--------------------- Sparrowangelstechnology : Vmware lover http://sparrowangelstechnology.blogspot.com
mhsi
Contributor
Contributor

By "hitting the vm's event logs", do you mean going through the "Tasks and Events" tab for the virtual machine?  'cause that just filters the vCenter events for that machine and not the actual VM events.  I'm not sure what other logs to check on vCenter to see this info.

I appreciate the idea, but I don't want to be alerted every time the system goes up or down.

Reply
0 Kudos
sparrowangelste
Virtuoso
Virtuoso

mhsi wrote:

By "hitting the vm's event logs", do you mean going through the "Tasks and Events" tab for the virtual machine?  'cause that just filters the vCenter events for that machine and not the actual VM events.  I'm not sure what other logs to check on vCenter to see this info.

I appreciate the idea, but I don't want to be alerted every time the system goes up or down.

I mean monitioring the vm's event logs, in windows.

there is software to do that or you can run a powershell script that hits the event log every day for ID 6005

http://www.microsoft.com/technet/support/ee/transform.aspx?ProdName=Windows+Operating+System&ProdVer...

--------------------- Sparrowangelstechnology : Vmware lover http://sparrowangelstechnology.blogspot.com
Reply
0 Kudos
lakshya32
Enthusiast
Enthusiast

Hi

Welcome to the communities.

On event viewer please check if any event id number 6005 & 6006 .

6005 indicate start up & 6 indicate shutdown.

"When you fail to plan, you plan to fail."
Reply
0 Kudos