3. Accessing Data for Electric Power, Temperature, and Processor UtilizationExpress5800/R120h-1M, R120h-2M Maintenance Guide 227Chapter 3 AppendixProcessor utilization3.1.3The utilization rate of all logical processors is given by executing theWin32_PerfFormattedData_PerfOS_Processor class that Windows OS provides. Below is the sample filecreated by using Visual Basic Script (named as Proc.vbs). This script outputs the processor utilization rate every30 seconds.' Start ScriptstrComputer = "."Set objWMIService = GetObject("winmgmts:" _& "{impersonationLevel=impersonate}!¥¥" & strComputer & "¥root¥cimv2")set objRefresher = CreateObject("WbemScripting.Swbemrefresher")Set objProcessor = objRefresher.AddEnum _(objWMIService, "Win32_PerfFormattedData_PerfOS_Processor").objectSetobjRefresher.RefreshDim firstfirst = trueDoFor each intProcessorUse in objProcessorIf first ThenIf intProcessorUse.Name = "_Total" Thenfirst = falseEnd IfelseWscript.Echo "Proc" & intProcessorUse.Name & " : " & _"PercentProcessorTime=" & _intProcessorUse.PercentProcessorTimeEnd IfNextWscript.Sleep 30*1000 'sleep 30 * 1000msobjRefresher.RefreshLoop' End Script Execution exampleC:¥VBS> cscript //nologo Proc.vbs Execution resultProc0 : PercentProcessorTime=0Proc1 : PercentProcessorTime=0Proc2 : PercentProcessorTime=0Proc3 : PercentProcessorTime=0Proc4 : PercentProcessorTime=76Proc5 : PercentProcessorTime=0Proc6 : PercentProcessorTime=0Proc7 : PercentProcessorTime=0Proc_Total : PercentProcessorTime=9Proc 0 to Proc 7 show the utilization rate of each processor while Proc_Total shows the total processorutilization rate.