Menu

read FRU from MC

Help
2015-12-11
2015-12-15
  • Zaboj Campula

    Zaboj Campula - 2015-12-11

    Hello

    I am trying to read FRU information via openipmi and I am not able to get any. Neither openipmish nor my code shows any FRU although other tools like ipmiutil and ipmitool show something reasonable.

    I guess the problem is the FRU I want to read is not associated to an entity but it is associated to MC. When I run openipmish and open domain I can get FRU via raw commands to MC

    Get FRU Inventory Area Info

    mc msg x(0.20) 0 0xa 0x10 0
    Response
    MC: x(0.20)
    NetFN: 11
    command: 16
    Data: 0x00 0x00 0x08 0x00

    But the fru commands deal with entities and not with MCs and there is no entity with a FRU on my system.

    Is there a possibility to get FRU from MC? Or is my hardware wrong because there is no entity with FRU?

    Zaboj

     
    • Corey Minyard

      Corey Minyard - 2015-12-14

      On 12/11/2015 09:07 AM, Zaboj Campula wrote:

      Hello

      I am trying to read FRU information via openipmi and I am not able to
      get any. Neither openipmish nor my code shows any FRU although other
      tools like ipmiutil and ipmitool show something reasonable.

      I guess the problem is the FRU I want to read is not associated to an
      entity but it is associated to MC. When I run openipmish and open
      domain I can get FRU via raw commands to MC

      Get FRU Inventory Area Info

      mc msg x(0.20) 0 0xa 0x10 0
      Response
      MC: x(0.20)
      NetFN: 11
      command: 16
      Data: 0x00 0x00 0x08 0x00
      

      But the fru commands deal with entities and not with MCs and there is
      no entity with a FRU on my system.

      Is there a possibility to get FRU from MC? Or is my hardware wrong
      because there is no entity with FRU?

      Well, your hardware is wrong, but I think you can still get the FRU
      data. OpenIPMI does a fairly strict interpretation of the IPMI spec,
      and ipmitool tends to be a bit looser to accommodate bad hardware.

      You can use the "domain fru" command to create your own FRU data
      instance. For instance:

      domain fru domain1 1 0x20 0 0 0 0

      You have to set "is_logical" to true, the device address is the BMC
      address on the IPMB, generally 0x20, and the rest generally default to
      zero. The device_id is the FRU device id in the read/write commands, it
      should be zero for what you want.

      -corey

      Zaboj


      read FRU from MC
      http://sourceforge.net/p/openipmi/discussion/112996/thread/9a8a1d97/?limit=25#8162


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/openipmi/discussion/112996/

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

       
  • Zaboj Campula

    Zaboj Campula - 2015-12-15

    Thanks. It works.

    I will do the same by the ipmi_domain_fru_alloc() and it s callback in my code.

    I understand the openipmi is strict - but I am not a standard expert so it is difficult to blame HW for me. Could you point me to standard what requiremnt the standard violates?

    Milan

     
    • Corey Minyard

      Corey Minyard - 2015-12-15

      On 12/15/2015 04:19 AM, Zaboj Campula wrote:

      Thanks. It works.

      I will do the same by the ipmi_domain_fru_alloc() and it s callback in
      my code.

      I understand the openipmi is strict - but I am not a standard expert
      so it is difficult to blame HW for me. Could you point me to standard
      what requiremnt the standard violates?

      Well, it's hard to nail down some of these, but this one is clear, even
      if it is hidden in a strange place. The IPMI spec is very informal and
      it's hard to nail down exact "requirements". But general text about
      this is in:

      1.7.14 Linkage between Events and FRU Information

      The in the following:

      Table 43-7, FRU Device Locator Record - SDR Type 11h

      in the description of byte 7 you have:

      [7:0] - Number identifying FRU device within given IPM Controller. FFh =
      reserved.
      The primary FRU device for a management controller is always device #0 at
      LUN 00b. The primary FRU device is not reported via this FRU Device Locator
      record - its presence is identified via the Device Capabilities field in the
      Management Controller Device Locator record.

      which pretty clearly states that you need a Management Controller Device
      Locator record with the FRU device enabled. If one of those exists, end
      the entity is present (through the fairly complex entity presence
      rules) OpenIPMI should fetch the FRU data for it.

      -corey

      Milan


      read FRU from MC
      https://sourceforge.net/p/openipmi/discussion/112996/thread/9a8a1d97/?limit=25#5e8c


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/openipmi/discussion/112996/

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

       
      • Zaboj Campula

        Zaboj Campula - 2015-12-15

        Thanks again!
        It looks as a good argument. I will try to force HW vendor to update its firmware.
        Nevertheless it is good to know that I have possibility to read FRU even with the misbehaving hardware.

         

Log in to post a comment.