Win32_PerfRawData_RoutingAppPerf jscript 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
var strComputer = "."; var objWMIService = GetObject("winmgmts:\\\\" + strComputer + "\\root\\CIMV2"); var colItems = objWMIService.ExecQuery("SELECT * FROM Win32_PerfRawData_RoutingAppPerf_LCRoutingApps00UCRoutingApplications", "WQL"); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); WScript.Echo("Caption: " + objItem.Caption); WScript.Echo("Description: " + objItem.Description); WScript.Echo("Frequency_Object: " + objItem.Frequency_Object); WScript.Echo("Frequency_PerfTime: " + objItem.Frequency_PerfTime); WScript.Echo("Frequency_Sys100NS: " + objItem.Frequency_Sys100NS); WScript.Echo("Name: " + objItem.Name); WScript.Echo("RoutingApps000TranslatedNumbers: " + objItem.RoutingApps000TranslatedNumbers); WScript.Echo("RoutingApps001TranslatedNumberspersecond: " + objItem.RoutingApps001TranslatedNumberspersecond); WScript.Echo("RoutingApps002Callstovoicemail: " + objItem.RoutingApps002Callstovoicemail); WScript.Echo("RoutingApps003Callstovoicemailpersecond: " + objItem.RoutingApps003Callstovoicemailpersecond); WScript.Echo("RoutingApps004CallstoSAAA: " + objItem.RoutingApps004CallstoSAAA); WScript.Echo("RoutingApps005ErrorsfromUMserver: " + objItem.RoutingApps005ErrorsfromUMserver); WScript.Echo("RoutingApps006FailedExchangeUMcalls: " + objItem.RoutingApps006FailedExchangeUMcalls); WScript.Echo("RoutingApps007FailedOutboundPSTNcalls: " + objItem.RoutingApps007FailedOutboundPSTNcalls); WScript.Echo("RoutingApps008OutboundPSTNcalls: " + objItem.RoutingApps008OutboundPSTNcalls); WScript.Echo("RoutingApps009OutboundPSTNcallspersecond: " + objItem.RoutingApps009OutboundPSTNcallspersecond); WScript.Echo("RoutingApps010Inboundcalls: " + objItem.RoutingApps010Inboundcalls); WScript.Echo("RoutingApps011Inboundcallspersecond: " + objItem.RoutingApps011Inboundcallspersecond); WScript.Echo("RoutingApps012InboundContactObjectcalls: " + objItem.RoutingApps012InboundContactObjectcalls); WScript.Echo("RoutingApps013SuccessfulInboundcalls: " + objItem.RoutingApps013SuccessfulInboundcalls); WScript.Echo("RoutingApps014Forwardedcalls: " + objItem.RoutingApps014Forwardedcalls); WScript.Echo("RoutingApps015Simulringcalls: " + objItem.RoutingApps015Simulringcalls); WScript.Echo("RoutingApps016Delegatecalls: " + objItem.RoutingApps016Delegatecalls); WScript.Echo("RoutingApps017Teamcalls: " + objItem.RoutingApps017Teamcalls); WScript.Echo("RoutingApps018Instancesofreceivinginvalidlocationprofile: " + objItem.RoutingApps018Instancesofreceivinginvalidlocationprofile); WScript.Echo("RoutingApps019Instanceswherenomatchinnormalizationrulesoflocationprofile: " + objItem.RoutingApps019Instanceswherenomatchinnormalizationrulesoflocationprofile); WScript.Echo("RoutingApps020Instanceswherethematchingrulecausedafailedtranslation: " + objItem.RoutingApps020Instanceswherethematchingrulecausedafailedtranslation); WScript.Echo("RoutingApps021CallsmadetoVOIPgatewayswhichweresuccessful: " + objItem.RoutingApps021CallsmadetoVOIPgatewayswhichweresuccessful); WScript.Echo("RoutingApps022Received5XXfromVOIPgateway: " + objItem.RoutingApps022Received5XXfromVOIPgateway); WScript.Echo("RoutingApps023Gatewaydetectedtobeup: " + objItem.RoutingApps023Gatewaydetectedtobeup); WScript.Echo("RoutingApps024Gatewaydetectedtobedown: " + objItem.RoutingApps024Gatewaydetectedtobedown); WScript.Echo("RoutingApps025Callsfailedduetogatewayunavailability: " + objItem.RoutingApps025Callsfailedduetogatewayunavailability); WScript.Echo("RoutingApps026Callsfailedduetonomatchingroute: " + objItem.RoutingApps026Callsfailedduetonomatchingroute); WScript.Echo("Timestamp_Object: " + objItem.Timestamp_Object); WScript.Echo("Timestamp_PerfTime: " + objItem.Timestamp_PerfTime); WScript.Echo("Timestamp_Sys100NS: " + objItem.Timestamp_Sys100NS); WScript.Echo("") WScript.Echo("########") WScript.Echo("") }