freeipmi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Freeipmi-devel] ipmi-oem api


From: Thomas Cadeau
Subject: [Freeipmi-devel] ipmi-oem api
Date: Thu, 13 Jun 2013 20:49:17 +0000

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(...)

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]