NEC Express5800/R120b-1 User Manual page 568

Express5800/r120b-1
Table of Contents

Advertisement

I-2 Accessing Power and Performance Data
'call the driver
Dim outparams
set outparams = oipmi.execmethod_("requestresponse",oinparams)
WScript.Echo " Completion Code = 0x" & hex(outparams.Completioncode)
If outparams.Completioncode <> 0 Then
Wscript.Echo " Not supported"
Else
'WScript.Echo " Data LS Byte
'WScript.Echo " Data MS Byte
WScript.Echo " Power Consumption = " & outparams.ResponseData(2)*256 + _
End If
' End Script
Command Line (Example)
C:\VBS> cscript //nologo Power.vbs
Execution Result (Example)
Completion Code = 0x0
Power Consumption = 528 watts
The power consumption is 528 watts.
NOTE:
supply configuration of the server. In such a case, Completion Code is
shown as 0xC1 or 0xCB.
Power consumption may not be collected depending on power
= 0x" & hex(outparams.ResponseData(1))
= 0x" & hex(outparams.ResponseData(2))
outparams.ResponseData(1) & " watts"

Advertisement

Table of Contents
loading

Table of Contents