Duncan Laurie
2d0c486541
make sdr elist reporting consistent
2005-05-14 04:17:56 +00:00
Duncan Laurie
58c0fa890b
minor fix for generic sdr display
2005-05-13 23:59:07 +00:00
Duncan Laurie
57c49ef9b8
lots of changes to SDR handling
2005-05-12 04:14:26 +00:00
Duncan Laurie
30eec7d0ac
only decode sensor-specific states
2005-04-22 19:53:27 +00:00
Duncan Laurie
a292d94239
fix handling of sensors that are read correctly
2005-04-22 05:07:17 +00:00
Duncan Laurie
6052a2b57a
add sdr_cache function, fix Get SDR Header to handle cancelled reservation
2005-04-20 20:44:59 +00:00
Duncan Laurie
116c7a7cf9
fix segfault when no entity passed
2005-03-25 16:58:54 +00:00
Duncan Laurie
596ef14553
add usage text for entity and dump commands
2005-03-24 18:31:03 +00:00
Duncan Laurie
4e59621e64
use double instead of float because its more portable
2005-03-18 00:43:05 +00:00
Duncan Laurie
3da7fea17f
solaris 9 doesn't have sqrtf
2005-03-18 00:36:20 +00:00
Duncan Laurie
14042e4021
sometimes still get valid read when scanning is disabled
2005-03-17 04:39:51 +00:00
Duncan Laurie
47e42d3f32
fix compile errors when -Wall is specified
2005-03-17 03:28:53 +00:00
Duncan Laurie
34474dcb2a
add linear sensor support
2005-03-16 23:54:12 +00:00
Duncan Laurie
81d5b08b3d
send warning to stderr
2005-01-11 21:36:22 +00:00
Duncan Laurie
e72103d30f
check malloc and strdup for success
2005-01-07 22:43:38 +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
32cba5f174
don't bail on SDR version 0x02
2005-01-06 19:19:35 +00:00
Duncan Laurie
e23dde507e
remove isol,
...
remove signal handler function as it was not used,
clean up error handling in ipmi_open_file
change min define to __min to avoid conflicts
2005-01-06 19:09:05 +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
b6852fc77b
fix supermicro sdr problem
2004-12-13 19:53:46 +00:00
Duncan Laurie
929d330424
add function to handle printing asserted states
2004-11-19 19:51:16 +00:00
Duncan Laurie
3c58698736
change formating to be consistant,
...
add entity lookup functions
2004-11-17 23:19:10 +00:00
Duncan Laurie
c1fd61b419
use portable file io
2004-09-01 16:40:26 +00:00
Duncan Laurie
a745d83af2
move file handling routines into helper
2004-09-01 00:19:36 +00:00
Duncan Laurie
8f5e3e0d95
fix segfault on x86_64 by including time.h...
...
fix lots of little issues that show up when -Wall is turned on
2004-08-31 22:52:54 +00:00
Duncan Laurie
4d8ec39062
add new "dump" command to dump the entire sdr to a binary file
...
relax version check to try and support IPMIv1.0 SDRs
2004-08-27 16:50:14 +00:00
Jeremy Ellington
85ed419117
Added support for the GET SDR REPOSITORY INFO command
2004-06-14 20:04:33 +00:00
Duncan Laurie
9b0b5ed676
add ipmi_intf header
2004-04-15 20:29:26 +00:00
Duncan Laurie
0b3db22dab
don't read entire sdr into memory before returning found entry,
...
instead continue reading where we left of with next call.
add support for getting multiple sensors by name
2004-03-31 18:34:59 +00:00
Duncan Laurie
c7bc504b87
remove ability to find sensor by number,
...
add support for finding all SDR record types
2004-03-31 17:54:29 +00:00
Duncan Laurie
e09dc5950c
- determine maximum buffer length for SDR reading dynamically
...
- add support for "sensor get" command
- let sensor get and sensor thresh use sensor id as well as name
- build list of sdrs when searching, for use in xref of sel data
- fix memory leak during sensor list
2004-03-26 21:38:10 +00:00
Fredrik Öhrn
ccf104d610
If we loose the reservation, request a new one and retry the operation.
2004-03-10 15:42:48 +00:00
Jon Cassorla
1e1058db49
add sensor list, get/set threshold commands
2004-02-05 01:10:25 +00:00
Duncan Laurie
0e5cbcd112
finish making SDR code big-endian aware
...
this is ugly because packed structures are not portable
2004-01-27 20:11:56 +00:00
Jon Cassorla
320853217c
enable sensor command
2004-01-23 05:16:32 +00:00
Jon Cassorla
45a0fa0324
Output format changes
2004-01-12 03:14:16 +00:00
Jon Cassorla
81ae330e9b
Add support for type 3 sdr; provide ns (no status) for sensor on sdr output
2004-01-12 00:51:40 +00:00
Fredrik Öhrn
8c1dbf31c4
fix potential nullpointer exceptions in errorhandling
...
remove unnecessary strdups
2004-01-08 22:53:57 +00:00
Duncan Laurie
1c9f5127e6
add support for FRU locator records,
...
fix display of threshold initial values from SDR
--from Jon Cassorla
2004-01-06 23:05:12 +00:00
Duncan Laurie
a5e813318a
add support for verbose sdr output in CSV mode and add some fields,
...
fix sdr_convert_sensor_reading to properly handle signed values
--from Fredrik Ohrn
2004-01-06 01:43:10 +00:00
Duncan Laurie
1a7873b684
add "reading unavailable" support from v1.5 eratta
...
from Jon Cassorla at Newisys
2004-01-05 17:58:13 +00:00
Duncan Laurie
fc29d57ffc
- rework "sdr list" command to take additional argument specifying
...
what type of SDR records to dispaly
- add support for MC locator records
- better support for compact records
2003-12-18 22:42:32 +00:00
Duncan Laurie
7d910260e4
add minimial support for printing compact sensor records
2003-12-18 01:00:22 +00:00
Duncan Laurie
18a1ff5e60
update SDR print functions to use iterator primitives
2003-12-17 23:50:15 +00:00
Duncan Laurie
dd87b050b8
new functions for iterating through sdr records
2003-12-17 21:20:33 +00:00
Duncan Laurie
d52f792652
still print fields for value and units when no reading available
2003-12-04 21:21:33 +00:00
Duncan Laurie
3177b09272
Small fix for SDR csv output.
...
This patch separates the sensor reading and it's unit
(Volts, RPM etc.) into two columns.
This simplifies feeding the readings into other
utilities that expect pure numeric input.
From Fredrik Öhrn
2003-12-02 21:42:20 +00:00
Duncan Laurie
05df8eb9a2
fix sdr handling of sensors that do not return a reading
2003-11-26 19:07:32 +00:00
Duncan Laurie
14ac9f77c9
Update to current version
2003-11-18 17:56:07 +00:00