Processor Utilization - NEC Express5800 Series Maintenance Manual

Express server
Hide thumbs Also See for Express5800 Series:
Table of Contents

Advertisement

Chapter 3 Appendix
In the case of the sample above, the data is obtained from a sensor that contains Fnt Pnl Temp in its ID, with
a resulting intake air temperature of 27°C.

3.1.3 Processor utilization

The utilization rate of all logical processors is given by executing the
Win32_PerfFormattedData_PerfOS_Processor class that Windows OS provides. Below is the sample file
created by using Visual Basic Script (such as Proc.vbs). This script outputs the processor utilization rate every
30 seconds.
' Start Script
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!¥¥" & strComputer & "¥root¥cimv2")
set objRefresher = CreateObject("WbemScripting.Swbemrefresher")
Set objProcessor = objRefresher.AddEnum _
(objWMIService, "Win32_PerfFormattedData_PerfOS_Processor").objectSet
objRefresher.Refresh
Dim first
first = true
Do
For each intProcessorUse in objProcessor
If first Then
If intProcessorUse.Name = "_Total" Then
first = false
End If
else
Wscript.Echo "Proc" & intProcessorUse.Name & " : " & _
End If
Next
Wscript.Sleep 30*1000
objRefresher.Refresh
Loop
' End Script
Execution example
C:¥VBS> cscript //nologo Proc.vbs
Execution result
Proc0 : PercentProcessorTime=0
Proc1 : PercentProcessorTime=0
Proc2 : PercentProcessorTime=0
Proc3 : PercentProcessorTime=0
Proc4 : PercentProcessorTime=76
Proc5 : PercentProcessorTime=0
Proc6 : PercentProcessorTime=0
Proc7 : PercentProcessorTime=0
Proc_Total : PercentProcessorTime=9
Proc 0 to Proc 7 show the utilization rate of each processor while Proc_Total shows the total processor
utilization rate.
3. Accessing Data for Electric Power, Temperature, and Processor Utilization
"PercentProcessorTime=" & _
intProcessorUse.PercentProcessorTime
'sleep 30 * 1000ms
Express5800/E120e-M Maintenance Guide
141

Advertisement

Table of Contents
loading

This manual is also suitable for:

Express5800/e120e-m

Table of Contents