| 10 | ** Sending Raw hex commands to read sensor data: |
| 11 | |
| 12 | The following example uses the ipmitool raw command to get temperature data from FanTray 1 |
| 13 | |
| 14 | The argument 0x04 signifies SensorEvent |
| 15 | |
| 16 | The argument 0x2d means read sensor data |
| 17 | |
| 18 | 235 is the sensor number, in this case the temperature reading for FanTray1. |
| 19 | |
| 20 | {{{ |
| 21 | [bkilian@cmssun1 ~]$ ipmitool -I lan -H 192.168.10.171 -P "" -t 0x20 raw 0x04 0x2d 235 |
| 22 | 17 c0 c0 |
| 23 | }}} |
| 24 | |
| 25 | The first value displayed, 17, is the HEX value of the temperature. c0 c0 signify the sensor status and the state mask. |
| 26 | |
| 27 | * Fan Speed |
| 28 | |
| 29 | To read the temperature of the FanTrays, use as the final argument: |
| 30 | 240 - FanTray1 |
| 31 | |
| 32 | 241 - FanTray2 |
| 33 | |
| 34 | 242 - FanTray3 |
| 35 | |
| 36 | 243 - FanTray4 |
| 37 | |
| 38 | The resulting hex value multiplied by 46 is the fan speed in RPM. For example, |
| 39 | {{{ |
| 40 | [bkilian@cmssun1 work]$ ipmitool -I lan -H 192.168.10.171 -P "" -t 0x20 raw 0x04 0x2d 243 |
| 41 | 2c c0 c0 |
| 42 | }}} |
| 43 | gives us 2c, or 44, for fan speed. The actual fan speed is 44*46 = 2024 RPM |
| 44 | |
| 45 | * Temperature |
| 46 | |
| 47 | To read the fan speed of each fan, use as the final argument: |
| 48 | 235 - FanTray1 |
| 49 | |
| 50 | 236 - FanTray2 |
| 51 | |
| 52 | 237 - FanTray3 |
| 53 | |
| 54 | 238 - FanTray4 |
| 55 | |
| 56 | The first number that is output is the hex value, in degrees Celsius, of the exhaust of the fan. |
| 57 | |
30 | | === 2019-10-07 === |
31 | | Sending Raw hex commands to read sensor data |
32 | | |
33 | | The following example uses the ipmitool raw command to get temperature data from FanTray 1 |
34 | | The argument 0x04 signifies SensorEvent |
35 | | |
36 | | The argument 0x2d means read sensor data |
37 | | |
38 | | 235 is the sensor number, in this case the temperature reading for FanTray1 (236, 237, 238 for Fantrays 2,3,4, respectively). |
39 | | |
40 | | {{{ |
41 | | [bkilian@cmssun1 ~]$ ipmitool -I lan -H 192.168.10.171 -P "" -t 0x20 raw 0x04 0x2d 235 |
42 | | 17 c0 c0 |
43 | | }}} |
44 | | |
45 | | The first value displayed, 17, is the HEX value of the temperature. c0 c0 signify the sensor status and the state mask. |