Contact Info

Crumbtrail

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

LCRGS02ResponseGroupServiceWorkflow - WMI sample in Perl

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


LCRGS02ResponseGroupServiceWorkflow

Example(s)

use Win32::OLE('in');

my $computer = ".";

my $objWMIService = Win32::OLE->GetObject("winmgmts:\\\\$computer\\root\\CIMV2") or die "WMI connection failed.\n";
my $colItems = $objWMIService->ExecQuery("SELECT * FROM Win32_PerfRawData_AcdPerf_LCRGS02ResponseGroupServiceWorkflow", "WQL");

foreach my $objItem (in $colItems) {
	print "Caption: $objItem->{Caption}\n";
	print "Description: $objItem->{Description}\n";
	print "Frequency_Object: $objItem->{Frequency_Object}\n";
	print "Frequency_PerfTime: $objItem->{Frequency_PerfTime}\n";
	print "Frequency_Sys100NS: $objItem->{Frequency_Sys100NS}\n";
	print "Name: $objItem->{Name}\n";
	print "RGS000Totalreceivedcalls: $objItem->{RGS000Totalreceivedcalls}\n";
	print "RGS001Callsterminatedwithaworkflowfailure: $objItem->{RGS001Callsterminatedwithaworkflowfailure}\n";
	print "RGS002Callscompletedwithaworkflowsuccess: $objItem->{RGS002Callscompletedwithaworkflowsuccess}\n";
	print "RGS003Activecalls: $objItem->{RGS003Activecalls}\n";
	print "RGS004Callsplacedduringthebusinesshours: $objItem->{RGS004Callsplacedduringthebusinesshours}\n";
	print "RGS005Callsplacedoutsidethebusinesshours: $objItem->{RGS005Callsplacedoutsidethebusinesshours}\n";
	print "RGS006Callsthathavetimedoutwhileonhold: $objItem->{RGS006Callsthathavetimedoutwhileonhold}\n";
	print "RGS007Callsputonholdbycaller: $objItem->{RGS007Callsputonholdbycaller}\n";
	print "RGS008Callsputonholdthathavebeenretrieved: $objItem->{RGS008Callsputonholdthathavebeenretrieved}\n";
	print "RGS009Callsthatfailedduetoincorrectanswers: $objItem->{RGS009Callsthatfailedduetoincorrectanswers}\n";
	print "RGS010Callsthatfailedbecausenoanswerwasgiven: $objItem->{RGS010Callsthatfailedbecausenoanswerwasgiven}\n";
	print "RGS011Callsthatfailedduetocriticalservererrors: $objItem->{RGS011Callsthatfailedduetocriticalservererrors}\n";
	print "RGS012Callsthatfailedduetocallconnectionerrors: $objItem->{RGS012Callsthatfailedduetocallconnectionerrors}\n";
	print "RGS013TransferattemptsthatfailedduetoagentURIsthatwerenotvalid: $objItem->{RGS013TransferattemptsthatfailedduetoagentURIsthatwerenotvalid}\n";
	print "RGS014TimespentinMatchMakingservice: $objItem->{RGS014TimespentinMatchMakingservice}\n";
	print "RGS015TimeittooktoplaceacalltotheMatchMakingservice: $objItem->{RGS015TimeittooktoplaceacalltotheMatchMakingservice}\n";
	print "RGS016TimespentinMakeTransferservice: $objItem->{RGS016TimespentinMakeTransferservice}\n";
	print "RGS017AttemptstoopenaconnectiontoMatchMaking: $objItem->{RGS017AttemptstoopenaconnectiontoMatchMaking}\n";
	print "RGS018PendingMatchMakingworkitems: $objItem->{RGS018PendingMatchMakingworkitems}\n";
	print "RGS019WaitingtimeforpendingMatchMakingworkitems: $objItem->{RGS019WaitingtimeforpendingMatchMakingworkitems}\n";
	print "RGS020PendingMakeTransferworkitems: $objItem->{RGS020PendingMakeTransferworkitems}\n";
	print "RGS021WaitingtimeforpendingMakeTransferworkitems: $objItem->{RGS021WaitingtimeforpendingMakeTransferworkitems}\n";
	print "RGS022TimedoutcallstoMatchMaking: $objItem->{RGS022TimedoutcallstoMatchMaking}\n";
	print "RGS023CallstoMatchMakingthatfailedbecausetheconnectionisnotopened: $objItem->{RGS023CallstoMatchMakingthatfailedbecausetheconnectionisnotopened}\n";
	print "RGS024CallstoMatchMakingthatfailedbecauseofacommunicationexception: $objItem->{RGS024CallstoMatchMakingthatfailedbecauseofacommunicationexception}\n";
	print "RGS025CallstoMatchMakingfailedbecauseofageneralexception: $objItem->{RGS025CallstoMatchMakingfailedbecauseofageneralexception}\n";
	print "RGS026NumberofregisteredcallstoMatchMaking: $objItem->{RGS026NumberofregisteredcallstoMatchMaking}\n";
	print "RGS027NumberofunregisteredcallstoMatchMaking: $objItem->{RGS027NumberofunregisteredcallstoMatchMaking}\n";
	print "RGS028NumberofcompletedcalltransferstoMatchMaking: $objItem->{RGS028NumberofcompletedcalltransferstoMatchMaking}\n";
	print "RGS029Numberofstoredcallcontexts: $objItem->{RGS029Numberofstoredcallcontexts}\n";
	print "RGS030NumberoffailedregistercallstoMatchMaking: $objItem->{RGS030NumberoffailedregistercallstoMatchMaking}\n";
	print "RGS031NumberoffailedunregistercallstoMatchMaking: $objItem->{RGS031NumberoffailedunregistercallstoMatchMaking}\n";
	print "RGS032FailedtransfercompletedcallstoMatchMaking: $objItem->{RGS032FailedtransfercompletedcallstoMatchMaking}\n";
	print "RGS033Callstransferred: $objItem->{RGS033Callstransferred}\n";
	print "Timestamp_Object: $objItem->{Timestamp_Object}\n";
	print "Timestamp_PerfTime: $objItem->{Timestamp_PerfTime}\n";
	print "Timestamp_Sys100NS: $objItem->{Timestamp_Sys100NS}\n";
	print "\n";
	print "########\n";
	print "\n";
}