In what context are you trying to use the sensor number to get the
information?  For example, if you registered a function with
ipmi_domain_add_event_handler(), you can use the event that gets passed
in to acquire the ipmi_sensor_id_t structure like this:

void domainEventHandler(ipmi_domain_t *domain,
                        ipmi_event_t  *event,
                        void          *callbackData) {

   int sensorNumber;
   ipmi_sensor_id_t sensorID;

   sensorID = ipmi_event_get_generating_sensor_id(domain, NULL, event);
   // now you can use sensorID with ipmi_sensor_id_reading_get()
}

--Jen

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Adam Grossman
Sent: Wednesday, July 23, 2008 2:36 PM
To: [email protected]
Subject: [Openipmi-developer] getting sensor info based only on sensor
id

hello,

i am pretty new to IPMI and OpenIPMI, and i did look on the mailing 
list, but i could not find an answer.  Is there anyway to retrieve 
sensor information based purely on the sensor id?  the call  
"ipmi_sensor_id_reading_get()" uses "ipmi_sensor_id_t", but it looks 
like to create a "ipmi_sensor_id_t", you already need to have a sensor 
object, which doesn't help me at all.  all i need to do to is is check 
the values of a handful of sensors and report them, and i have all the 
sensor ids for the motherboard manufacturer.  i do not want to have to 
iterate through everything to just to get a few values.

thank you,
-=- adam grossman

------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer

Reply via email to