Contact Info

Crumbtrail

ActiveXperts.com » Administration » Scripts » WMI Performance Counters » Python

LCSIP04Responses - WMI sample in Python

The foundations for Manageability in Windows 2019/2012/2008/ and Windows 10/8/7/Vista/XP are 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.

On this site, you can find many WMI samples.

The LCSIP04Responses WMI class can be used in ActiveXperts Network Monitor to monitor your servers.


LCSIP04Responses

Example(s)

from win32com.client import GetObject
objWMI = GetObject('winmgmts:').InstancesOf('Win32_PerfFormattedData_WSIPPerf_LCSIP04Responses')

for obj in objWMI:
	if obj.Caption != None:
		print("Caption:" + str(obj.Caption))
	if obj.Description != None:
		print("Description:" + str(obj.Description))
	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.Name != None:
		print("Name:" + str(obj.Name))
	if obj.SIP000Incoming1xxnon100Responses != None:
		print("SIP000Incoming1xxnon100Responses:" + str(obj.SIP000Incoming1xxnon100Responses))
	if obj.SIP001Incoming1xxnon100ResponsesPersec != None:
		print("SIP001Incoming1xxnon100ResponsesPersec:" + str(obj.SIP001Incoming1xxnon100ResponsesPersec))
	if obj.SIP002Incoming2xxResponses != None:
		print("SIP002Incoming2xxResponses:" + str(obj.SIP002Incoming2xxResponses))
	if obj.SIP003Incoming2xxResponsesPersec != None:
		print("SIP003Incoming2xxResponsesPersec:" + str(obj.SIP003Incoming2xxResponsesPersec))
	if obj.SIP004Incoming3xxResponses != None:
		print("SIP004Incoming3xxResponses:" + str(obj.SIP004Incoming3xxResponses))
	if obj.SIP005Incoming3xxResponsesPersec != None:
		print("SIP005Incoming3xxResponsesPersec:" + str(obj.SIP005Incoming3xxResponsesPersec))
	if obj.SIP006Incoming400Responses != None:
		print("SIP006Incoming400Responses:" + str(obj.SIP006Incoming400Responses))
	if obj.SIP007Incoming400ResponsesPersec != None:
		print("SIP007Incoming400ResponsesPersec:" + str(obj.SIP007Incoming400ResponsesPersec))
	if obj.SIP008Incoming401Responses != None:
		print("SIP008Incoming401Responses:" + str(obj.SIP008Incoming401Responses))
	if obj.SIP009Incoming401ResponsesPersec != None:
		print("SIP009Incoming401ResponsesPersec:" + str(obj.SIP009Incoming401ResponsesPersec))
	if obj.SIP010Incoming403Responses != None:
		print("SIP010Incoming403Responses:" + str(obj.SIP010Incoming403Responses))
	if obj.SIP011Incoming403ResponsesPersec != None:
		print("SIP011Incoming403ResponsesPersec:" + str(obj.SIP011Incoming403ResponsesPersec))
	if obj.SIP012Incoming404Responses != None:
		print("SIP012Incoming404Responses:" + str(obj.SIP012Incoming404Responses))
	if obj.SIP013Incoming404ResponsesPersec != None:
		print("SIP013Incoming404ResponsesPersec:" + str(obj.SIP013Incoming404ResponsesPersec))
	if obj.SIP014Incoming407Responses != None:
		print("SIP014Incoming407Responses:" + str(obj.SIP014Incoming407Responses))
	if obj.SIP015Incoming407ResponsesPersec != None:
		print("SIP015Incoming407ResponsesPersec:" + str(obj.SIP015Incoming407ResponsesPersec))
	if obj.SIP016Incoming408Responses != None:
		print("SIP016Incoming408Responses:" + str(obj.SIP016Incoming408Responses))
	if obj.SIP017Incoming408ResponsesPersec != None:
		print("SIP017Incoming408ResponsesPersec:" + str(obj.SIP017Incoming408ResponsesPersec))
	if obj.SIP018Incoming482Responses != None:
		print("SIP018Incoming482Responses:" + str(obj.SIP018Incoming482Responses))
	if obj.SIP019Incoming482ResponsesPersec != None:
		print("SIP019Incoming482ResponsesPersec:" + str(obj.SIP019Incoming482ResponsesPersec))
	if obj.SIP020Incoming483Responses != None:
		print("SIP020Incoming483Responses:" + str(obj.SIP020Incoming483Responses))
	if obj.SIP021Incoming483ResponsesPersec != None:
		print("SIP021Incoming483ResponsesPersec:" + str(obj.SIP021Incoming483ResponsesPersec))
	if obj.SIP022IncomingOther4xxResponses != None:
		print("SIP022IncomingOther4xxResponses:" + str(obj.SIP022IncomingOther4xxResponses))
	if obj.SIP023IncomingOther4xxResponsesPersec != None:
		print("SIP023IncomingOther4xxResponsesPersec:" + str(obj.SIP023IncomingOther4xxResponsesPersec))
	if obj.SIP024Incoming503Responses != None:
		print("SIP024Incoming503Responses:" + str(obj.SIP024Incoming503Responses))
	if obj.SIP025Incoming503ResponsesPersec != None:
		print("SIP025Incoming503ResponsesPersec:" + str(obj.SIP025Incoming503ResponsesPersec))
	if obj.SIP026Incoming504Responses != None:
		print("SIP026Incoming504Responses:" + str(obj.SIP026Incoming504Responses))
	if obj.SIP027Incoming504ResponsesPersec != None:
		print("SIP027Incoming504ResponsesPersec:" + str(obj.SIP027Incoming504ResponsesPersec))
	if obj.SIP028IncomingOther5xxResponses != None:
		print("SIP028IncomingOther5xxResponses:" + str(obj.SIP028IncomingOther5xxResponses))
	if obj.SIP029IncomingOther5xxResponsesPersec != None:
		print("SIP029IncomingOther5xxResponsesPersec:" + str(obj.SIP029IncomingOther5xxResponsesPersec))
	if obj.SIP030Incoming6xxResponses != None:
		print("SIP030Incoming6xxResponses:" + str(obj.SIP030Incoming6xxResponses))
	if obj.SIP031Incoming6xxResponsesPersec != None:
		print("SIP031Incoming6xxResponsesPersec:" + str(obj.SIP031Incoming6xxResponsesPersec))
	if obj.SIP032Local1xxResponses != None:
		print("SIP032Local1xxResponses:" + str(obj.SIP032Local1xxResponses))
	if obj.SIP033Local1xxResponsesPersec != None:
		print("SIP033Local1xxResponsesPersec:" + str(obj.SIP033Local1xxResponsesPersec))
	if obj.SIP034Local2xxResponses != None:
		print("SIP034Local2xxResponses:" + str(obj.SIP034Local2xxResponses))
	if obj.SIP035Local2xxResponsesPersec != None:
		print("SIP035Local2xxResponsesPersec:" + str(obj.SIP035Local2xxResponsesPersec))
	if obj.SIP036Local3xxResponses != None:
		print("SIP036Local3xxResponses:" + str(obj.SIP036Local3xxResponses))
	if obj.SIP037Local3xxResponsesPersec != None:
		print("SIP037Local3xxResponsesPersec:" + str(obj.SIP037Local3xxResponsesPersec))
	if obj.SIP038Local400Responses != None:
		print("SIP038Local400Responses:" + str(obj.SIP038Local400Responses))
	if obj.SIP039Local400ResponsesPersec != None:
		print("SIP039Local400ResponsesPersec:" + str(obj.SIP039Local400ResponsesPersec))
	if obj.SIP040Local403Responses != None:
		print("SIP040Local403Responses:" + str(obj.SIP040Local403Responses))
	if obj.SIP041Local403ResponsesPersec != None:
		print("SIP041Local403ResponsesPersec:" + str(obj.SIP041Local403ResponsesPersec))
	if obj.SIP042Local404Responses != None:
		print("SIP042Local404Responses:" + str(obj.SIP042Local404Responses))
	if obj.SIP043Local404ResponsesPersec != None:
		print("SIP043Local404ResponsesPersec:" + str(obj.SIP043Local404ResponsesPersec))
	if obj.SIP044Local408Responses != None:
		print("SIP044Local408Responses:" + str(obj.SIP044Local408Responses))
	if obj.SIP045Local408ResponsesPersec != None:
		print("SIP045Local408ResponsesPersec:" + str(obj.SIP045Local408ResponsesPersec))
	if obj.SIP046Local482Responses != None:
		print("SIP046Local482Responses:" + str(obj.SIP046Local482Responses))
	if obj.SIP047Local482ResponsesPersec != None:
		print("SIP047Local482ResponsesPersec:" + str(obj.SIP047Local482ResponsesPersec))
	if obj.SIP048Local483Responses != None:
		print("SIP048Local483Responses:" + str(obj.SIP048Local483Responses))
	if obj.SIP049Local483ResponsesPersec != None:
		print("SIP049Local483ResponsesPersec:" + str(obj.SIP049Local483ResponsesPersec))
	if obj.SIP050LocalOther4xxResponses != None:
		print("SIP050LocalOther4xxResponses:" + str(obj.SIP050LocalOther4xxResponses))
	if obj.SIP051LocalOther4xxResponsesPersec != None:
		print("SIP051LocalOther4xxResponsesPersec:" + str(obj.SIP051LocalOther4xxResponsesPersec))
	if obj.SIP052Local500Responses != None:
		print("SIP052Local500Responses:" + str(obj.SIP052Local500Responses))
	if obj.SIP053Local500ResponsesPersec != None:
		print("SIP053Local500ResponsesPersec:" + str(obj.SIP053Local500ResponsesPersec))
	if obj.SIP054Local503Responses != None:
		print("SIP054Local503Responses:" + str(obj.SIP054Local503Responses))
	if obj.SIP055Local503ResponsesPersec != None:
		print("SIP055Local503ResponsesPersec:" + str(obj.SIP055Local503ResponsesPersec))
	if obj.SIP056Local504Responses != None:
		print("SIP056Local504Responses:" + str(obj.SIP056Local504Responses))
	if obj.SIP057Local504ResponsesPersec != None:
		print("SIP057Local504ResponsesPersec:" + str(obj.SIP057Local504ResponsesPersec))
	if obj.SIP058LocalOther5xxResponses != None:
		print("SIP058LocalOther5xxResponses:" + str(obj.SIP058LocalOther5xxResponses))
	if obj.SIP059LocalOther5xxResponsesPersec != None:
		print("SIP059LocalOther5xxResponsesPersec:" + str(obj.SIP059LocalOther5xxResponsesPersec))
	if obj.SIP060Local6xxResponses != None:
		print("SIP060Local6xxResponses:" + str(obj.SIP060Local6xxResponses))
	if obj.SIP061Local6xxResponsesPersec != None:
		print("SIP061Local6xxResponsesPersec:" + str(obj.SIP061Local6xxResponsesPersec))
	if obj.SIP062LocalMsDiagHeaders != None:
		print("SIP062LocalMsDiagHeaders:" + str(obj.SIP062LocalMsDiagHeaders))
	if obj.SIP063LocalMsDiagHeadersPersec != None:
		print("SIP063LocalMsDiagHeadersPersec:" + str(obj.SIP063LocalMsDiagHeadersPersec))
	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))
	print("")
	print("########")
	print("")