Menu

ipmilan_open_session error ,SDK question

Help
kony.kong
2013-10-04
2013-10-04
  • kony.kong

    kony.kong - 2013-10-04

    I use the ipmiuitl lib to build test application. But for the call ipmi_getdeviceid with debug mode, get the first error is ipmilan_open_session error, rv = -15. But when I use ipmiutil health it is working. Did I missing any parse_lan_options settings? The target machine it is HP.

     
    • Andy Cress

      Andy Cress - 2013-10-04

      Good question. The return code -15 means that the BMC only supports LAN
      V2, which is technically a bug in the HP firmware, since the IPMI spec says
      that it is required to support LAN V1.5 connections also. However, HP
      apparently did this on purpose, so it won't be changing.

      You can decode the meaning of the return codes with the "decode_rv" routine
      char * decode_rv(int rv);

      What ipmiutil health is doing is getting this return code, and then
      automatically retrying with LAN 2.
      By default it tries driver type "lan" (LAN V1.5), but if it gets error
      -15, it does
      ret = set_driver_type("lan2");
      and tries again.

      Andy

      On Fri, Oct 4, 2013 at 3:39 PM, kony.kong konykong@users.sf.net wrote:

      I use the ipmiuitl lib to build test application. But for the call
      ipmi_getdeviceid with debug mode, get the first error is
      ipmilan_open_session error, rv = -15. But when I use ipmiutil health it is
      working. Did I missing any parse_lan_options settings? The target machine
      it is HP.


      ipmilan_open_session error ,SDK questionhttps://sourceforge.net/p/ipmiutil/discussion/397223/thread/05ffebc1/?limit=25#72ed

      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/ipmiutil/discussion/397223/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

Log in to post a comment.