3. Accessing Data for Electric Power, Temperature, and Processor UtilizationExpress5800/R120d-1E, R120d-2E Maintenance Guide 165Chapter 3 Appendix3.2 LinuxThe sample program below is verified to be run on Red Hat Enterprise Linux 5.3.2.1 Power consumptionPower consumption is given by executing the following commands via IPMI to BMC.Network Function Code: 3Eh (Controller-specific OEM)Command Code: 0Bh (Get Current Sensor Data)The example below uses the open-source software OpenIPMI driver and IPMITool. For Red Hat EnterpriseLinux 5, OpenIPMI is provided as an inbox driver. IPMITool is provided in: OpenIPMI-tools-[version].rpm• Execution example# ipmitool raw 0x3e 0x0b• Execution result4C 00Power consumption is given by calculating the 2-byte (16 bits) output value.The second value 0x00 [15:8]The first value 0x4C [7:0]In the example above, power consumption = 0x004C (16 bits) = 76 (10 bits) watts.Tips Power consumption readings may not be acquired depending on the power supplyconfiguration of the server.In such cases, either of the following messages is displayed.Unable to send RAW command (channel=0x0 netfn=0x3e lun=0x0 cmd=0xb rsp=0xc1): Invalid CommandorUnable to send RAW command (channel=0x0 netfn=0x3e lun=0x0 cmd=0xb rsp=0xcb): Requested sensor, data, or record not found3.2.2 Intake air temperatureIntake air temperature is given by executing IPMI commands to BMC.The example below uses Open IPMI driver and IPMITool that are open source software. For Red HatEnterprise Linux 5, OpenIPMI driver is contained in Inbox driver. IPMITool is contained in:OpenIPMI-tools-[version].rpm• Execution example# ipmitool sdr type Temperature• Execution resultBaseboard Temp4 | 31h | ok | 45 degrees CFnt Pnl Temp | 35h | ok | 27 degrees CCPU1_DIMM1 Temp | 40h | ok | 48 degrees CCPU1_DIMM2 Temp | 41h | ok | 46 degrees CCPU1_DIMM3 Temp | 42h | ok | 49 degrees CCPU1_DIMM4 Temp | 43h | ns | No ReadingCPU1_DIMM5 Temp | 44h | ns | No ReadingCPU1_DIMM6 Temp | 45h | ns | No ReadingP1 Therm Ctrl % | A0h | ok | 0 unspecified