Hi Thomas, On Thu, 2013-06-13 at 20:49 +0000, Thomas Cadeau wrote: > Hi all, > > I'm trying to use libfreeipmi to get a value printed by ipmi-oem. > $ ipmi-oem Intelnm get-node-manager-statistics > Current Power : 256 Watts > Minimum Power : 217 Watts > Maximum Power : 924 Watts > ... ... > > Here are the functions I use in my code, with all "default" options: > uint8_t target_channel_number = 0; > uint8_t target_slave_address = 0; > uint8_t target_lun = 0; > uint8_t domainid = 0; > uint8_t policyid = 0; > uint8_t policyid_specified = 0; > unsigned int workaround_flags = 0; > //... > oem_ipmi_ctx = ipmi_ctx_create () > ipmi_ctx_find_inband (.....) or ipmi_ctx_open_inband (...) > ipmi_ctx_set_target (oem_ipmi_ctx, NULL, NULL); > obj_cmd_rs = fiid_obj_create > (tmpl_cmd_oem_intel_node_manager_get_node_manager_statistics_rs) > sdr_ctx = ipmi_sdr_ctx_create () > ipmi_cmd_oem_intel_node_manager_get_node_manager_statistics(...)
You are likely not using the right set of target channel/slave addresses, etc. if you are getting a timeout. i.e. the messages are not going to the right place so you're not getting a response. Are you calling ipmi_sdr_oem_parse_intel_node_manager() at some point? That should go in after the ipmi_sdr_ctx_create() and after you load and/or create a SDR cache (e.g. ipmi_sdr_cache_create/ipmi_sdr_cache_open). Then afterwards you can pass the values into ipmi_cmd_oem_intel_node_manager_get_node_manager_statistics(). Feel free to respond if you're having more problems. Al > I check the error after each call, and I get an timeout error in > ipmi_cmd_oem_intel_node_manager_get_node_manager_statistics. > > Of course I am doing something wrong, did I miss something? Is there a > better way to have ipmi-oem values? > > Thank you for your answers. > > Thomas > > _______________________________________________ > Freeipmi-devel mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/freeipmi-devel -- Albert Chu [email protected] Computer Scientist High Performance Systems Division Lawrence Livermore National Laboratory _______________________________________________ Freeipmi-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/freeipmi-devel
