3. Accessing Data for Electric Power, Temperature, and Processor UtilizationExpress5800/R120h-1M, R120h-2M Maintenance Guide224Chapter 3 Appendix Execution resultCompletion Code = 0x0Power Consumption = 306 wattsThe power consumption is 306 watts.Tips Power consumption readings may not be acquired depending on the power supplyconfiguration of the server.The completion code in such cases is 0xC1 or 0xCB.Intake air temperature3.1.2Execute the following standard commands that conform to IPMI to search Sensor Data Record (SDR) for thetemperature sensor and obtain intake air temperature data. Get SDR Repository Info Reserve SDR Repository Get SDR Get Sensor ReadingBelow is the sample file created by using Visual Basic Script (named as Sensor.vbs),'Start ScriptOption Explicit' Prepare for MS IPMI DriverDim osvc, oclassDim oinstance, oipmiset osvc = getobject("winmgmts:root¥wmi")set oclass = osvc.get("microsoft_ipmi")for each oinstance in osvc.instancesof("microsoft_ipmi")set oipmi = oinstancenext' (Get SDR Repository Info)Dim oinparamsset oinparams = oclass.methods_("requestresponse").inparameters' (Get SDR Repository Info)oinparams.networkfunction = &haoinparams.lun = 0oinparams.responderaddress = &h20oinparams.command = &h20oinparams.requestdatasize = 0' Fire IPMI CommandDim outparamsDim i, RecordCountset outparams = oipmi.execmethod_("requestresponse",oinparams)RecordCount = outparams.ResponseData(3)*256 + outparams.ResponseData(2)' (Reserve SDR Repository)oinparams.networkfunction = &haoinparams.lun = 0oinparams.responderaddress = &h20oinparams.command = &h22oinparams.requestdatasize = 0Dim Reserve_LS, Reserve_MSset outparams = oipmi.execmethod_("requestresponse",oinparams)Reserve_LS = outparams.ResponseData(1)Reserve_MS = outparams.ResponseData(2)' (Get SDR) for each recordDim Record_LS,Record_MS, Offset, LengthDim cnt, sensorNum, sensorType' First RecordRecord_LS = 0Record_MS = 0For cnt = 0 to RecordCount-1Offset = 0Length = 9oinparams.networkfunction = &haoinparams.lun = 0oinparams.responderaddress = &h20oinparams.command = &h23oinparams.requestdata = array(Reserve_LS, Reserve_MS, Record_LS, Record_MS, Offset, Length)oinparams.requestdatasize = 6set outparams = oipmi.execmethod_("requestresponse",oinparams)