# CERN-IPMC OEM Implementation Question

**URL:** <https://cern-ipmc-forum.web.cern.ch/t/cern-ipmc-oem-implementation-question/104>\
**Category:** General issue\
**Created:** [October 26, 2021, 2:25pm UTC](https://cern-ipmc-forum.web.cern.ch/t/cern-ipmc-oem-implementation-question/104 "2021-10-26T14:25:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mars\_Lyukova](https://cern-ipmc-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@Mars\_Lyukova](https://cern-ipmc-forum.web.cern.ch/u/Mars_Lyukova)\
**Post date:** [October 26, 2021, 2:25pm UTC](https://cern-ipmc-forum.web.cern.ch/t/cern-ipmc-oem-implementation-question/104/1 "2021-10-26T14:25:46Z")

</div>

Hi,

I would like to implement an OEM command for the CERN-IPMC. I am having trouble initializing a command with code 0x44 for use from the shelf: the CERN-IPMC does not recognize the command exists.

I have copied the file [user\_oem.c](https://gitlab.cern.ch/ep-ese-be-xtca/ipmc-project/-/blob/master/ipmc-user/user_oem.c) from the “ep-ese-be-xtca/ipmc-project/ipmc\_user” repository from gitlab into my personal ipmc\_user directory within ipmc\_project.  
I have made no changes to this file and am able to compile & flash the code.

From the shelf, I call either

clia sendcmd 98 2e 44

- 98 = Addr of the board with the CERN-IPMC within the shelf
- 2e = NetFunc. I logged the output of IPMI\_NETFN\_OEM\_GROUP to obtain this number
- 44 = Command code, initialized on line 25 as #define `OEM_USER_I2CEXAMPLE 44`  
``or

clia sendcmd board 13 2e 44  
clia sendcmd board 0D 2e 44 (In case 13 was read as HEX)

clia sendcmd 98 2e 44 01 01 01 01 (I’ve sent 4 params of 01 as the code expects 4 arguments.)

``For any of the cases, I obtain the completion code: Completion Code 0xC1

From the [IPMI specification on page 66](https://www.intel.com/content/dam/www/public/us/en/documents/product-briefs/second-gen-interface-spec-v2-rev1-3.pdf) of the PDF, this implies the command is not recognized.

To test that OEM commands work in general, I attempted to obtain the Device ID  
clia sendcmd board 13 6 1

This command returns the ID with the completion code: Completion Code 0x00 (Command Completed Normally)  
So it seems the CERN-IPMC is able to obtain OEM commands from the shelf.

Is there something else I need to do within the CERN-IPMC codebase other than copying the user\_oem.c file for an OEM command to be initialized?

Kind Regards,

Mars Lyukova

---

<div class="post-metadata">

**Author:** ![jumendez](https://cern-ipmc-forum.web.cern.ch/letter_avatar_proxy/v4/letter/j/77aa72/32.png) [@jumendez](https://cern-ipmc-forum.web.cern.ch/u/jumendez)\
**Post date:** [October 26, 2021, 6:54pm UTC](https://cern-ipmc-forum.web.cern.ch/t/cern-ipmc-oem-implementation-question/104/2 "2021-10-26T18:54:54Z")

</div>

Dear Mars,

When you send an OEM command, your data requires the IANA code on the 3 first bytes. It is the manufacturer ID set in the XML file. Therefore, if you did not change it, your command’s data have to start with 0x60 0x00 0x00.

I hope it will help,

Kind regards,  
Julian

---

<div class="post-metadata">

**Author:** ![mlyukova](https://cern-ipmc-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/ce73a5/32.png) [@mlyukova](https://cern-ipmc-forum.web.cern.ch/u/mlyukova)\
**Post date:** [October 28, 2021, 3:48pm UTC](https://cern-ipmc-forum.web.cern.ch/t/cern-ipmc-oem-implementation-question/104/3 "2021-10-28T15:48:21Z")

</div>

Dear Julian,

Thank you for your response, not having the IANA code was the issue. The OEM command works as expected now using clia sendcmd board 13 2e 44 60 00 00 \<params\> !

Kind Regards,  
Mars Lyukova

---

<div class="post-metadata">

**Author:** ![Mars\_Lyukova](https://cern-ipmc-forum.web.cern.ch/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@Mars\_Lyukova](https://cern-ipmc-forum.web.cern.ch/u/Mars_Lyukova)\
**Post date:** [October 28, 2021, 3:44pm UTC](https://cern-ipmc-forum.web.cern.ch/t/cern-ipmc-oem-implementation-question/104/4 "2021-10-28T15:44:49Z")

</div>

Dear Julian,

Thank you for your response, not having the IANA code was the issue. The OEM command works as expected now using clia sendcmd board 13 2e 44 60 00 00 !

Kind Regards,

Mars Lyukova
