Tech: Monitoring Virtual Server 2005 virtual machines heartbeat with WMI

Ben Armstrong published a new useful script, this time for monitoing hearbeat signal generated by Virtual Machine Additions installed inside Microsoft Virtual Server 2005 VMs:

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

Checke the original article for comments and updates.