Hi Corey, Sorry for the incomplete data in my previous mail. I saw the error in "sdr_handle.c", mentioning that " Could not get main SDRs, error 0x633bb8" Please check if this gives some clue to fix the issue I am facing. <snip> addr = 36c4c578 36c4c578 36c4c578 36c4c578 36c4c578 36c4c578 36c4c578 36c4c578 40 msg = netfn=^P cmd= 41 msg = netfn=%s cmd=%s data_len=%d. data_len=0. ^Poutgoing msgid=00653048 42 addr = 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 43 msg = netfn=^P cmd= /error 13899 msg = netfn=%s cmd=%s data_len=%d. data_len=0. ^Pincoming msgid=00653068 13900 addr = 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 13901 msg = netfn=^P cmd= 13902 msg = netfn=%s cmd=%s data_len=%d. cc=%s data_len=0. cc= 13903 data = 13904 36c4c6d8 ^Psdr.c(handle_sdr_data): Lost reservation too many times trying to fetch SDRs^Poutgoing msgid=00653048 13905 addr = 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 13906 msg = netfn=^P cmd= 13907 msg = netfn=%s cmd=%s data_len=%d. data_len=0. ^Pincoming msgid=00653068 13908 addr = 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 13909 msg = netfn=^P cmd= 13910 msg = netfn=%s cmd=%s data_len=%d. cc=%s data_len=0. cc= 13911 data = 13912 36c4c6d8 ^Poutgoing msgid=00653048 13913 addr = 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 13914 msg = netfn=^P cmd= 13915 msg = netfn=%s cmd=%s data_len=%d. data_len=0. ^Pincoming msgid=00653068 13916 addr = 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 13917 msg = netfn=^P cmd= 13918 msg = netfn=%s cmd=%s data_len=%d. cc=%s data_len=0. cc= 13919 data = 13920 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 ^Pdomain.c(sdr_handler): Could not get main SDRs, error 0x633bb8^Poutgoing msgid=00653048 </snip>
Regards, Rishi -----Original Message----- From: Rishi Kaundinya Mutnuru [mailto:rkmutn...@juniper.net] Sent: Sunday, September 15, 2013 10:09 PM To: miny...@acm.org Cc: openipmi-developer@lists.sourceforge.net Subject: Re: [Openipmi-developer] OpenIPMI question Hi Corey, Thanks for your reply. I have added following log function. <snip> static void log_ipmi(os_handler_t *os, const char *format, enum ipmi_log_type_e log_type, va_list ap ) { FILE *fp; fp = fopen("/tmp/ipmi", "a+"); fprintf(fp, format, ap); fclose(fp); } Sentbl_init() { ... ipmi_init(os); os->set_log_handler(os, jablog_ipmi); ........ } </snip> I am seeing following output /tmp/ipmi file continuosly. <snip> data = 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 outgoing msgid=00653048 addr = 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 msg = netfn= cmd= msg = netfn=%s cmd=%s data_len=%d. data_len=0. incoming msgid=00653068 addr = 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 msg = netfn= cmd= msg = netfn=%s cmd=%s data_len=%d. cc=%s data_len=0. cc= data = 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 outgoing msgid=00653048 addr = 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 36c4c7d8 msg = netfn= cmd= msg = netfn=%s cmd=%s data_len=%d. data_len=0. incoming msgid=00653068 addr = 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 msg = netfn= cmd= msg = netfn=%s cmd=%s data_len=%d. cc=%s data_len=0. cc= data = 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 36c4c6d8 </snip> Do you have any clue with above data or anything else I need to do. Thanks, Rishi -----Original Message----- From: Corey Minyard [mailto:tcminy...@gmail.com] Sent: Sunday, September 15, 2013 6:29 PM To: Rishi Kaundinya Mutnuru Cc: tcminy...@gmail.com; openipmi-developer@lists.sourceforge.net Subject: Re: OpenIPMI question Sorry, I didn't respond to an earlier message you sent. That should be mostly fine. You need a log handlers, and the output of that may tell you what is going wrong. -corey On 09/15/2013 01:29 AM, Rishi Kaundinya Mutnuru wrote: > Hi Corey, > I am invoking the OpenIPMI routines by linking the libOpenIPMI.a to my > C++ code. > I have kept the calling code "extern "C"" logic. Do you know whether I > need to anything Else to link the OpenIPMI libraries to my c++ code. > Somehow the function I register to "ipmi_open_domain" never got > invoked and I am stuck there. > Please let me know whether I need to anything else in my daemon. > os_handler_t *osfns; > int > sentbl_init (os_handler_t *os) > { > int rv; > assert(os && !sentbl.st_inited); > DEBUG_MSG_ENABLE(); > ipmi_init(os); > rv = ipmi_smi_setup_con(0, os, NULL, &sentbl.st_ipmi_con); if (rv) { > ipmi_shutdown(); return -1; } rv = ipmi_open_domain("", > &sentbl.st_ipmi_con, 1, ipmicb_setup_done, NULL, NULL, NULL, NULL, 0, > NULL); àipmicb_setup_done never invoked if (rv) { ipmi_shutdown(); > return -1; } sentbl.st_inited = TRUE; return 0; } > Main() > { > //IPMI handler > osfns = ipmi_posix_setup_os_handler(); if (!osfns) { } > While(1) { > ...... > if (osfns) { > osfns->perform_one_op(osfns, tvp); > } > } > Please let me know if I need to add anything else to this code. > Thanks, > Rishi ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ Openipmi-developer mailing list Openipmi-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openipmi-developer ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ Openipmi-developer mailing list Openipmi-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openipmi-developer