<div dir="ltr">Can some experts help us here?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 6, 2021 at 10:38 PM sandeep sharma <<a href="mailto:sandeepajesh@gmail.com">sandeepajesh@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks Tom,<br><br>I tried to execute these commands but no success. Looks like I am missing something related to IPMI functionality . <div>To debug it further I added ipmitool into openBMC build and tried to execute IPMI commands from the openbmc shell. But except for 0x6 0x1, 0x06 0x2 & 0x6 0x03 other commands are not working. Debug logs below. Any inputs are much appreciated.<br>.<br><br><i>root@cn81xx-obmc:~# systemctl | grep -i "ipmi" <br> phosphor-ipmi-host.service loaded active running Phosphor Inband IPMI <br> phosphor-ipmi-kcs@ipmi-kcs3.service loaded active running Phosphor IPMI KCS DBus Bridge <br> phosphor-ipmi-net@eth0.service loaded active running Network IPMI daemon <br> xyz.openbmc_project.Logging.IPMI.service loaded active running IPMI SEL Logging Service <br> system-phosphor\x2dipmi\x2dkcs.slice loaded active active system-phosphor\x2dipmi\x2dkcs.slice <br> system-phosphor\x2dipmi\x2dnet.slice loaded active active system-phosphor\x2dipmi\x2dnet.slice <br> phosphor-ipmi-net@eth0.socket loaded active running phosphor-ipmi-net@eth0.socket <br>root@cn81xx-obmc:~# <br><br>root@cn81xx-obmc:~# ipmitool raw 0x6 0x1<br> 00 00 80 00 02 00 f7 04 00 00 00 00 00 00 00<br>root@cn81xx-obmc:~# ipmitool raw 0x6 0x25 <br>Unable to send RAW command (channel=0x0 netfn=0x6 lun=0x0 cmd=0x25 rsp=0xff): Unspecified error<br>root@cn81xx-obmc:~# ipmitool raw 0x6 0x25 -vvvvv<br>Loading IANA PEN Registry...<br> Allocating 29 entries<br> [ 27] 16777214 | A Debug Assisting Company, Ltd.<br> [ 26] 52538 | Ampere Computing<br> [ 25] 51974 | Raptor Computing Systems, LLC<br> [ 24] 49769 | YADRO<br> [ 23] 49150 | Vertiv Co<br> [ 22] 48512 | Inspur Group Co.,Ltd.<br> [ 21] 48482 | Linaro Ltd<br> [ 20] 45065 | Insyde<br> [ 19] 40981 | Facebook, Inc.<br> [ 18] 40092 | Wiwynn Corporation<br> [ 17] 33049 | Mellanox Technologies LTD<br> [ 16] 20974 | American Megatrends, Inc<br> [ 15] 19046 | Lenovo Enterprise Business Group<br> [ 14] 11183 | Mitac International Corp.<br> [ 13] 11129 | Google, Inc.<br> [ 12] 8554 | Departement Elektrotechnik, ETH Zuerich<br> [ 11] 7244 | Quanta Computer Inc.<br> [ 10] 6569 | INVENTEC CORPORATION<br> [ 9] 4128 | ARM Ltd.<br> [ 8] 2487 | Phoenix Technologies Ltd.<br> [ 7] 1694 | HCL Technologies Limited<br> [ 6] 1271 | Ciena Corporation<br> [ 5] 674 | Dell Inc.<br> [ 4] 343 | Intel Corporation<br> [ 3] 2 | IBM (<a href="https://w3.ibm.com/standards" target="_blank">https://w3.ibm.com/standards</a> )<br> [ 2] 0 | Reserved<br> [ 1] 1048575 | Unspecified<br> [ 0] 0 | Unknown<br><b>Running Get PICMG Properties my_addr 0x20, transit 0, target 0<br>Error response 0xc1 from Get PICMG Properties<br></b>Running Get VSO Capabilities my_addr 0x20, transit 0, target 0<br>Invalid completion code received: Invalid command<br>Acquire IPMB address<br>Discovered IPMB address 0x0<br>Interface address: my_addr 0x20 transit 0:0 target 0x20:0 ipmb_target 0<br><br>RAW REQ (channel=0x0 netfn=0x6 lun=0x0 cmd=0x25 data_len=0)<br>Unable to send RAW command (channel=0x0 netfn=0x6 lun=0x0 cmd=0x25 rsp=0xff): Unspecified error<br>root@cn81xx-obmc:~#<br></i><br><i>root@cn81xx-obmc:~# ipmitool channel info 1<br>Channel 0x1 info:<br> Channel Medium Type : 802.3 LAN<br> Channel Protocol Type : IPMB-1.0<br> Session Support : multi-session<br> Active Session Count : 0<br> Protocol Vendor ID : 7154<br> Volatile(active) Settings<br> Alerting : enabled<br> Per-message Auth : enabled<br> User Level Auth : enabled<br> Access Mode : always available<br> Non-Volatile Settings<br> Alerting : enabled<br> Per-message Auth : enabled<br> User Level Auth : enabled<br> Access Mode : always available<br>root@cn81xx-obmc:~# <br></i><br><i>root@cn81xx-obmc:~# ipmitool user list 1 <br>ID Name Callin Link Auth IPMI Msg Channel Priv Limit<br>1 root false true true ADMINISTRATOR<br>2 true false false NO ACCESS<br>3 true false false NO ACCESS<br>4 true false false NO ACCESS<br>5 true false false NO ACCESS<br>6 true false false NO ACCESS<br>7 true false false NO ACCESS<br>8 true false false NO ACCESS<br>9 true false false NO ACCESS<br>10 true false false NO ACCESS<br>11 true false false NO ACCESS<br>12 true false false NO ACCESS<br>13 true false false NO ACCESS<br>14 true false false NO ACCESS<br>15 true false false NO ACCESS<br>root@cn81xx-obmc:~# ipmitool user summary 1<br>Maximum IDs : 15<br>Enabled User Count : 1<br>Fixed Name Count : 0<br>root@cn81xx-obmc:~# </i><br><br><i>root@cn81xx-obmc:~# ipmitool -I dbus user set name 2 newuser<br>Set User Name command failed (user 2, name newuser): Unspecified error<br>root@cn81xx-obmc:~# </i><br><br>thx<br>sandeep S</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 6, 2021 at 7:38 PM Tom Joseph <<a href="mailto:rushtotom@gmail.com" target="_blank">rushtotom@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><a href="https://github.com/openbmc/docs/blob/master/IPMITOOL-cheatsheet.md" target="_blank">docs/IPMITOOL-cheatsheet.md at master · openbmc/docs (github.com)</a><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 5, 2021 at 11:17 PM sandeep sharma <<a href="mailto:sandeepajesh@gmail.com" target="_blank">sandeepajesh@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">
We are working on a prototype based on ast2600 and can someone please help me with commands to create a user using ipmitool in openbmc? Is there any link which I can refer for all commands related to ipmi?<div><br>Steps I have tried:-<br>root@cn81xx-obmc:~# ipmitool user summary 1<br>Maximum IDs : 15<br>Enabled User Count : 1<br>Fixed Name Count : 0<br>root@cn81xx-obmc:~# ipmitool user list 1<br>ID Name Callin Link Auth IPMI Msg Channel Priv Limit<br>1 root false true true ADMINISTRATOR<br>2 true false false NO ACCESS<br>3 true false false NO ACCESS<br>4 true false false NO ACCESS<br>5 true false false NO ACCESS<br>6 true false false NO ACCESS<br>7 true false false NO ACCESS<br>8 true false false NO ACCESS<br>9 true false false NO ACCESS<br>10 true false false NO ACCESS<br>11 true false false NO ACCESS<br>12 true false false NO ACCESS<br>13 true false false NO ACCESS<br>14 true false false NO ACCESS<br>15 true false false NO ACCESS<br>root@cn81xx-obmc:~# ipmitool user set name 2 newuser <br>Set User Name command failed (user 2, name newuser): Unspecified error<br>root@cn81xx-obmc:~# ipmitool user set name 2 newuser -vv <br>Loading IANA PEN Registry...<br>Running Get PICMG Properties my_addr 0x20, transit 0, target 0<br>Error response 0xc1 from Get PICMG Properties<br>Running Get VSO Capabilities my_addr 0x20, transit 0, target 0<br>Invalid completion code received: Invalid command<br>Acquire IPMB address<br>Discovered IPMB address 0x0<br>Interface address: my_addr 0x20 transit 0:0 target 0x20:0 ipmb_target 0<br><br>Set User Name command failed (user 2, name newuser): Unspecified error<br>root@cn81xx-obmc:~# <br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div>Thx-</div><div>Sandeep S<br></div></div></div></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div>Thx-</div><div>Sandeep S<br></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div>Thx-</div><div>Sandeep S<br></div></div></div>