I-4 Accessing Power and Performance Data
' (Get SDR) for each record
Dim Record_LS,Record_MS, Offset, Length
Dim cnt, sensorNum, sensorType
' First Record
Record_LS = 0
Record_MS = 0
For cnt = 0 to RecordCount-1
Offset = 0
Length = 9
oinparams.networkfunction = &ha
oinparams.lun = 0
oinparams.responderaddress = &h20
oinparams.command = &h23
oinparams.requestdata = array(Reserve_LS, Reserve_MS, Record_LS, Record_MS, Offset, Length)
oinparams.requestdatasize = 6
set outparams = oipmi.execmethod_("requestresponse",oinparams)
If outparams.Completioncode = 0 Then
If outparams.ResponseData(6) = 1 Then ' Full Sensor Record
call GetSensorType(Reserve_LS, Reserve_MS, Record_LS, Record_MS, sensorType)
If sensorType = 1 Then ' Temperature
WScript.Echo "==========================================="
call GetIDString(Reserve_LS, Reserve_MS, Record_LS, Record_MS)
WScript.Echo " Sensor Type = Temperature"
sensorNum = outparams.ResponseData(10)
call GetSensor(Reserve_LS, Reserve_MS, Record_LS, Record_MS,sensorNum)
End If
End If
Record_LS = outparams.ResponseData(1)
Record_MS = outparams.ResponseData(2)
If Record_LS = &hff And Record_MS = &hff Then
exit For
End If
End If
Next
Sub GetSensorType(rv_ls, rv_ms, rc_ls, rc_ms, sensorType)
Dim outtmp
oinparams.networkfunction = &ha
oinparams.lun = 0
oinparams.responderaddress = &h20
oinparams.command = &h23
oinparams.requestdata = array(rv_ls, rv_ms, rc_ls, rc_ms, 12, 2)
oinparams.requestdatasize = 6
set outtmp = oipmi.execmethod_("requestresponse",oinparams)
sensorType = outtmp.ResponseData(3)
End Sub
Summary of Contents for N8100-1644F
Page 21: ...Notes on Using Your Server 1 3 Internal View ...
Page 235: ...Installing and Using Utilities 6 13 Windows Server 2003 ...
Page 262: ...7 14 Maintenance This page is intentionally left blank ...
Page 316: ...8 54 Troubleshooting When you use a remote console 6 Each tool is selected and it starts ...
Page 417: ...C 2 IRQ This page is intentionally left blank ...
Page 441: ...D 24 Installing Windows Server 2008 R2 4 Activate Windows The Windows activation is complete ...
Page 471: ...E 28 Installing Windows Server 2008 4 Activate Windows The Windows activation is complete ...
Page 531: ......
Page 533: ...H 2 Using a Client Computer Which Has a CD Drive This page is intentionally left blank ...
Page 543: ...I 10 Accessing Power and Performance Data This page is intentionally left blank ...
Page 547: ...J 4 Product Configuration Record Table This page is intentionally left blank ...