Win32_PerfRawData_CallControlServerPerf 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_CallControlServerPerf 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_CallControlServerPerf_LCCCS00TPCPProcessing", "WQL"); var enumItems = new Enumerator(colItems); for (; !enumItems.atEnd(); enumItems.moveNext()) { var objItem = enumItems.item(); WScript.Echo("Caption: " + objItem.Caption); WScript.Echo("CCS000TotalTPCPMessagesReceived: " + objItem.CCS000TotalTPCPMessagesReceived); WScript.Echo("CCS001TotalChannelsAccepted: " + objItem.CCS001TotalChannelsAccepted); WScript.Echo("CCS002ActiveChannels: " + objItem.CCS002ActiveChannels); WScript.Echo("CCS003ActiveDTMChannels: " + objItem.CCS003ActiveDTMChannels); WScript.Echo("CCS004ActiveSTMChannels: " + objItem.CCS004ActiveSTMChannels); WScript.Echo("CCS005TotalConversationsAccepted: " + objItem.CCS005TotalConversationsAccepted); WScript.Echo("CCS006ActiveConversations: " + objItem.CCS006ActiveConversations); WScript.Echo("CCS007ActiveIncomingConversations: " + objItem.CCS007ActiveIncomingConversations); WScript.Echo("CCS008ActiveOutgoingConversations: " + objItem.CCS008ActiveOutgoingConversations); WScript.Echo("CCS009TotalSuccessfulConversations: " + objItem.CCS009TotalSuccessfulConversations); WScript.Echo("CCS010TotalFailedConversations: " + objItem.CCS010TotalFailedConversations); WScript.Echo("CCS011ConnectedConversations: " + objItem.CCS011ConnectedConversations); WScript.Echo("CCS012TotalSIPSDPlessINVITEToGatewayFailed: " + objItem.CCS012TotalSIPSDPlessINVITEToGatewayFailed); WScript.Echo("CCS013TotalSIPSelfREFERToGatewayFailed: " + objItem.CCS013TotalSIPSelfREFERToGatewayFailed); WScript.Echo("CCS014TotalSIPINVITEFailedToGateway: " + objItem.CCS014TotalSIPINVITEFailedToGateway); WScript.Echo("CCS015TotalSIPINVITEFailedToProxy: " + objItem.CCS015TotalSIPINVITEFailedToProxy); 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("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("") }