Looking at the VM Heartbeat with WMI |
Friday, 13 October 2006 by Michel Roth | |||
"Virtual Server also exposes a fair amount of information on the virtual machine heartbeat through WMI. The virtual machine heartbeat is generated by Virtual Machine Additions when it is installed inside the virtual machine. This script returns all of the heartbeat related WMI counters for each virtual machine: Set vsWMIObj = GetObject("winmgmts:\\.\root\vm\virtualserver") Set vms = vsWMIObj.ExecQuery("SELECT * FROM VirtualMachine",,48) For Each vm in vms Wscript.Echo "==============================================" Wscript.Echo "Virtual machine: " & vm.Name Wscript.Echo "Heartbeat Count: " & vm.HeartbeatCount Wscript.Echo "Heartbeat Percentage: " & vm.HeartbeatPercentage Wscript.Echo "Heartbeat Interval: " & vm.HeartbeatInterval Wscript.Echo "Heartbeat Rate: " & vm.HeartbeatRate Next"
Show/Hide comment form
|