Win32_PerfRawData_UserPinPerf 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_PerfRawData_UserPinPerf 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_PerfRawData_UserPinPerf_LCUPINSVC00UPRPProcessing') 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.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)) if obj.UPINSVC000TotalUPRPMessagesReceived != None: print("UPINSVC000TotalUPRPMessagesReceived:" + str(obj.UPINSVC000TotalUPRPMessagesReceived)) if obj.UPINSVC001UPRPMessagesReceivedPersec != None: print("UPINSVC001UPRPMessagesReceivedPersec:" + str(obj.UPINSVC001UPRPMessagesReceivedPersec)) if obj.UPINSVC002TotalUPRPRequestsReceived != None: print("UPINSVC002TotalUPRPRequestsReceived:" + str(obj.UPINSVC002TotalUPRPRequestsReceived)) if obj.UPINSVC003UPRPRequestsReceivedPersec != None: print("UPINSVC003UPRPRequestsReceivedPersec:" + str(obj.UPINSVC003UPRPRequestsReceivedPersec)) if obj.UPINSVC004TotalUPRPResponsesReceived != None: print("UPINSVC004TotalUPRPResponsesReceived:" + str(obj.UPINSVC004TotalUPRPResponsesReceived)) if obj.UPINSVC005UPRPResponsesReceivedPersec != None: print("UPINSVC005UPRPResponsesReceivedPersec:" + str(obj.UPINSVC005UPRPResponsesReceivedPersec)) if obj.UPINSVC006NumberofExceptionsDuringUPRPSerialization != None: print("UPINSVC006NumberofExceptionsDuringUPRPSerialization:" + str(obj.UPINSVC006NumberofExceptionsDuringUPRPSerialization)) if obj.UPINSVC007NumberofExceptionsDuringUPRPMessageProcessing != None: print("UPINSVC007NumberofExceptionsDuringUPRPMessageProcessing:" + str(obj.UPINSVC007NumberofExceptionsDuringUPRPMessageProcessing)) if obj.UPINSVC008NumberofResolveUserrequestsreceived != None: print("UPINSVC008NumberofResolveUserrequestsreceived:" + str(obj.UPINSVC008NumberofResolveUserrequestsreceived)) if obj.UPINSVC009NumberofGetEncryptionKeyrequestsreceived != None: print("UPINSVC009NumberofGetEncryptionKeyrequestsreceived:" + str(obj.UPINSVC009NumberofGetEncryptionKeyrequestsreceived)) if obj.UPINSVC010NumberofUnlockPinrequestsreceived != None: print("UPINSVC010NumberofUnlockPinrequestsreceived:" + str(obj.UPINSVC010NumberofUnlockPinrequestsreceived)) if obj.UPINSVC011NumberofGetPinInforequestsreceived != None: print("UPINSVC011NumberofGetPinInforequestsreceived:" + str(obj.UPINSVC011NumberofGetPinInforequestsreceived)) if obj.UPINSVC012NumberofVerifyPinrequestsreceived != None: print("UPINSVC012NumberofVerifyPinrequestsreceived:" + str(obj.UPINSVC012NumberofVerifyPinrequestsreceived)) if obj.UPINSVC013NumberofUpdatePinrequestsreceived != None: print("UPINSVC013NumberofUpdatePinrequestsreceived:" + str(obj.UPINSVC013NumberofUpdatePinrequestsreceived)) print("") print("########") print("")