Contact Info

Crumbtrail

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

Win32_PerfRawData_DataMCUPerf 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_DataMCUPerf 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_DataMCUPerf_LCDATAMCU00DataMCUConferences')

for obj in objWMI:
	if obj.Caption != None:
		print("Caption:" + str(obj.Caption))
	if obj.DATAMCU000Conferences != None:
		print("DATAMCU000Conferences:" + str(obj.DATAMCU000Conferences))
	if obj.DATAMCU001ConferencesPersec != None:
		print("DATAMCU001ConferencesPersec:" + str(obj.DATAMCU001ConferencesPersec))
	if obj.DATAMCU002ConnectedUsers != None:
		print("DATAMCU002ConnectedUsers:" + str(obj.DATAMCU002ConnectedUsers))
	if obj.DATAMCU003ConnectedUsersPersec != None:
		print("DATAMCU003ConnectedUsersPersec:" + str(obj.DATAMCU003ConnectedUsersPersec))
	if obj.DATAMCU004ConnectedPresenters != None:
		print("DATAMCU004ConnectedPresenters:" + str(obj.DATAMCU004ConnectedPresenters))
	if obj.DATAMCU005ConnectedPresentersPersec != None:
		print("DATAMCU005ConnectedPresentersPersec:" + str(obj.DATAMCU005ConnectedPresentersPersec))
	if obj.DATAMCU006ReceivedResources != None:
		print("DATAMCU006ReceivedResources:" + str(obj.DATAMCU006ReceivedResources))
	if obj.DATAMCU007ReceivedResourcesPersec != None:
		print("DATAMCU007ReceivedResourcesPersec:" + str(obj.DATAMCU007ReceivedResourcesPersec))
	if obj.DATAMCU008Slides != None:
		print("DATAMCU008Slides:" + str(obj.DATAMCU008Slides))
	if obj.DATAMCU009SlidesPersec != None:
		print("DATAMCU009SlidesPersec:" + str(obj.DATAMCU009SlidesPersec))
	if obj.DATAMCU010ImageSlides != None:
		print("DATAMCU010ImageSlides:" + str(obj.DATAMCU010ImageSlides))
	if obj.DATAMCU011ImageSlidesPersec != None:
		print("DATAMCU011ImageSlidesPersec:" + str(obj.DATAMCU011ImageSlidesPersec))
	if obj.DATAMCU012PollSlides != None:
		print("DATAMCU012PollSlides:" + str(obj.DATAMCU012PollSlides))
	if obj.DATAMCU013PollSlidesPersec != None:
		print("DATAMCU013PollSlidesPersec:" + str(obj.DATAMCU013PollSlidesPersec))
	if obj.DATAMCU014WebSlides != None:
		print("DATAMCU014WebSlides:" + str(obj.DATAMCU014WebSlides))
	if obj.DATAMCU015WebSlidesPersec != None:
		print("DATAMCU015WebSlidesPersec:" + str(obj.DATAMCU015WebSlidesPersec))
	if obj.DATAMCU016TextSlides != None:
		print("DATAMCU016TextSlides:" + str(obj.DATAMCU016TextSlides))
	if obj.DATAMCU017TextSlidesPersec != None:
		print("DATAMCU017TextSlidesPersec:" + str(obj.DATAMCU017TextSlidesPersec))
	if obj.DATAMCU018ApplicationSharingSlides != None:
		print("DATAMCU018ApplicationSharingSlides:" + str(obj.DATAMCU018ApplicationSharingSlides))
	if obj.DATAMCU019ApplicationSharingSlidesPersec != None:
		print("DATAMCU019ApplicationSharingSlidesPersec:" + str(obj.DATAMCU019ApplicationSharingSlidesPersec))
	if obj.DATAMCU020DocumentPresentationSlides != None:
		print("DATAMCU020DocumentPresentationSlides:" + str(obj.DATAMCU020DocumentPresentationSlides))
	if obj.DATAMCU021DocumentPresentationSlidesPersec != None:
		print("DATAMCU021DocumentPresentationSlidesPersec:" + str(obj.DATAMCU021DocumentPresentationSlidesPersec))
	if obj.DATAMCU022MediaSlides != None:
		print("DATAMCU022MediaSlides:" + str(obj.DATAMCU022MediaSlides))
	if obj.DATAMCU023MediaSlidesPersec != None:
		print("DATAMCU023MediaSlidesPersec:" + str(obj.DATAMCU023MediaSlidesPersec))
	if obj.DATAMCU024Blockedfiles != None:
		print("DATAMCU024Blockedfiles:" + str(obj.DATAMCU024Blockedfiles))
	if obj.DATAMCU025BlockedfilesPersec != None:
		print("DATAMCU025BlockedfilesPersec:" + str(obj.DATAMCU025BlockedfilesPersec))
	if obj.DATAMCU026Complianceerrors != None:
		print("DATAMCU026Complianceerrors:" + str(obj.DATAMCU026Complianceerrors))
	if obj.DATAMCU027UploadedDataSize != None:
		print("DATAMCU027UploadedDataSize:" + str(obj.DATAMCU027UploadedDataSize))
	if obj.DATAMCU028Totalsizeofhandoutsuploaded != None:
		print("DATAMCU028Totalsizeofhandoutsuploaded:" + str(obj.DATAMCU028Totalsizeofhandoutsuploaded))
	if obj.DATAMCU029Totalnumberofhandoutsuploaded != None:
		print("DATAMCU029Totalnumberofhandoutsuploaded:" + str(obj.DATAMCU029Totalnumberofhandoutsuploaded))
	if obj.DATAMCU030TotalnumberofhandoutsuploadedPersec != None:
		print("DATAMCU030TotalnumberofhandoutsuploadedPersec:" + str(obj.DATAMCU030TotalnumberofhandoutsuploadedPersec))
	if obj.DATAMCU031Resourcesoverconferencespacelimit != None:
		print("DATAMCU031Resourcesoverconferencespacelimit:" + str(obj.DATAMCU031Resourcesoverconferencespacelimit))
	if obj.DATAMCU032ResourcesoverconferencespacelimitPersec != None:
		print("DATAMCU032ResourcesoverconferencespacelimitPersec:" + str(obj.DATAMCU032ResourcesoverconferencespacelimitPersec))
	if obj.DATAMCU033Resourcestoobig != None:
		print("DATAMCU033Resourcestoobig:" + str(obj.DATAMCU033Resourcestoobig))
	if obj.DATAMCU034ResourcestoobigPersec != None:
		print("DATAMCU034ResourcestoobigPersec:" + str(obj.DATAMCU034ResourcestoobigPersec))
	if obj.DATAMCU035NumberofSessionControllers != None:
		print("DATAMCU035NumberofSessionControllers:" + str(obj.DATAMCU035NumberofSessionControllers))
	if obj.DATAMCU036NumberofRegisteredSessions != None:
		print("DATAMCU036NumberofRegisteredSessions:" + str(obj.DATAMCU036NumberofRegisteredSessions))
	if obj.DATAMCU037NumberofStoppingSessions != None:
		print("DATAMCU037NumberofStoppingSessions:" + str(obj.DATAMCU037NumberofStoppingSessions))
	if obj.DATAMCU038NumberofUnhandledApplicationException != None:
		print("DATAMCU038NumberofUnhandledApplicationException:" + str(obj.DATAMCU038NumberofUnhandledApplicationException))
	if obj.DATAMCU039NumberofContentExpirationException != None:
		print("DATAMCU039NumberofContentExpirationException:" + str(obj.DATAMCU039NumberofContentExpirationException))
	if obj.DATAMCU040Sessionqueuesload != None:
		print("DATAMCU040Sessionqueuesload:" + str(obj.DATAMCU040Sessionqueuesload))
	if obj.DATAMCU041Sessionqueuesstate != None:
		print("DATAMCU041Sessionqueuesstate:" + str(obj.DATAMCU041Sessionqueuesstate))
	if obj.DATAMCU042NumberofNotaContentFolderErrors != None:
		print("DATAMCU042NumberofNotaContentFolderErrors:" + str(obj.DATAMCU042NumberofNotaContentFolderErrors))
	if obj.DATAMCU043NumberofErrorstoCreateContentFolder != None:
		print("DATAMCU043NumberofErrorstoCreateContentFolder:" + str(obj.DATAMCU043NumberofErrorstoCreateContentFolder))
	if obj.DATAMCU044NumberofErrorstoCreateContentFile != None:
		print("DATAMCU044NumberofErrorstoCreateContentFile:" + str(obj.DATAMCU044NumberofErrorstoCreateContentFile))
	if obj.DATAMCU045NumberofResourceFilesParsingFailures != None:
		print("DATAMCU045NumberofResourceFilesParsingFailures:" + str(obj.DATAMCU045NumberofResourceFilesParsingFailures))
	if obj.DATAMCU046NumberofFailuresBecauseofInvalidInternalDownloadURL != None:
		print("DATAMCU046NumberofFailuresBecauseofInvalidInternalDownloadURL:" + str(obj.DATAMCU046NumberofFailuresBecauseofInvalidInternalDownloadURL))
	if obj.DATAMCU047NumberofFailuresBecauseofInvalidExternalDownloadURL != None:
		print("DATAMCU047NumberofFailuresBecauseofInvalidExternalDownloadURL:" + str(obj.DATAMCU047NumberofFailuresBecauseofInvalidExternalDownloadURL))
	if obj.DATAMCU048NumberofFailuresBecauseofEmptyListofProxies != None:
		print("DATAMCU048NumberofFailuresBecauseofEmptyListofProxies:" + str(obj.DATAMCU048NumberofFailuresBecauseofEmptyListofProxies))
	if obj.DATAMCU049MaximumaveragetimeonconferencequeueforLDMmessages != None:
		print("DATAMCU049MaximumaveragetimeonconferencequeueforLDMmessages:" + str(obj.DATAMCU049MaximumaveragetimeonconferencequeueforLDMmessages))
	if obj.DATAMCU050MinimumaveragetimeonconferencequeueforLDMmessages != None:
		print("DATAMCU050MinimumaveragetimeonconferencequeueforLDMmessages:" + str(obj.DATAMCU050MinimumaveragetimeonconferencequeueforLDMmessages))
	if obj.DATAMCU051AveragetimequeuedindataMcuforLDMmessages != None:
		print("DATAMCU051AveragetimequeuedindataMcuforLDMmessages:" + str(obj.DATAMCU051AveragetimequeuedindataMcuforLDMmessages))
	if obj.DATAMCU052Maximumlengthofconferencequeues != None:
		print("DATAMCU052Maximumlengthofconferencequeues:" + str(obj.DATAMCU052Maximumlengthofconferencequeues))
	if obj.DATAMCU053Miniumumlengthofconferencequeues != None:
		print("DATAMCU053Miniumumlengthofconferencequeues:" + str(obj.DATAMCU053Miniumumlengthofconferencequeues))
	if obj.DATAMCU054Averagelengthofconferencequeues != None:
		print("DATAMCU054Averagelengthofconferencequeues:" + str(obj.DATAMCU054Averagelengthofconferencequeues))
	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))
	print("")
	print("########")
	print("")