Win32_PerfRawData_WSIPPerf vbscript 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_WSIPPerf WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
Sample Code
Set objWMIService = GetObject("winmgmts:\\.\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * From Win32_PerfRawData_WSIPPerf_LCSIP00Networking") For Each objItem in colItems 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 "SIP000Sockets:" & objItem.SIP000Sockets WScript.Echo "SIP001SocketsPersec:" & objItem.SIP001SocketsPersec WScript.Echo "SIP002ConnectionsEstablished:" & objItem.SIP002ConnectionsEstablished WScript.Echo "SIP003ConnectionsEstablishedPersec:" & objItem.SIP003ConnectionsEstablishedPersec WScript.Echo "SIP004ConnectionsFailedToEstablish:" & objItem.SIP004ConnectionsFailedToEstablish WScript.Echo "SIP005ConnectionsFailedToEstablishPerSec:" & objItem.SIP005ConnectionsFailedToEstablishPerSec WScript.Echo "SIP006ConnectionsRefusedDueToServerOverload:" & objItem.SIP006ConnectionsRefusedDueToServerOverload WScript.Echo "SIP007ConnectionsRefusedDueToServerOverloadPerSec:" & objItem.SIP007ConnectionsRefusedDueToServerOverloadPerSec WScript.Echo "SIP008ConnectionsBeingEstablished:" & objItem.SIP008ConnectionsBeingEstablished WScript.Echo "SIP009TLSNegotiationCompleted:" & objItem.SIP009TLSNegotiationCompleted WScript.Echo "SIP010TLSNegotiationsCompletedPersec:" & objItem.SIP010TLSNegotiationsCompletedPersec WScript.Echo "SIP011TLSNegotiationsFailed:" & objItem.SIP011TLSNegotiationsFailed WScript.Echo "SIP012TLSNegotiationsFailedPersec:" & objItem.SIP012TLSNegotiationsFailedPersec WScript.Echo "SIP013TLSConnectionsBeingNegotiated:" & objItem.SIP013TLSConnectionsBeingNegotiated WScript.Echo "SIP014Uniqueusersconnecteddirectly:" & objItem.SIP014Uniqueusersconnecteddirectly WScript.Echo "SIP015Connectionsaboveperuserlimitdropped:" & objItem.SIP015Connectionsaboveperuserlimitdropped WScript.Echo "SIP016ConnectionsaboveperuserlimitdroppedPersec:" & objItem.SIP016ConnectionsaboveperuserlimitdroppedPersec WScript.Echo "SIP017OutstandingAcceptOperations:" & objItem.SIP017OutstandingAcceptOperations WScript.Echo "SIP018OutstandingReceiveOperations:" & objItem.SIP018OutstandingReceiveOperations WScript.Echo "SIP019DNSqueriesresolvedviatheoperatingsystem:" & objItem.SIP019DNSqueriesresolvedviatheoperatingsystem WScript.Echo "SIP020DNSqueriesqueuedforDNSresolution:" & objItem.SIP020DNSqueriesqueuedforDNSresolution WScript.Echo "SIP021DNSqueriesbeingresolvedbytheoperatingsystem:" & objItem.SIP021DNSqueriesbeingresolvedbytheoperatingsystem WScript.Echo "SIP022SuccessfulDNSqueries:" & objItem.SIP022SuccessfulDNSqueries WScript.Echo "SIP023FailedDNSqueries:" & objItem.SIP023FailedDNSqueries WScript.Echo "SIP024TimedoutDNSqueries:" & objItem.SIP024TimedoutDNSqueries WScript.Echo "SIP025SuccessfulaccessestotheinternalDNScache:" & objItem.SIP025SuccessfulaccessestotheinternalDNScache WScript.Echo "SIP026SuccessfulaccessestotheinternalDNScachepersecond:" & objItem.SIP026SuccessfulaccessestotheinternalDNScachepersecond WScript.Echo "SIP027SuccessfulDNSqueryresultsintheinternalDNScache:" & objItem.SIP027SuccessfulDNSqueryresultsintheinternalDNScache WScript.Echo "SIP028FailedDNSqueryresultsintheinternalDNScache:" & objItem.SIP028FailedDNSqueryresultsintheinternalDNScache WScript.Echo "SIP029LastDNSquerytime:" & objItem.SIP029LastDNSquerytime WScript.Echo "SIP030Numberoftimesnegativecacheentrieswereaccessed:" & objItem.SIP030Numberoftimesnegativecacheentrieswereaccessed WScript.Echo "SIP031TimespentinmillisecondsdoingDNSqueries:" & objItem.SIP031TimespentinmillisecondsdoingDNSqueries 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 "" Next