Win32_PerfRawData_InetInfo python 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 WMI class can be used in ActiveXperts Network Monitor to monitor your servers.
Sample Code
from win32com.client import GetObject objWMI = GetObject('winmgmts:').InstancesOf('Win32_PerfRawData_InetInfo_InternetInformationServicesGlobal') for obj in objWMI: if obj.ActiveFlushedEntries != None: print("ActiveFlushedEntries:" + str(obj.ActiveFlushedEntries)) if obj.BLOBCacheFlushes != None: print("BLOBCacheFlushes:" + str(obj.BLOBCacheFlushes)) if obj.BLOBCacheHits != None: print("BLOBCacheHits:" + str(obj.BLOBCacheHits)) if obj.BLOBCacheHitsPercent != None: print("BLOBCacheHitsPercent:" + str(obj.BLOBCacheHitsPercent)) if obj.BLOBCacheHitsPercent_Base != None: print("BLOBCacheHitsPercent_Base:" + str(obj.BLOBCacheHitsPercent_Base)) if obj.BLOBCacheMisses != None: print("BLOBCacheMisses:" + str(obj.BLOBCacheMisses)) if obj.Caption != None: print("Caption:" + str(obj.Caption)) if obj.CurrentBLOBsCached != None: print("CurrentBLOBsCached:" + str(obj.CurrentBLOBsCached)) if obj.CurrentBlockedAsyncIORequests != None: print("CurrentBlockedAsyncIORequests:" + str(obj.CurrentBlockedAsyncIORequests)) if obj.CurrentFileCacheMemoryUsage != None: print("CurrentFileCacheMemoryUsage:" + str(obj.CurrentFileCacheMemoryUsage)) if obj.CurrentFilesCached != None: print("CurrentFilesCached:" + str(obj.CurrentFilesCached)) if obj.CurrentURIsCached != None: print("CurrentURIsCached:" + str(obj.CurrentURIsCached)) if obj.Description != None: print("Description:" + str(obj.Description)) if obj.FileCacheFlushes != None: print("FileCacheFlushes:" + str(obj.FileCacheFlushes)) if obj.FileCacheHits != None: print("FileCacheHits:" + str(obj.FileCacheHits)) if obj.FileCacheHitsPercent != None: print("FileCacheHitsPercent:" + str(obj.FileCacheHitsPercent)) if obj.FileCacheHitsPercent_Base != None: print("FileCacheHitsPercent_Base:" + str(obj.FileCacheHitsPercent_Base)) if obj.FileCacheMisses != None: print("FileCacheMisses:" + str(obj.FileCacheMisses)) if obj.Frequency_Object != None: print("Frequency_Object:" + str(obj.Frequency_Object)) if obj.Frequency_PerfTime != None: print("Frequency_PerfTime:" + str(obj.Frequency_PerfTime)) if obj.Frequency_Sys100NS != None: print("Frequency_Sys100NS:" + str(obj.Frequency_Sys100NS)) if obj.MaximumFileCacheMemoryUsage != None: print("MaximumFileCacheMemoryUsage:" + str(obj.MaximumFileCacheMemoryUsage)) if obj.MeasuredAsyncIOBandwidthUsage != None: print("MeasuredAsyncIOBandwidthUsage:" + str(obj.MeasuredAsyncIOBandwidthUsage)) if obj.Name != None: print("Name:" + str(obj.Name)) if obj.Timestamp_Object != None: print("Timestamp_Object:" + str(obj.Timestamp_Object)) if obj.Timestamp_PerfTime != None: print("Timestamp_PerfTime:" + str(obj.Timestamp_PerfTime)) if obj.Timestamp_Sys100NS != None: print("Timestamp_Sys100NS:" + str(obj.Timestamp_Sys100NS)) if obj.TotalAllowedAsyncIORequests != None: print("TotalAllowedAsyncIORequests:" + str(obj.TotalAllowedAsyncIORequests)) if obj.TotalBLOBsCached != None: print("TotalBLOBsCached:" + str(obj.TotalBLOBsCached)) if obj.TotalBlockedAsyncIORequests != None: print("TotalBlockedAsyncIORequests:" + str(obj.TotalBlockedAsyncIORequests)) if obj.TotalFilesCached != None: print("TotalFilesCached:" + str(obj.TotalFilesCached)) if obj.TotalFlushedBLOBs != None: print("TotalFlushedBLOBs:" + str(obj.TotalFlushedBLOBs)) if obj.TotalFlushedFiles != None: print("TotalFlushedFiles:" + str(obj.TotalFlushedFiles)) if obj.TotalFlushedURIs != None: print("TotalFlushedURIs:" + str(obj.TotalFlushedURIs)) if obj.TotalRejectedAsyncIORequests != None: print("TotalRejectedAsyncIORequests:" + str(obj.TotalRejectedAsyncIORequests)) if obj.TotalURIsCached != None: print("TotalURIsCached:" + str(obj.TotalURIsCached)) if obj.URICacheFlushes != None: print("URICacheFlushes:" + str(obj.URICacheFlushes)) if obj.URICacheHits != None: print("URICacheHits:" + str(obj.URICacheHits)) if obj.URICacheHitsPercent != None: print("URICacheHitsPercent:" + str(obj.URICacheHitsPercent)) if obj.URICacheHitsPercent_Base != None: print("URICacheHitsPercent_Base:" + str(obj.URICacheHitsPercent_Base)) if obj.URICacheMisses != None: print("URICacheMisses:" + str(obj.URICacheMisses)) print("") print("########") print("")