HyperVHypervisorRootVirtualProcessor - WMI sample in VBScript
The foundations for Manageability in Windows 2019/2012/2008/ and Windows 10/8/7/Vista/XP are Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).
ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself.
On this site, you can find many WMI samples.
The HyperVHypervisorRootVirtualProcessor WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
HyperVHypervisorRootVirtualProcessor
Example(s)
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * From Win32_PerfFormattedData_HvStats_HyperVHypervisorRootVirtualProcessor") For Each objItem in colItems WScript.Echo "AddressDomainFlushesPersec:" & objItem.AddressDomainFlushesPersec WScript.Echo "AddressSpaceEvictionsPersec:" & objItem.AddressSpaceEvictionsPersec WScript.Echo "AddressSpaceFlushesPersec:" & objItem.AddressSpaceFlushesPersec WScript.Echo "AddressSpaceSwitchesPersec:" & objItem.AddressSpaceSwitchesPersec WScript.Echo "APICEOIAccessesPersec:" & objItem.APICEOIAccessesPersec WScript.Echo "APICIPIsSentPersec:" & objItem.APICIPIsSentPersec WScript.Echo "APICMMIOAccessesPersec:" & objItem.APICMMIOAccessesPersec WScript.Echo "APICSelfIPIsSentPersec:" & objItem.APICSelfIPIsSentPersec WScript.Echo "APICTPRAccessesPersec:" & objItem.APICTPRAccessesPersec WScript.Echo "Caption:" & objItem.Caption WScript.Echo "ControlRegisterAccessesCost:" & objItem.ControlRegisterAccessesCost WScript.Echo "ControlRegisterAccessesPersec:" & objItem.ControlRegisterAccessesPersec WScript.Echo "CPUIDInstructionsCost:" & objItem.CPUIDInstructionsCost WScript.Echo "CPUIDInstructionsPersec:" & objItem.CPUIDInstructionsPersec WScript.Echo "DebugRegisterAccessesCost:" & objItem.DebugRegisterAccessesCost WScript.Echo "DebugRegisterAccessesPersec:" & objItem.DebugRegisterAccessesPersec WScript.Echo "Description:" & objItem.Description WScript.Echo "EmulatedInstructionsCost:" & objItem.EmulatedInstructionsCost WScript.Echo "EmulatedInstructionsPersec:" & objItem.EmulatedInstructionsPersec WScript.Echo "ExternalInterruptsCost:" & objItem.ExternalInterruptsCost WScript.Echo "ExternalInterruptsPersec:" & objItem.ExternalInterruptsPersec WScript.Echo "Frequency_Object:" & objItem.Frequency_Object WScript.Echo "Frequency_PerfTime:" & objItem.Frequency_PerfTime WScript.Echo "Frequency_Sys100NS:" & objItem.Frequency_Sys100NS WScript.Echo "GlobalGVARangeFlushesPersec:" & objItem.GlobalGVARangeFlushesPersec WScript.Echo "GPASpaceHypercallsPersec:" & objItem.GPASpaceHypercallsPersec WScript.Echo "GuestPageTableMapsPersec:" & objItem.GuestPageTableMapsPersec WScript.Echo "HLTInstructionsCost:" & objItem.HLTInstructionsCost WScript.Echo "HLTInstructionsPersec:" & objItem.HLTInstructionsPersec WScript.Echo "HypercallsCost:" & objItem.HypercallsCost WScript.Echo "HypercallsPersec:" & objItem.HypercallsPersec WScript.Echo "IOInstructionsCost:" & objItem.IOInstructionsCost WScript.Echo "IOInstructionsPersec:" & objItem.IOInstructionsPersec WScript.Echo "IOInterceptMessagesPersec:" & objItem.IOInterceptMessagesPersec WScript.Echo "LargePageTLBFillsPersec:" & objItem.LargePageTLBFillsPersec WScript.Echo "LocalFlushedGVARangesPersec:" & objItem.LocalFlushedGVARangesPersec WScript.Echo "LogicalProcessorHypercallsPersec:" & objItem.LogicalProcessorHypercallsPersec WScript.Echo "LogicalProcessorMigrationsPersec:" & objItem.LogicalProcessorMigrationsPersec WScript.Echo "LongSpinWaitHypercallsPersec:" & objItem.LongSpinWaitHypercallsPersec WScript.Echo "MemoryInterceptMessagesPersec:" & objItem.MemoryInterceptMessagesPersec WScript.Echo "MSRAccessesCost:" & objItem.MSRAccessesCost WScript.Echo "MSRAccessesPersec:" & objItem.MSRAccessesPersec WScript.Echo "MWAITInstructionsCost:" & objItem.MWAITInstructionsCost WScript.Echo "MWAITInstructionsPersec:" & objItem.MWAITInstructionsPersec WScript.Echo "Name:" & objItem.Name WScript.Echo "OtherHypercallsPersec:" & objItem.OtherHypercallsPersec WScript.Echo "OtherInterceptsCost:" & objItem.OtherInterceptsCost WScript.Echo "OtherInterceptsPersec:" & objItem.OtherInterceptsPersec WScript.Echo "OtherMessagesPersec:" & objItem.OtherMessagesPersec WScript.Echo "PageFaultInterceptsCost:" & objItem.PageFaultInterceptsCost WScript.Echo "PageFaultInterceptsPersec:" & objItem.PageFaultInterceptsPersec WScript.Echo "PageInvalidationsCost:" & objItem.PageInvalidationsCost WScript.Echo "PageInvalidationsPersec:" & objItem.PageInvalidationsPersec WScript.Echo "PageTableAllocationsPersec:" & objItem.PageTableAllocationsPersec WScript.Echo "PageTableEvictionPersecs:" & objItem.PageTableEvictionPersecs WScript.Echo "PageTableReclamationsPersec:" & objItem.PageTableReclamationsPersec WScript.Echo "PageTableResetsPersec:" & objItem.PageTableResetsPersec WScript.Echo "PageTableValidationsPersec:" & objItem.PageTableValidationsPersec WScript.Echo "PageTableWriteInterceptsPersec:" & objItem.PageTableWriteInterceptsPersec WScript.Echo "PendingInterruptsCost:" & objItem.PendingInterruptsCost WScript.Echo "PendingInterruptsPersec:" & objItem.PendingInterruptsPersec WScript.Echo "PercentGuestRunTime:" & objItem.PercentGuestRunTime WScript.Echo "PercentHypervisorRunTime:" & objItem.PercentHypervisorRunTime WScript.Echo "PercentTotalRunTime:" & objItem.PercentTotalRunTime WScript.Echo "ReflectedGuestPageFaultsPersec:" & objItem.ReflectedGuestPageFaultsPersec WScript.Echo "SmallPageTLBFillsPersec:" & objItem.SmallPageTLBFillsPersec WScript.Echo "SyntheticInterruptHypercallsPersec:" & objItem.SyntheticInterruptHypercallsPersec WScript.Echo "SyntheticInterruptsPersec:" & objItem.SyntheticInterruptsPersec WScript.Echo "Timestamp_Object:" & objItem.Timestamp_Object WScript.Echo "Timestamp_PerfTime:" & objItem.Timestamp_PerfTime WScript.Echo "Timestamp_Sys100NS:" & objItem.Timestamp_Sys100NS WScript.Echo "TotalInterceptsCost:" & objItem.TotalInterceptsCost WScript.Echo "TotalInterceptsPersec:" & objItem.TotalInterceptsPersec WScript.Echo "TotalMessagesPersec:" & objItem.TotalMessagesPersec WScript.Echo "VirtualInterruptHypercallsPersec:" & objItem.VirtualInterruptHypercallsPersec WScript.Echo "VirtualInterruptsPersec:" & objItem.VirtualInterruptsPersec WScript.Echo "VirtualMMUHypercallsPersec:" & objItem.VirtualMMUHypercallsPersec WScript.Echo "VirtualProcessorHypercallsPersec:" & objItem.VirtualProcessorHypercallsPersec WScript.Echo "" WScript.Echo "########" WScript.Echo "" Next