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 = 0x" & hex(outparams.ResponseData(1))
'WScript.Echo " Data MS Byte = 0x" & hex(outparams.ResponseData(2))
WScript.Echo " Power Consumption = " & outparams.ResponseData(2)*256 + _
outparams.ResponseData(1) & " watts"
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:
Power consumption may not be collected depending on power
supply configuration of the server. In such a case, Completion Code is
shown as 0xC1 or 0xCB.
Summary of Contents for N8100-1668F
Page 60: ...2 28 General Description This page is intentionally left blank ...
Page 146: ...5 8 Installing the Operating System with Express Setup Flow of Setup ...
Page 173: ...Installing the Operating System with Express Setup 5 35 Flow of Setup ...
Page 255: ...Installing and Using Utilities 6 13 Windows Server 2003 ...
Page 282: ...7 14 Maintenance This page is intentionally left blank ...
Page 339: ...Troubleshooting 8 57 When you use a remote console 6 Each tool is selected and it starts ...
Page 422: ...9 78 Upgrading Your Server This page is intentionally left blank ...
Page 440: ...C 2 IRQ This page is intentionally left blank ...
Page 464: ...D 24 Installing Windows Server 2008 R2 4 Activate Windows The Windows activation is complete ...
Page 495: ...Installing Windows Server 2008 E 29 4 Activate Windows The Windows activation is complete ...
Page 558: ...H 2 Using a Client Computer Which Has a CD Drive This page is intentionally left blank ...
Page 568: ...I 10 Accessing Power and Performance Data This page is intentionally left blank ...
Page 572: ...J 4 Product Configuration Record Table This page is intentionally left blank ...