Win32_PerfRawData_RoutingAppPerf 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_RoutingAppPerf 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_RoutingAppPerf_LCRoutingApps00UCRoutingApplications')
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.RoutingApps000TranslatedNumbers != None:
print("RoutingApps000TranslatedNumbers:" + str(obj.RoutingApps000TranslatedNumbers))
if obj.RoutingApps001TranslatedNumberspersecond != None:
print("RoutingApps001TranslatedNumberspersecond:" + str(obj.RoutingApps001TranslatedNumberspersecond))
if obj.RoutingApps002Callstovoicemail != None:
print("RoutingApps002Callstovoicemail:" + str(obj.RoutingApps002Callstovoicemail))
if obj.RoutingApps003Callstovoicemailpersecond != None:
print("RoutingApps003Callstovoicemailpersecond:" + str(obj.RoutingApps003Callstovoicemailpersecond))
if obj.RoutingApps004CallstoSAAA != None:
print("RoutingApps004CallstoSAAA:" + str(obj.RoutingApps004CallstoSAAA))
if obj.RoutingApps005ErrorsfromUMserver != None:
print("RoutingApps005ErrorsfromUMserver:" + str(obj.RoutingApps005ErrorsfromUMserver))
if obj.RoutingApps006FailedExchangeUMcalls != None:
print("RoutingApps006FailedExchangeUMcalls:" + str(obj.RoutingApps006FailedExchangeUMcalls))
if obj.RoutingApps007FailedOutboundPSTNcalls != None:
print("RoutingApps007FailedOutboundPSTNcalls:" + str(obj.RoutingApps007FailedOutboundPSTNcalls))
if obj.RoutingApps008OutboundPSTNcalls != None:
print("RoutingApps008OutboundPSTNcalls:" + str(obj.RoutingApps008OutboundPSTNcalls))
if obj.RoutingApps009OutboundPSTNcallspersecond != None:
print("RoutingApps009OutboundPSTNcallspersecond:" + str(obj.RoutingApps009OutboundPSTNcallspersecond))
if obj.RoutingApps010Inboundcalls != None:
print("RoutingApps010Inboundcalls:" + str(obj.RoutingApps010Inboundcalls))
if obj.RoutingApps011Inboundcallspersecond != None:
print("RoutingApps011Inboundcallspersecond:" + str(obj.RoutingApps011Inboundcallspersecond))
if obj.RoutingApps012InboundContactObjectcalls != None:
print("RoutingApps012InboundContactObjectcalls:" + str(obj.RoutingApps012InboundContactObjectcalls))
if obj.RoutingApps013SuccessfulInboundcalls != None:
print("RoutingApps013SuccessfulInboundcalls:" + str(obj.RoutingApps013SuccessfulInboundcalls))
if obj.RoutingApps014Forwardedcalls != None:
print("RoutingApps014Forwardedcalls:" + str(obj.RoutingApps014Forwardedcalls))
if obj.RoutingApps015Simulringcalls != None:
print("RoutingApps015Simulringcalls:" + str(obj.RoutingApps015Simulringcalls))
if obj.RoutingApps016Delegatecalls != None:
print("RoutingApps016Delegatecalls:" + str(obj.RoutingApps016Delegatecalls))
if obj.RoutingApps017Teamcalls != None:
print("RoutingApps017Teamcalls:" + str(obj.RoutingApps017Teamcalls))
if obj.RoutingApps018Instancesofreceivinginvalidlocationprofile != None:
print("RoutingApps018Instancesofreceivinginvalidlocationprofile:" + str(obj.RoutingApps018Instancesofreceivinginvalidlocationprofile))
if obj.RoutingApps019Instanceswherenomatchinnormalizationrulesoflocationprofile != None:
print("RoutingApps019Instanceswherenomatchinnormalizationrulesoflocationprofile:" + str(obj.RoutingApps019Instanceswherenomatchinnormalizationrulesoflocationprofile))
if obj.RoutingApps020Instanceswherethematchingrulecausedafailedtranslation != None:
print("RoutingApps020Instanceswherethematchingrulecausedafailedtranslation:" + str(obj.RoutingApps020Instanceswherethematchingrulecausedafailedtranslation))
if obj.RoutingApps021CallsmadetoVOIPgatewayswhichweresuccessful != None:
print("RoutingApps021CallsmadetoVOIPgatewayswhichweresuccessful:" + str(obj.RoutingApps021CallsmadetoVOIPgatewayswhichweresuccessful))
if obj.RoutingApps022Received5XXfromVOIPgateway != None:
print("RoutingApps022Received5XXfromVOIPgateway:" + str(obj.RoutingApps022Received5XXfromVOIPgateway))
if obj.RoutingApps023Gatewaydetectedtobeup != None:
print("RoutingApps023Gatewaydetectedtobeup:" + str(obj.RoutingApps023Gatewaydetectedtobeup))
if obj.RoutingApps024Gatewaydetectedtobedown != None:
print("RoutingApps024Gatewaydetectedtobedown:" + str(obj.RoutingApps024Gatewaydetectedtobedown))
if obj.RoutingApps025Callsfailedduetogatewayunavailability != None:
print("RoutingApps025Callsfailedduetogatewayunavailability:" + str(obj.RoutingApps025Callsfailedduetogatewayunavailability))
if obj.RoutingApps026Callsfailedduetonomatchingroute != None:
print("RoutingApps026Callsfailedduetonomatchingroute:" + str(obj.RoutingApps026Callsfailedduetonomatchingroute))
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("")
