3. Accessing Data for Electric Power, Temperature, and Processor UtilizationExpress5800/R110i-1, T110i-S, T110i Maintenance Guide 219Chapter 3 AppendixProcessor utilization3.1.3The utilization rate of all logical processors is given by using theWin32_PerfFormattedData_PerfOS_Processor class that Windows OS provides.The following is the sample file (named as Proc.vbs) created by using Visual Basic Script. This script outputsthe processor utilization rate every 30 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 Command exampleC:¥VBS> cscript //nologo Proc.vbs 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.