Contact Info

Crumbtrail

ActiveXperts.com » Administration » Scripts » WMI » vbscript sample

Win32_PerfFormattedData_DlxPerf 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_PerfFormattedData_DlxPerf 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_PerfFormattedData_DlxPerf_LCDLX00AddressBookandDistributionListExpansion")

For Each objItem in colItems
	WScript.Echo "Caption:" & objItem.Caption
	WScript.Echo "Description:" & objItem.Description
	WScript.Echo "DLX000Validinputrequests:" & objItem.DLX000Validinputrequests
	WScript.Echo "DLX001ValidinputrequestsPersec:" & objItem.DLX001ValidinputrequestsPersec
	WScript.Echo "DLX002Averageprocessingtimeforavalidrequestsinmilliseconds:" & objItem.DLX002Averageprocessingtimeforavalidrequestsinmilliseconds
	WScript.Echo "DLX004PendingRequeststhatfetchSecurityDescriptors:" & objItem.DLX004PendingRequeststhatfetchSecurityDescriptors
	WScript.Echo "DLX005AverageSecurityDescriptorfetchtimeinmilliseconds:" & objItem.DLX005AverageSecurityDescriptorfetchtimeinmilliseconds
	WScript.Echo "DLX007PendingAuthorizationRequests:" & objItem.DLX007PendingAuthorizationRequests
	WScript.Echo "DLX008Averageauthorizationprocessingtimeinmilliseconds:" & objItem.DLX008Averageauthorizationprocessingtimeinmilliseconds
	WScript.Echo "DLX010PendingRequeststhatfetchmemberproperties:" & objItem.DLX010PendingRequeststhatfetchmemberproperties
	WScript.Echo "DLX011Averagememberpropertiesfetchtimeinmilliseconds:" & objItem.DLX011Averagememberpropertiesfetchtimeinmilliseconds
	WScript.Echo "DLX013Passedauthorizations:" & objItem.DLX013Passedauthorizations
	WScript.Echo "DLX014PassedauthorizationsPersec:" & objItem.DLX014PassedauthorizationsPersec
	WScript.Echo "DLX015Invalidinputrequests:" & objItem.DLX015Invalidinputrequests
	WScript.Echo "DLX016InvalidinputrequestsPersec:" & objItem.DLX016InvalidinputrequestsPersec
	WScript.Echo "DLX017TimedoutRequeststhatfetchSecurityDescriptors:" & objItem.DLX017TimedoutRequeststhatfetchSecurityDescriptors
	WScript.Echo "DLX018TimedoutRequeststhatfetchSecurityDescriptorsPersec:" & objItem.DLX018TimedoutRequeststhatfetchSecurityDescriptorsPersec
	WScript.Echo "DLX019Failedauthorizations:" & objItem.DLX019Failedauthorizations
	WScript.Echo "DLX020FailedauthorizationsPersec:" & objItem.DLX020FailedauthorizationsPersec
	WScript.Echo "DLX021TimedoutRequeststhatfetchmemberproperties:" & objItem.DLX021TimedoutRequeststhatfetchmemberproperties
	WScript.Echo "DLX022TimedoutRequeststhatfetchmemberpropertiesPersec:" & objItem.DLX022TimedoutRequeststhatfetchmemberpropertiesPersec
	WScript.Echo "DLX023SoapExceptions:" & objItem.DLX023SoapExceptions
	WScript.Echo "DLX024SoapexceptionsPersec:" & objItem.DLX024SoapexceptionsPersec
	WScript.Echo "DLX025SucceededAddressBookFileRequests:" & objItem.DLX025SucceededAddressBookFileRequests
	WScript.Echo "DLX026SucceededAddressBookFileRequestsPerSecond:" & objItem.DLX026SucceededAddressBookFileRequestsPerSecond
	WScript.Echo "DLX027AverageprocessingtimeforasucceededaddressBookfilerequestinmilliseconds:" & objItem.DLX027AverageprocessingtimeforasucceededaddressBookfilerequestinmilliseconds
	WScript.Echo "DLX029FailedAddressBookFileRequests:" & objItem.DLX029FailedAddressBookFileRequests
	WScript.Echo "DLX030FailedAddressBookFileRequestsPerSecond:" & objItem.DLX030FailedAddressBookFileRequestsPerSecond
	WScript.Echo "DLX031Addressbooksearchrequests:" & objItem.DLX031Addressbooksearchrequests
	WScript.Echo "DLX032Succeededaddressbooksearchrequests:" & objItem.DLX032Succeededaddressbooksearchrequests
	WScript.Echo "DLX033Failedaddressbooksearchrequests:" & objItem.DLX033Failedaddressbooksearchrequests
	WScript.Echo "DLX034AddressbooksearchrequestsPersec:" & objItem.DLX034AddressbooksearchrequestsPersec
	WScript.Echo "DLX035Averageprocessingtimeforaaddressbooksearchrequestsinmilliseconds:" & objItem.DLX035Averageprocessingtimeforaaddressbooksearchrequestsinmilliseconds
	WScript.Echo "DLX037AddressbookdatabasequeriesPersec:" & objItem.DLX037AddressbookdatabasequeriesPersec
	WScript.Echo "DLX038Averageprocessingtimeforaaddressbookdatabasequeryinmilliseconds:" & objItem.DLX038Averageprocessingtimeforaaddressbookdatabasequeryinmilliseconds
	WScript.Echo "DLX040AddressbookADqueriesPersec:" & objItem.DLX040AddressbookADqueriesPersec
	WScript.Echo "DLX041AverageprocessingtimeforaaddressbookADqueryinmilliseconds:" & objItem.DLX041AverageprocessingtimeforaaddressbookADqueryinmilliseconds
	WScript.Echo "DLX043Addressbookprefixstringsearchrequests:" & objItem.DLX043Addressbookprefixstringsearchrequests
	WScript.Echo "DLX044Addressbookexactstringsearchrequests:" & objItem.DLX044Addressbookexactstringsearchrequests
	WScript.Echo "DLX045AddressbookprefixDTMFsearchrequests:" & objItem.DLX045AddressbookprefixDTMFsearchrequests
	WScript.Echo "DLX046AddressbookexactDTMFsearchrequests:" & objItem.DLX046AddressbookexactDTMFsearchrequests
	WScript.Echo "DLX047Addressbookouscopesearchrequests:" & objItem.DLX047Addressbookouscopesearchrequests
	WScript.Echo "DLX048Addressbookfullscopesearchrequests:" & objItem.DLX048Addressbookfullscopesearchrequests
	WScript.Echo "DLX049AddressbookUserSidtoOuPathIdmappingcachesize:" & objItem.DLX049AddressbookUserSidtoOuPathIdmappingcachesize
	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 ""
Next