From: Federico S. <fe...@lp...> - 2005-07-28 11:28:02
|
Duncan Laurie wrote: > On Wed, 2005-07-27 at 10:32 -0700, Duncan Laurie wrote: > >>On Wed, 2005-07-27 at 19:13 +0200, Federico Simmross wrote: >> >>>Hello, >>> >>>I'm trying to write a threshold for a fan sensor but, as far as I can >>>see, the value is incorrectly written. >>> >>>I issued this command: 'ipmitool sensor thres "Sys Fan 1" lnc 2000', >>>which says that the value 2000.000 was written to the threshold but this >>>is what I get when I do a 'ipmitool sensor get "Sys Fan 1"': >>> >> >> >>This is probably because 2000 == 0x7D0 which is greater than the 2 bytes >>that is provided for a threshold value in the SDR. The value will need >>to be converted into a format that will fit by doing the reverse of the >>equation provided in the IPMI spec for converting readings. Whatever >>value is being written in RAW format to the field will be converted back >>to a readable value according to that same equation--writing a raw 0 >>will likely not read back 0. >> > > > > I should remember to read the code before I answer... ipmitool already > attempts to convert a specified threshold back to raw before sending it > but it looks as if it is not handling the linear sensors correctly when > it does this. > > -duncan > Thank you for answering! I can do some tests for you if you wish... I'd be very interested in getting this to work, both writing to the thresholds and properly ordering them when they are inverted. |