Contact Info

Crumbtrail

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

LCUSrv15Notify - 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 LCUSrv15Notify WMI class can be used in ActiveXperts Network Monitor to monitor your servers.


LCUSrv15Notify

Example(s)

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

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.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.USrv000NOTIFYssent != None:
		print("USrv000NOTIFYssent:" + str(obj.USrv000NOTIFYssent))
	if obj.USrv001NOTIFYssentPerSec != None:
		print("USrv001NOTIFYssentPerSec:" + str(obj.USrv001NOTIFYssentPerSec))
	if obj.USrv002BENOTIFYssent != None:
		print("USrv002BENOTIFYssent:" + str(obj.USrv002BENOTIFYssent))
	if obj.USrv003BENOTIFYssentPerSec != None:
		print("USrv003BENOTIFYssentPerSec:" + str(obj.USrv003BENOTIFYssentPerSec))
	if obj.USrv004PresenceNOTIFYssent != None:
		print("USrv004PresenceNOTIFYssent:" + str(obj.USrv004PresenceNOTIFYssent))
	if obj.USrv005PresenceNOTIFYssentPerSec != None:
		print("USrv005PresenceNOTIFYssentPerSec:" + str(obj.USrv005PresenceNOTIFYssentPerSec))
	if obj.USrv006PresenceWPendingNOTIFYssent != None:
		print("USrv006PresenceWPendingNOTIFYssent:" + str(obj.USrv006PresenceWPendingNOTIFYssent))
	if obj.USrv007PresenceWPendingNOTIFYssentPerSec != None:
		print("USrv007PresenceWPendingNOTIFYssentPerSec:" + str(obj.USrv007PresenceWPendingNOTIFYssentPerSec))
	if obj.USrv008RoamingSelfNOTIFYssent != None:
		print("USrv008RoamingSelfNOTIFYssent:" + str(obj.USrv008RoamingSelfNOTIFYssent))
	if obj.USrv009RoamingSelfNOTIFYssentPerSec != None:
		print("USrv009RoamingSelfNOTIFYssentPerSec:" + str(obj.USrv009RoamingSelfNOTIFYssentPerSec))
	if obj.USrv010RoamingContactNOTIFYssent != None:
		print("USrv010RoamingContactNOTIFYssent:" + str(obj.USrv010RoamingContactNOTIFYssent))
	if obj.USrv011RoamingContactNOTIFYssentPerSec != None:
		print("USrv011RoamingContactNOTIFYssentPerSec:" + str(obj.USrv011RoamingContactNOTIFYssentPerSec))
	if obj.USrv012RoamingACLNOTIFYssent != None:
		print("USrv012RoamingACLNOTIFYssent:" + str(obj.USrv012RoamingACLNOTIFYssent))
	if obj.USrv013RoamingACLNOTIFYssentPerSec != None:
		print("USrv013RoamingACLNOTIFYssentPerSec:" + str(obj.USrv013RoamingACLNOTIFYssentPerSec))
	if obj.USrv014ProvisioningNOTIFYssent != None:
		print("USrv014ProvisioningNOTIFYssent:" + str(obj.USrv014ProvisioningNOTIFYssent))
	if obj.USrv015ProvisioningNOTIFYssentPerSec != None:
		print("USrv015ProvisioningNOTIFYssentPerSec:" + str(obj.USrv015ProvisioningNOTIFYssentPerSec))
	if obj.USrv016ConferencingNOTIFYssent != None:
		print("USrv016ConferencingNOTIFYssent:" + str(obj.USrv016ConferencingNOTIFYssent))
	if obj.USrv017ConferencingNOTIFYssentPerSec != None:
		print("USrv017ConferencingNOTIFYssentPerSec:" + str(obj.USrv017ConferencingNOTIFYssentPerSec))
	if obj.USrv018UnsubscribedNOTIFYssent != None:
		print("USrv018UnsubscribedNOTIFYssent:" + str(obj.USrv018UnsubscribedNOTIFYssent))
	if obj.USrv019UnsubscribedNOTIFYssentPerSec != None:
		print("USrv019UnsubscribedNOTIFYssentPerSec:" + str(obj.USrv019UnsubscribedNOTIFYssentPerSec))
	if obj.USrv020NOTIFYssenttosubscriberinthesamehomeserver != None:
		print("USrv020NOTIFYssenttosubscriberinthesamehomeserver:" + str(obj.USrv020NOTIFYssenttosubscriberinthesamehomeserver))
	if obj.USrv021NOTIFYssenttosubscriberinthesamehomeserverPerSec != None:
		print("USrv021NOTIFYssenttosubscriberinthesamehomeserverPerSec:" + str(obj.USrv021NOTIFYssenttosubscriberinthesamehomeserverPerSec))
	if obj.USrv022NOTIFYssenttosubscriberindifferenthomeserver != None:
		print("USrv022NOTIFYssenttosubscriberindifferenthomeserver:" + str(obj.USrv022NOTIFYssenttosubscriberindifferenthomeserver))
	if obj.USrv023NOTIFYssenttosubscriberindifferenthomeserverPerSec != None:
		print("USrv023NOTIFYssenttosubscriberindifferenthomeserverPerSec:" + str(obj.USrv023NOTIFYssenttosubscriberindifferenthomeserverPerSec))
	if obj.USrv024NOTIFYssentwithoutrequesturibeingset != None:
		print("USrv024NOTIFYssentwithoutrequesturibeingset:" + str(obj.USrv024NOTIFYssentwithoutrequesturibeingset))
	if obj.USrv025NOTIFYssentwithoutrequesturibeingsetPerSec != None:
		print("USrv025NOTIFYssentwithoutrequesturibeingsetPerSec:" + str(obj.USrv025NOTIFYssentwithoutrequesturibeingsetPerSec))
	if obj.USrv026NOTIFYssentasaresultofpresencechange != None:
		print("USrv026NOTIFYssentasaresultofpresencechange:" + str(obj.USrv026NOTIFYssentasaresultofpresencechange))
	if obj.USrv027NOTIFYssentasaresultofpresencechangePerSec != None:
		print("USrv027NOTIFYssentasaresultofpresencechangePerSec:" + str(obj.USrv027NOTIFYssentasaresultofpresencechangePerSec))
	if obj.USrv028NOTIFYssentasaresultofcategorypublish != None:
		print("USrv028NOTIFYssentasaresultofcategorypublish:" + str(obj.USrv028NOTIFYssentasaresultofcategorypublish))
	if obj.USrv029NOTIFYssentasaresultofcategorypublishPerSec != None:
		print("USrv029NOTIFYssentasaresultofcategorypublishPerSec:" + str(obj.USrv029NOTIFYssentasaresultofcategorypublishPerSec))
	if obj.USrv030NOTIFYssentasaresultofcontainerchange != None:
		print("USrv030NOTIFYssentasaresultofcontainerchange:" + str(obj.USrv030NOTIFYssentasaresultofcontainerchange))
	if obj.USrv031NOTIFYssentasaresultofcontainerchangePerSec != None:
		print("USrv031NOTIFYssentasaresultofcontainerchangePerSec:" + str(obj.USrv031NOTIFYssentasaresultofcontainerchangePerSec))
	if obj.USrv032NOTIFYssentasaresultofsubscriberchange != None:
		print("USrv032NOTIFYssentasaresultofsubscriberchange:" + str(obj.USrv032NOTIFYssentasaresultofsubscriberchange))
	if obj.USrv033NOTIFYssentasaresultofsubscriberchangePerSec != None:
		print("USrv033NOTIFYssentasaresultofsubscriberchangePerSec:" + str(obj.USrv033NOTIFYssentasaresultofsubscriberchangePerSec))
	if obj.USrv034NOTIFYssentasaresultofcontactorgroupchange != None:
		print("USrv034NOTIFYssentasaresultofcontactorgroupchange:" + str(obj.USrv034NOTIFYssentasaresultofcontactorgroupchange))
	if obj.USrv035NOTIFYssentasaresultofcontactorgroupchangePerSec != None:
		print("USrv035NOTIFYssentasaresultofcontactorgroupchangePerSec:" + str(obj.USrv035NOTIFYssentasaresultofcontactorgroupchangePerSec))
	if obj.USrv036NOTIFYssentasaresultofpermissionchange != None:
		print("USrv036NOTIFYssentasaresultofpermissionchange:" + str(obj.USrv036NOTIFYssentasaresultofpermissionchange))
	if obj.USrv037NOTIFYssentasaresultofpermissionchangePerSec != None:
		print("USrv037NOTIFYssentasaresultofpermissionchangePerSec:" + str(obj.USrv037NOTIFYssentasaresultofpermissionchangePerSec))
	if obj.USrv038NOTIFYssentasaresultofincomingsubscribes != None:
		print("USrv038NOTIFYssentasaresultofincomingsubscribes:" + str(obj.USrv038NOTIFYssentasaresultofincomingsubscribes))
	if obj.USrv039NOTIFYssentasaresultofincomingsubscribesPerSec != None:
		print("USrv039NOTIFYssentasaresultofincomingsubscribesPerSec:" + str(obj.USrv039NOTIFYssentasaresultofincomingsubscribesPerSec))
	if obj.USrv040NOTIFYssentasaresultofregistrationexpiration != None:
		print("USrv040NOTIFYssentasaresultofregistrationexpiration:" + str(obj.USrv040NOTIFYssentasaresultofregistrationexpiration))
	if obj.USrv041NOTIFYssentasaresultofregistrationexpirationPerSec != None:
		print("USrv041NOTIFYssentasaresultofregistrationexpirationPerSec:" + str(obj.USrv041NOTIFYssentasaresultofregistrationexpirationPerSec))
	if obj.USrv042NOTIFYssentasaresultofotherreasons != None:
		print("USrv042NOTIFYssentasaresultofotherreasons:" + str(obj.USrv042NOTIFYssentasaresultofotherreasons))
	if obj.USrv043NOTIFYssentasaresultofotherreasonsPerSec != None:
		print("USrv043NOTIFYssentasaresultofotherreasonsPerSec:" + str(obj.USrv043NOTIFYssentasaresultofotherreasonsPerSec))
	if obj.USrv044NOTIFYresponses != None:
		print("USrv044NOTIFYresponses:" + str(obj.USrv044NOTIFYresponses))
	if obj.USrv045NOTIFYresponsesPerSec != None:
		print("USrv045NOTIFYresponsesPerSec:" + str(obj.USrv045NOTIFYresponsesPerSec))
	if obj.USrv046NOTIFYfailuresreceived != None:
		print("USrv046NOTIFYfailuresreceived:" + str(obj.USrv046NOTIFYfailuresreceived))
	if obj.USrv047NOTIFYfailuresreceivedPerSec != None:
		print("USrv047NOTIFYfailuresreceivedPerSec:" + str(obj.USrv047NOTIFYfailuresreceivedPerSec))
	if obj.USrv048CategoryNOTIFYfailedduetounknownuserorendpoint != None:
		print("USrv048CategoryNOTIFYfailedduetounknownuserorendpoint:" + str(obj.USrv048CategoryNOTIFYfailedduetounknownuserorendpoint))
	if obj.USrv049CategoryNOTIFYtimeoutreceived != None:
		print("USrv049CategoryNOTIFYtimeoutreceived:" + str(obj.USrv049CategoryNOTIFYtimeoutreceived))
	if obj.USrv050CategoryNOTIFY48xresponsesreceived != None:
		print("USrv050CategoryNOTIFY48xresponsesreceived:" + str(obj.USrv050CategoryNOTIFY48xresponsesreceived))
	if obj.USrv051CategoryNOTIFY504responsesreceived != None:
		print("USrv051CategoryNOTIFY504responsesreceived:" + str(obj.USrv051CategoryNOTIFY504responsesreceived))
	if obj.USrv052CategoryNOTIFY500responsesreceived != None:
		print("USrv052CategoryNOTIFY500responsesreceived:" + str(obj.USrv052CategoryNOTIFY500responsesreceived))
	if obj.USrv053CategoryNOTIFYfailureresponsesreceived != None:
		print("USrv053CategoryNOTIFYfailureresponsesreceived:" + str(obj.USrv053CategoryNOTIFYfailureresponsesreceived))
	if obj.USrv054SelfNOTIFYfailedduetounknownuserorendpoint != None:
		print("USrv054SelfNOTIFYfailedduetounknownuserorendpoint:" + str(obj.USrv054SelfNOTIFYfailedduetounknownuserorendpoint))
	if obj.USrv055SelfNOTIFYtimeoutreceived != None:
		print("USrv055SelfNOTIFYtimeoutreceived:" + str(obj.USrv055SelfNOTIFYtimeoutreceived))
	if obj.USrv056SelfNOTIFY48xresponsesreceived != None:
		print("USrv056SelfNOTIFY48xresponsesreceived:" + str(obj.USrv056SelfNOTIFY48xresponsesreceived))
	if obj.USrv057SelfNOTIFY504responsesreceived != None:
		print("USrv057SelfNOTIFY504responsesreceived:" + str(obj.USrv057SelfNOTIFY504responsesreceived))
	if obj.USrv058SelfNOTIFY500responsesreceived != None:
		print("USrv058SelfNOTIFY500responsesreceived:" + str(obj.USrv058SelfNOTIFY500responsesreceived))
	if obj.USrv059SelfNOTIFYfailureresponsesreceived != None:
		print("USrv059SelfNOTIFYfailureresponsesreceived:" + str(obj.USrv059SelfNOTIFYfailureresponsesreceived))
	if obj.USrv060LegacypresenceNOTIFYfailedduetounknownuserorendpoint != None:
		print("USrv060LegacypresenceNOTIFYfailedduetounknownuserorendpoint:" + str(obj.USrv060LegacypresenceNOTIFYfailedduetounknownuserorendpoint))
	if obj.USrv061LegacypresenceNOTIFYtimeoutreceived != None:
		print("USrv061LegacypresenceNOTIFYtimeoutreceived:" + str(obj.USrv061LegacypresenceNOTIFYtimeoutreceived))
	if obj.USrv062LegacypresenceNOTIFY48xresponsesreceived != None:
		print("USrv062LegacypresenceNOTIFY48xresponsesreceived:" + str(obj.USrv062LegacypresenceNOTIFY48xresponsesreceived))
	if obj.USrv063LegacypresenceNOTIFY504responsesreceived != None:
		print("USrv063LegacypresenceNOTIFY504responsesreceived:" + str(obj.USrv063LegacypresenceNOTIFY504responsesreceived))
	if obj.USrv064LegacypresenceNOTIFY500responsesreceived != None:
		print("USrv064LegacypresenceNOTIFY500responsesreceived:" + str(obj.USrv064LegacypresenceNOTIFY500responsesreceived))
	if obj.USrv065LegacypresenceNOTIFYfailureresponsesreceived != None:
		print("USrv065LegacypresenceNOTIFYfailureresponsesreceived:" + str(obj.USrv065LegacypresenceNOTIFYfailureresponsesreceived))
	if obj.USrv066ConferencingNOTIFYfailedduetounknownuserorendpoint != None:
		print("USrv066ConferencingNOTIFYfailedduetounknownuserorendpoint:" + str(obj.USrv066ConferencingNOTIFYfailedduetounknownuserorendpoint))
	if obj.USrv067ConferencingNOTIFYtimeoutreceived != None:
		print("USrv067ConferencingNOTIFYtimeoutreceived:" + str(obj.USrv067ConferencingNOTIFYtimeoutreceived))
	if obj.USrv068ConferencingNOTIFY48xresponsesreceived != None:
		print("USrv068ConferencingNOTIFY48xresponsesreceived:" + str(obj.USrv068ConferencingNOTIFY48xresponsesreceived))
	if obj.USrv069ConferencingNOTIFY504responsesreceived != None:
		print("USrv069ConferencingNOTIFY504responsesreceived:" + str(obj.USrv069ConferencingNOTIFY504responsesreceived))
	if obj.USrv070ConferencingNOTIFY500responsesreceived != None:
		print("USrv070ConferencingNOTIFY500responsesreceived:" + str(obj.USrv070ConferencingNOTIFY500responsesreceived))
	if obj.USrv071ConferencingNOTIFYfailureresponsesreceived != None:
		print("USrv071ConferencingNOTIFYfailureresponsesreceived:" + str(obj.USrv071ConferencingNOTIFYfailureresponsesreceived))
	if obj.USrv072OtherNOTIFYfailedduetounknownuserorendpoint != None:
		print("USrv072OtherNOTIFYfailedduetounknownuserorendpoint:" + str(obj.USrv072OtherNOTIFYfailedduetounknownuserorendpoint))
	if obj.USrv073OtherNOTIFYtimeoutreceived != None:
		print("USrv073OtherNOTIFYtimeoutreceived:" + str(obj.USrv073OtherNOTIFYtimeoutreceived))
	if obj.USrv074OtherNOTIFY48xresponsesreceived != None:
		print("USrv074OtherNOTIFY48xresponsesreceived:" + str(obj.USrv074OtherNOTIFY48xresponsesreceived))
	if obj.USrv075OtherNOTIFY504responsesreceived != None:
		print("USrv075OtherNOTIFY504responsesreceived:" + str(obj.USrv075OtherNOTIFY504responsesreceived))
	if obj.USrv076OtherNOTIFY500responsesreceived != None:
		print("USrv076OtherNOTIFY500responsesreceived:" + str(obj.USrv076OtherNOTIFY500responsesreceived))
	if obj.USrv077OtherNOTIFYfailureresponsesreceived != None:
		print("USrv077OtherNOTIFYfailureresponsesreceived:" + str(obj.USrv077OtherNOTIFYfailureresponsesreceived))
	if obj.USrv078FailedtosendNOTIFY != None:
		print("USrv078FailedtosendNOTIFY:" + str(obj.USrv078FailedtosendNOTIFY))
	if obj.USrv079FailedtosendNOTIFYPerSec != None:
		print("USrv079FailedtosendNOTIFYPerSec:" + str(obj.USrv079FailedtosendNOTIFYPerSec))
	if obj.USrv080NOTIFYtimeouts != None:
		print("USrv080NOTIFYtimeouts:" + str(obj.USrv080NOTIFYtimeouts))
	if obj.USrv081NOTIFYtimeoutsPerSec != None:
		print("USrv081NOTIFYtimeoutsPerSec:" + str(obj.USrv081NOTIFYtimeoutsPerSec))
	print("")
	print("########")
	print("")