Contact Info

Crumbtrail

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

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


Sample Code

var strComputer = ".";

var objWMIService = GetObject("winmgmts:\\\\" + strComputer + "\\root\\CIMV2");
var colItems = objWMIService.ExecQuery("SELECT * FROM Win32_PerfFormattedData_DataMCUPerf_LCDATAMCU00DataMCUConferences", "WQL");

var enumItems = new Enumerator(colItems);

for (; !enumItems.atEnd(); enumItems.moveNext()) {
	var objItem = enumItems.item();
	WScript.Echo("Caption: " + objItem.Caption);
	WScript.Echo("DATAMCU000Conferences: " + objItem.DATAMCU000Conferences);
	WScript.Echo("DATAMCU001ConferencesPersec: " + objItem.DATAMCU001ConferencesPersec);
	WScript.Echo("DATAMCU002ConnectedUsers: " + objItem.DATAMCU002ConnectedUsers);
	WScript.Echo("DATAMCU003ConnectedUsersPersec: " + objItem.DATAMCU003ConnectedUsersPersec);
	WScript.Echo("DATAMCU004ConnectedPresenters: " + objItem.DATAMCU004ConnectedPresenters);
	WScript.Echo("DATAMCU005ConnectedPresentersPersec: " + objItem.DATAMCU005ConnectedPresentersPersec);
	WScript.Echo("DATAMCU006ReceivedResources: " + objItem.DATAMCU006ReceivedResources);
	WScript.Echo("DATAMCU007ReceivedResourcesPersec: " + objItem.DATAMCU007ReceivedResourcesPersec);
	WScript.Echo("DATAMCU008Slides: " + objItem.DATAMCU008Slides);
	WScript.Echo("DATAMCU009SlidesPersec: " + objItem.DATAMCU009SlidesPersec);
	WScript.Echo("DATAMCU010ImageSlides: " + objItem.DATAMCU010ImageSlides);
	WScript.Echo("DATAMCU011ImageSlidesPersec: " + objItem.DATAMCU011ImageSlidesPersec);
	WScript.Echo("DATAMCU012PollSlides: " + objItem.DATAMCU012PollSlides);
	WScript.Echo("DATAMCU013PollSlidesPersec: " + objItem.DATAMCU013PollSlidesPersec);
	WScript.Echo("DATAMCU014WebSlides: " + objItem.DATAMCU014WebSlides);
	WScript.Echo("DATAMCU015WebSlidesPersec: " + objItem.DATAMCU015WebSlidesPersec);
	WScript.Echo("DATAMCU016TextSlides: " + objItem.DATAMCU016TextSlides);
	WScript.Echo("DATAMCU017TextSlidesPersec: " + objItem.DATAMCU017TextSlidesPersec);
	WScript.Echo("DATAMCU018ApplicationSharingSlides: " + objItem.DATAMCU018ApplicationSharingSlides);
	WScript.Echo("DATAMCU019ApplicationSharingSlidesPersec: " + objItem.DATAMCU019ApplicationSharingSlidesPersec);
	WScript.Echo("DATAMCU020DocumentPresentationSlides: " + objItem.DATAMCU020DocumentPresentationSlides);
	WScript.Echo("DATAMCU021DocumentPresentationSlidesPersec: " + objItem.DATAMCU021DocumentPresentationSlidesPersec);
	WScript.Echo("DATAMCU022MediaSlides: " + objItem.DATAMCU022MediaSlides);
	WScript.Echo("DATAMCU023MediaSlidesPersec: " + objItem.DATAMCU023MediaSlidesPersec);
	WScript.Echo("DATAMCU024Blockedfiles: " + objItem.DATAMCU024Blockedfiles);
	WScript.Echo("DATAMCU025BlockedfilesPersec: " + objItem.DATAMCU025BlockedfilesPersec);
	WScript.Echo("DATAMCU026Complianceerrors: " + objItem.DATAMCU026Complianceerrors);
	WScript.Echo("DATAMCU027UploadedDataSize: " + objItem.DATAMCU027UploadedDataSize);
	WScript.Echo("DATAMCU028Totalsizeofhandoutsuploaded: " + objItem.DATAMCU028Totalsizeofhandoutsuploaded);
	WScript.Echo("DATAMCU029Totalnumberofhandoutsuploaded: " + objItem.DATAMCU029Totalnumberofhandoutsuploaded);
	WScript.Echo("DATAMCU030TotalnumberofhandoutsuploadedPersec: " + objItem.DATAMCU030TotalnumberofhandoutsuploadedPersec);
	WScript.Echo("DATAMCU031Resourcesoverconferencespacelimit: " + objItem.DATAMCU031Resourcesoverconferencespacelimit);
	WScript.Echo("DATAMCU032ResourcesoverconferencespacelimitPersec: " + objItem.DATAMCU032ResourcesoverconferencespacelimitPersec);
	WScript.Echo("DATAMCU033Resourcestoobig: " + objItem.DATAMCU033Resourcestoobig);
	WScript.Echo("DATAMCU034ResourcestoobigPersec: " + objItem.DATAMCU034ResourcestoobigPersec);
	WScript.Echo("DATAMCU035NumberofSessionControllers: " + objItem.DATAMCU035NumberofSessionControllers);
	WScript.Echo("DATAMCU036NumberofRegisteredSessions: " + objItem.DATAMCU036NumberofRegisteredSessions);
	WScript.Echo("DATAMCU037NumberofStoppingSessions: " + objItem.DATAMCU037NumberofStoppingSessions);
	WScript.Echo("DATAMCU038NumberofUnhandledApplicationException: " + objItem.DATAMCU038NumberofUnhandledApplicationException);
	WScript.Echo("DATAMCU039NumberofContentExpirationException: " + objItem.DATAMCU039NumberofContentExpirationException);
	WScript.Echo("DATAMCU040Sessionqueuesload: " + objItem.DATAMCU040Sessionqueuesload);
	WScript.Echo("DATAMCU041Sessionqueuesstate: " + objItem.DATAMCU041Sessionqueuesstate);
	WScript.Echo("DATAMCU042NumberofNotaContentFolderErrors: " + objItem.DATAMCU042NumberofNotaContentFolderErrors);
	WScript.Echo("DATAMCU043NumberofErrorstoCreateContentFolder: " + objItem.DATAMCU043NumberofErrorstoCreateContentFolder);
	WScript.Echo("DATAMCU044NumberofErrorstoCreateContentFile: " + objItem.DATAMCU044NumberofErrorstoCreateContentFile);
	WScript.Echo("DATAMCU045NumberofResourceFilesParsingFailures: " + objItem.DATAMCU045NumberofResourceFilesParsingFailures);
	WScript.Echo("DATAMCU046NumberofFailuresBecauseofInvalidInternalDownloadURL: " + objItem.DATAMCU046NumberofFailuresBecauseofInvalidInternalDownloadURL);
	WScript.Echo("DATAMCU047NumberofFailuresBecauseofInvalidExternalDownloadURL: " + objItem.DATAMCU047NumberofFailuresBecauseofInvalidExternalDownloadURL);
	WScript.Echo("DATAMCU048NumberofFailuresBecauseofEmptyListofProxies: " + objItem.DATAMCU048NumberofFailuresBecauseofEmptyListofProxies);
	WScript.Echo("DATAMCU049MaximumaveragetimeonconferencequeueforLDMmessages: " + objItem.DATAMCU049MaximumaveragetimeonconferencequeueforLDMmessages);
	WScript.Echo("DATAMCU050MinimumaveragetimeonconferencequeueforLDMmessages: " + objItem.DATAMCU050MinimumaveragetimeonconferencequeueforLDMmessages);
	WScript.Echo("DATAMCU051AveragetimequeuedindataMcuforLDMmessages: " + objItem.DATAMCU051AveragetimequeuedindataMcuforLDMmessages);
	WScript.Echo("DATAMCU052Maximumlengthofconferencequeues: " + objItem.DATAMCU052Maximumlengthofconferencequeues);
	WScript.Echo("DATAMCU053Miniumumlengthofconferencequeues: " + objItem.DATAMCU053Miniumumlengthofconferencequeues);
	WScript.Echo("DATAMCU054Averagelengthofconferencequeues: " + objItem.DATAMCU054Averagelengthofconferencequeues);
	WScript.Echo("Description: " + objItem.Description);
	WScript.Echo("Frequency_Object: " + objItem.Frequency_Object);
	WScript.Echo("Frequency_PerfTime: " + objItem.Frequency_PerfTime);
	WScript.Echo("Frequency_Sys100NS: " + objItem.Frequency_Sys100NS);
	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("")
	WScript.Echo("########")
	WScript.Echo("")
}