Hi everyone-
This is a repost of a previous HTML email.
I'm developing a product that does not have an IPMB, but still uses a
mostly-IPMI compliant BMC for management. I'm able to use IPMItool to
establish IPMI-over-LAN and SOL sessions and have full functionality
over the KCS interface. However, the sensor command does not work over
an IPMI-over-LAN session.
The sdr command uses ipmi_sdr_get_sensor_reading to read the sensor
readings, but the sensor command uses ipmi_sdr_get_sensor_reading_ipmb
to do the same function. Changing the ipmi_sdr_get_sensor_reading_ipmb
calls to ipmi_sdr_get_sensor_reading calls fixes the problem for me, so
I was hoping this was something that could be incorporated into a future
release.
Is there a reason for using the _ipmb function? If not, is it reasonable
to change the function calls in ipmi_sensor.c to
ipmi_sdr_get_sensor_reading? Below is the updated ipmi_sensor.c code if
you would like to check it out.
Lines 101-107:
/*
* Get current reading
*/
rsp = ipmi_sdr_get_sensor_reading(intf,
sensor->keys.sensor_num);
186-192:
/*
* Get current reading
*/
rsp = ipmi_sdr_get_sensor_reading(intf,
sensor->keys.sensor_num);
425-421
/*
* Get current reading
*/
rsp = ipmi_sdr_get_sensor_reading(intf,
sensor->keys.sensor_num);
499:
itr = ipmi_sdr_start(intf);
771-779:
case SDR_RECORD_TYPE_FULL_SENSOR:
if (sdr->record.full->linearization >=
SDR_SENSOR_L_NONLINEAR) {
lprintf(LOG_ERR, "Sensor \"%s\"
non-linear!", argv[i]);
continue;
}
rsp = ipmi_sdr_get_sensor_reading(intf,
sdr->record.full->keys.sensor_num);
Thank you!
Regards,
-Ben Bloom
RadiSys Corporation
5445 NE Dawson Creek Drive
Portland, OR 97124
(503) 615-1569
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Ipmitool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipmitool-devel