Contact Info

Crumbtrail

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

Win32_PerfRawData_UGatherer 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_UGatherer 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_UGatherer_SearchGathererProjects")

For Each objItem in colItems
	WScript.Echo "AccessedFileRate:" & objItem.AccessedFileRate
	WScript.Echo "AccessedFiles:" & objItem.AccessedFiles
	WScript.Echo "AdaptiveCrawlErrors:" & objItem.AdaptiveCrawlErrors
	WScript.Echo "Caption:" & objItem.Caption
	WScript.Echo "ChangedDocuments:" & objItem.ChangedDocuments
	WScript.Echo "Crawlsinprogress:" & objItem.Crawlsinprogress
	WScript.Echo "DelayedDocuments:" & objItem.DelayedDocuments
	WScript.Echo "Description:" & objItem.Description
	WScript.Echo "DocumentAdditions:" & objItem.DocumentAdditions
	WScript.Echo "DocumentAddRate:" & objItem.DocumentAddRate
	WScript.Echo "DocumentDeleteRate:" & objItem.DocumentDeleteRate
	WScript.Echo "DocumentDeletes:" & objItem.DocumentDeletes
	WScript.Echo "DocumentModifies:" & objItem.DocumentModifies
	WScript.Echo "DocumentModifiesRate:" & objItem.DocumentModifiesRate
	WScript.Echo "DocumentMoveandRenameRate:" & objItem.DocumentMoveandRenameRate
	WScript.Echo "DocumentMovesPerRenames:" & objItem.DocumentMovesPerRenames
	WScript.Echo "DocumentsInProgress:" & objItem.DocumentsInProgress
	WScript.Echo "DocumentsOnHold:" & objItem.DocumentsOnHold
	WScript.Echo "ErrorRate:" & objItem.ErrorRate
	WScript.Echo "FileErrors:" & objItem.FileErrors
	WScript.Echo "FileErrorsRate:" & objItem.FileErrorsRate
	WScript.Echo "FilteredOffice:" & objItem.FilteredOffice
	WScript.Echo "FilteredOfficeRate:" & objItem.FilteredOfficeRate
	WScript.Echo "FilteredText:" & objItem.FilteredText
	WScript.Echo "FilteredTextRate:" & objItem.FilteredTextRate
	WScript.Echo "FilteringDocuments:" & objItem.FilteringDocuments
	WScript.Echo "Frequency_Object:" & objItem.Frequency_Object
	WScript.Echo "Frequency_PerfTime:" & objItem.Frequency_PerfTime
	WScript.Echo "Frequency_Sys100NS:" & objItem.Frequency_Sys100NS
	WScript.Echo "GathererPausedFlag:" & objItem.GathererPausedFlag
	WScript.Echo "HistoryRecoveryProgress:" & objItem.HistoryRecoveryProgress
	WScript.Echo "IncrementalCrawls:" & objItem.IncrementalCrawls
	WScript.Echo "IteratingHistoryInProgressFlag:" & objItem.IteratingHistoryInProgressFlag
	WScript.Echo "Name:" & objItem.Name
	WScript.Echo "NotModified:" & objItem.NotModified
	WScript.Echo "ProcessedDocuments:" & objItem.ProcessedDocuments
	WScript.Echo "ProcessedDocumentsRate:" & objItem.ProcessedDocumentsRate
	WScript.Echo "RecoveryInProgressFlag:" & objItem.RecoveryInProgressFlag
	WScript.Echo "Retries:" & objItem.Retries
	WScript.Echo "RetriesRate:" & objItem.RetriesRate
	WScript.Echo "StartedDocuments:" & objItem.StartedDocuments
	WScript.Echo "StatusError:" & objItem.StatusError
	WScript.Echo "StatusSuccess:" & objItem.StatusSuccess
	WScript.Echo "SuccessRate:" & objItem.SuccessRate
	WScript.Echo "Timestamp_Object:" & objItem.Timestamp_Object
	WScript.Echo "Timestamp_PerfTime:" & objItem.Timestamp_PerfTime
	WScript.Echo "Timestamp_Sys100NS:" & objItem.Timestamp_Sys100NS
	WScript.Echo "UniqueDocuments:" & objItem.UniqueDocuments
	WScript.Echo "URLsinHistory:" & objItem.URLsinHistory
	WScript.Echo "WaitingDocuments:" & objItem.WaitingDocuments
	WScript.Echo ""
	WScript.Echo "########"
	WScript.Echo ""
Next