26 Commits

Author SHA1 Message Date
Zdenek Styblik
95df7b2499 ID: 3607393 - 'lib/ipmi_event.c' - redundant '\n' in error message
Commit removes redundant '\n' in error message.
2013-03-11 14:09:33 +00:00
Jim Mankovich
5d960089c9 Support for analog readings in discrete sensors on HP platforms. This was
implemented without an HP oem specific switch by modifying each interface
open routine to read and cache the OEM manufacturer (via the Get Device ID
command) immediately upon open and to reset the cached OEM manufacturer
id to unknown upon interface close.  The cached manufacturer value in the
interface is then be used at run time to implement the manufacturer
specific code.

A non threshold sensor has an analog value if it is defined as having
analog units and it has either valid percentage or modifier units
defined and the manufacturer is IPMI_OEM_HP.   The determination of
whether or not a given sensor has an analog value is contained in a
single function (sdr_sensor_has_analog_reading).

This patch also encapsulates the reading of all sensor values in
ipmitool into a a single ipmitool function, ipmi_sdr_read_sensor_value.
The prior independent sensor reading code paths have been collapsed into
one sensor reading code path.   This encapsulation enabled consistent
validation of all data returned by the IPMI get sensor reading command.
In implementing a single sensor value read function, I resolved the
inconsistencies between what the "sensor" and "sdr" arguments displayed
and  I also resolved numerous cases where uninitialized information in
the IPMI reply from get sensor reading was being interpreted and
incorrectly displayed.
2012-07-10 16:01:09 +00:00
Jim Mankovich
5f11bb25b0 Correct Threshold/Discrete Sensor Display - Patch Tracker ID - 3508759 2012-05-01 16:59:23 +00:00
Zdenek Styblik
904cbebce5 Fixes ID:3421347 Sensor list command should use channel field from SDR
Running an "ipmitool sensor list" command on a system where remote sensors are
not on channel 0 results in unexpected behavior. The SDR functions were fixed
in January of 2009 (lib/ipmi_sdr.c, rev 1.86) to use target I2C addresses and
LUNs for non-BMC-owned sensors. Sensors owned by satellite controllers on other
channels were read as if they were on channel 0.

I've fitted patch, posted alongside bug report, to CVS version.
2012-02-06 09:51:58 +00:00
Carol Hebert
7cc935f2f1 Fix for Platform Event Message incorrect Generator ID 2009-06-04 20:46:10 +00:00
Carol Hebert
10f4a1a5c5 Bernard Manjou 6/10/08 patch to include I2c address and LUN so sensors are correctly managed; updated by BM for v1.8.10 2009-01-27 01:20:01 +00:00
Carol Hebert
1d3a7ff50a Nit fixes: strncmp length fixes, usage info fixes/additions, spelling and white space fixes 2008-06-10 21:48:28 +00:00
Duncan Laurie
a92765fbc9 fixes from netbsd 2006-06-28 22:16:32 +00:00
Duncan Laurie
21fb127ce2 fix gcc4 + buildcheck compile problems 2006-03-19 21:15:06 +00:00
Duncan Laurie
58ea8803f9 remove nuclear clause from license 2006-03-19 17:59:39 +00:00
Jon Cassorla
9d762b82a0 Recognize and decipher OEM SEL entries properly 2005-08-17 20:34:21 +00:00
Duncan Laurie
8cfb4c0897 add helper define for max string length, allow default commands to receive options 2005-05-17 21:05:21 +00:00
Duncan Laurie
2ef302401e fix compile warnings with -Wall 2005-05-15 17:42:21 +00:00
Duncan Laurie
5a7385f780 clean up output 2005-05-15 06:12:41 +00:00
Duncan Laurie
9708c8326f add support for generating events based on sensor information 2005-05-15 05:59:36 +00:00
Duncan Laurie
57c49ef9b8 lots of changes to SDR handling 2005-05-12 04:14:26 +00:00
Jeremy Ellington
6d1f8521e6 Removed calls to ipmi_intf_session_set_privlvl(intf, IPMI_SESSION_PRIV_ADMIN)
in the sub-commands.  We are ADMIN by default.
2005-03-09 20:29:35 +00:00
Duncan Laurie
8a2a11c520 checking invalid return code for feof 2005-02-01 00:14:37 +00:00
Duncan Laurie
014040610f use uint{8,16,32}_t instead of "unsigned {char,short,int|long}" 2005-01-07 02:05:49 +00:00
Duncan Laurie
9c848916cc fix compile problems with -g
update lan interface to send debug and errors to stderr
2005-01-06 22:35:35 +00:00
Duncan Laurie
dbbeee1b6f update error handling for "session" and "user" commands
check channel medium type before attempting to do lan operations on it
2005-01-06 21:17:52 +00:00
Duncan Laurie
4db9739e17 massive rework of many subsytems
handle errors better and return status codes correctly
2005-01-06 17:48:24 +00:00
Duncan Laurie
2e46c84218 only search for 7 bits 2004-11-19 19:49:23 +00:00
Duncan Laurie
7723fb41b3 add support for reading event list from a text file,
add support for generating events over system interface
2004-11-17 23:14:46 +00:00
Duncan Laurie
f0cbc9b2ba update to event generation test functions 2004-08-27 16:51:57 +00:00
Duncan Laurie
2ab696dc17 add ipmi_event file for event generation 2004-04-15 19:57:05 +00:00