Win32_PerfFormattedData_McuFactoryPerf python sample code
The foundations for Manageability in Windows is 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. The Win32_PerfFormattedData_McuFactoryPerf WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
Sample Code
from win32com.client import GetObject
objWMI = GetObject('winmgmts:').InstancesOf('Win32_PerfFormattedData_McuFactoryPerf_LCMCUF00MCUFactory')
for obj in objWMI:
if obj.Caption != None:
print("Caption:" + str(obj.Caption))
if obj.Description != None:
print("Description:" + str(obj.Description))
if obj.Frequency_Object != None:
print("Frequency_Object:" + str(obj.Frequency_Object))
if obj.Frequency_PerfTime != None:
print("Frequency_PerfTime:" + str(obj.Frequency_PerfTime))
if obj.Frequency_Sys100NS != None:
print("Frequency_Sys100NS:" + str(obj.Frequency_Sys100NS))
if obj.MCUF000TotalGetMCURequestsReceived != None:
print("MCUF000TotalGetMCURequestsReceived:" + str(obj.MCUF000TotalGetMCURequestsReceived))
if obj.MCUF001TotalGetMCURequestsFailed != None:
print("MCUF001TotalGetMCURequestsFailed:" + str(obj.MCUF001TotalGetMCURequestsFailed))
if obj.MCUF002TotalemptyGetMCUResponses != None:
print("MCUF002TotalemptyGetMCUResponses:" + str(obj.MCUF002TotalemptyGetMCUResponses))
if obj.MCUF003GetMCURequestsReceivedPersec != None:
print("MCUF003GetMCURequestsReceivedPersec:" + str(obj.MCUF003GetMCURequestsReceivedPersec))
if obj.MCUF004TotalHealthNotificationsReceived != None:
print("MCUF004TotalHealthNotificationsReceived:" + str(obj.MCUF004TotalHealthNotificationsReceived))
if obj.MCUF005TotalHealthNotificationsFailed != None:
print("MCUF005TotalHealthNotificationsFailed:" + str(obj.MCUF005TotalHealthNotificationsFailed))
if obj.MCUF006HealthNotificationsReceivedPersec != None:
print("MCUF006HealthNotificationsReceivedPersec:" + str(obj.MCUF006HealthNotificationsReceivedPersec))
if obj.MCUF007TotalDrainRequestsReceived != None:
print("MCUF007TotalDrainRequestsReceived:" + str(obj.MCUF007TotalDrainRequestsReceived))
if obj.MCUF008TotalDrainRequestsAccepted != None:
print("MCUF008TotalDrainRequestsAccepted:" + str(obj.MCUF008TotalDrainRequestsAccepted))
if obj.MCUF009TotalDrainRequestsRejected != None:
print("MCUF009TotalDrainRequestsRejected:" + str(obj.MCUF009TotalDrainRequestsRejected))
if obj.Name != None:
print("Name:" + str(obj.Name))
if obj.Timestamp_Object != None:
print("Timestamp_Object:" + str(obj.Timestamp_Object))
if obj.Timestamp_PerfTime != None:
print("Timestamp_PerfTime:" + str(obj.Timestamp_PerfTime))
if obj.Timestamp_Sys100NS != None:
print("Timestamp_Sys100NS:" + str(obj.Timestamp_Sys100NS))
print("")
print("########")
print("")
