EasyManuals Logo

NEC Express 5800 Series Maintenance Guide

NEC Express 5800 Series
160 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #157 background imageLoading...
Page #157 background image
3. Accessing Data for Electric Power, Temperature, and Processor Utilization
Express5800/T110f-S, R110f-1E, T110f-E Maintenance Guide
157
Chapter 3 Appendix
End Sub
Sub get2complement(raw, rv, bit)
Select Case bit
case 4:
If raw And &h8 Then
rv = 0 - ((&h10 - raw) and &h0f)
Else
rv = raw
End If
case 8:
If raw And &h80 Then
rv = 0 - ((&h100 - raw) and &h0ff)
Else
rv = raw
End If
case 10:
If raw And &h200 Then
rv = 0 - ((&h400 - raw) and &h3ff)
Else
rv = raw
End If
End Select
End Sub
Sub GetIDString(rv_ls, rv_ms, rc_ls, rc_ms)
Dim tmpMessage
Dim outsdridstringtype
oinparams.networkfunction = &ha
oinparams.lun = 0
oinparams.responderaddress = &h20
oinparams.command = &h23
oinparams.requestdata = array(rv_ls, rv_ms, rc_ls, rc_ms, 47, 1)
oinparams.requestdatasize = 6
set outsdridstringtype = oipmi.execmethod_("requestresponse",oinparams)
Dim outsdridstring
Dim idlength, j
idlength = outsdridstringtype.ResponseData(3) and 31
oinparams.networkfunction = &ha
oinparams.lun = 0
oinparams.responderaddress = &h20
oinparams.command = &h23
oinparams.requestdata = array(rv_ls, rv_ms, rc_ls, rc_ms, 48, idlength)
oinparams.requestdatasize = 6
set outsdridstring = oipmi.execmethod_("requestresponse",oinparams)
tmpMessage = " ID String = "
For j = 3 to idlength + 2
tmpMessage = tmpMessage & Chr(outsdridstring.ResponseData(j))
Next
WScript.Echo tmpMessage
End Sub
'End Script
Execution example
C:¥VBS> cscript //nologo Sensor.vbs
Execution result
===========================================
ID String = Baseboard Temp4
Sensor Type = Temperature
Current Value = 45 degrees C
===========================================
ID String = Fnt Pnl Temp
Sensor Type = Temperature
Current Value = 27 degrees C
===========================================
ID String = CPU1_DIMM1 Temp
Sensor Type = Temperature
Current Value = 35 degrees C
===========================================
ID String = CPU1_DIMM2 Temp
Sensor Type = Temperature
Event Status: Unavailable
===========================================
Intake air temperature data is obtained from the sensor with an ID string that contains any of the following:
Amb, Ambient, or Front Panel.
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.

Table of Contents

Other manuals for NEC Express 5800 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the NEC Express 5800 Series and is the answer not in the manual?

NEC Express 5800 Series Specifications

General IconGeneral
BrandNEC
ModelExpress 5800 Series
CategoryServer
LanguageEnglish

Related product manuals