In an earlier post, I have provided a script which can run in the background to detect heart beat loss of a virtual machine and then trigger a hard reset. In this post, I am making an update to the original script available. There is just a minor update to the logging mechanism. You can now choose to log all the success / fail events to Windows application event log instead of a text file. You can download the script update at the end of this post
To enable logging to Windows event log, run the script using
cscript.exe c:\scripts\VMHeartBeat.vbs /log:event
Anytime there is a VM heart beat failure or loss, an event log will appear under Application logs of the event viewer. It will look something like this
As you can see, these event logs carry WSH as the source. Hope this helps.
[download id=”5″ format=”4″]