Win32_PerfRawData_InetInfo_InternetInformationServicesGlobal 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_InetInfo_InternetInformationServicesGlobal WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
Description
The Win32_PerfFormattedData_InetInfo_InternetInformationServicesGlobal "cooked" data performance counter class represents calculated counters that monitor Internet Information Services (the Web service and the FTP service) as a whole. This class is found only on server operating systems. This class is found only on server operating systems. This class is shown as the Internet Information Services Global object in System Monitor. The WMI source of its data is the high-performance Cooked Counter Provider. This class derives its raw data from the corresponding raw class Win32_PerfRawData_InetInfo_InternetInformationServicesGlobal. The original data source is the InetInfo performance library. This class was added for Windows XP.
Sample Code
On Error Resume Next strComputer = "." Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colItems = objWMIService.ExecQuery("Select * from Win32_PerfRawData_InetInfo_InternetInformationServicesGlobal",,48) For Each objItem in colItems Wscript.Echo "ActiveFlushedEntries: " & objItem.ActiveFlushedEntries Wscript.Echo "BLOBCacheFlushes: " & objItem.BLOBCacheFlushes Wscript.Echo "BLOBCacheHits: " & objItem.BLOBCacheHits Wscript.Echo "BLOBCacheHitsPercent: " & objItem.BLOBCacheHitsPercent Wscript.Echo "BLOBCacheHitsPercent_Base: " & objItem.BLOBCacheHitsPercent_Base Wscript.Echo "BLOBCacheMisses: " & objItem.BLOBCacheMisses Wscript.Echo "Caption: " & objItem.Caption Wscript.Echo "CurrentBLOBsCached: " & objItem.CurrentBLOBsCached Wscript.Echo "CurrentBlockedAsyncIPerORequests: " & objItem.CurrentBlockedAsyncIPerORequests Wscript.Echo "CurrentFileCacheMemoryUsage: " & objItem.CurrentFileCacheMemoryUsage Wscript.Echo "CurrentFilesCached: " & objItem.CurrentFilesCached Wscript.Echo "CurrentURIsCached: " & objItem.CurrentURIsCached Wscript.Echo "Description: " & objItem.Description Wscript.Echo "FileCacheFlushes: " & objItem.FileCacheFlushes Wscript.Echo "FileCacheHits: " & objItem.FileCacheHits Wscript.Echo "FileCacheHitsPercent: " & objItem.FileCacheHitsPercent Wscript.Echo "FileCacheHitsPercent_Base: " & objItem.FileCacheHitsPercent_Base Wscript.Echo "FileCacheMisses: " & objItem.FileCacheMisses Wscript.Echo "Frequency_Object: " & objItem.Frequency_Object Wscript.Echo "Frequency_PerfTime: " & objItem.Frequency_PerfTime Wscript.Echo "Frequency_Sys100NS: " & objItem.Frequency_Sys100NS Wscript.Echo "MaximumFileCacheMemoryUsage: " & objItem.MaximumFileCacheMemoryUsage Wscript.Echo "MeasuredAsyncIPerOBandwidthUsage: " & objItem.MeasuredAsyncIPerOBandwidthUsage 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 "TotalAllowedAsyncIPerORequests: " & objItem.TotalAllowedAsyncIPerORequests Wscript.Echo "TotalBLOBsCached: " & objItem.TotalBLOBsCached Wscript.Echo "TotalBlockedAsyncIPerORequests: " & objItem.TotalBlockedAsyncIPerORequests Wscript.Echo "TotalFilesCached: " & objItem.TotalFilesCached Wscript.Echo "TotalFlushedBLOBs: " & objItem.TotalFlushedBLOBs Wscript.Echo "TotalFlushedFiles: " & objItem.TotalFlushedFiles Wscript.Echo "TotalFlushedURIs: " & objItem.TotalFlushedURIs Wscript.Echo "TotalRejectedAsyncIPerORequests: " & objItem.TotalRejectedAsyncIPerORequests Wscript.Echo "TotalURIsCached: " & objItem.TotalURIsCached Wscript.Echo "URICacheFlushes: " & objItem.URICacheFlushes Wscript.Echo "URICacheHits: " & objItem.URICacheHits Wscript.Echo "URICacheHitsPercent: " & objItem.URICacheHitsPercent Wscript.Echo "URICacheHitsPercent_Base: " & objItem.URICacheHitsPercent_Base Wscript.Echo "URICacheMisses: " & objItem.URICacheMisses Next