* how to add a new user using ipmitool
@ 2021-04-05 17:46 sandeep sharma
2021-04-06 14:08 ` Tom Joseph
0 siblings, 1 reply; 5+ messages in thread
From: sandeep sharma @ 2021-04-05 17:46 UTC (permalink / raw)
To: openbmc
[-- Attachment #1: Type: text/plain, Size: 2028 bytes --]
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?
Steps I have tried:-
root@cn81xx-obmc:~# ipmitool user summary 1
Maximum IDs : 15
Enabled User Count : 1
Fixed Name Count : 0
root@cn81xx-obmc:~# ipmitool user list 1
ID Name Callin Link Auth IPMI Msg Channel Priv Limit
1 root false true true ADMINISTRATOR
2 true false false NO ACCESS
3 true false false NO ACCESS
4 true false false NO ACCESS
5 true false false NO ACCESS
6 true false false NO ACCESS
7 true false false NO ACCESS
8 true false false NO ACCESS
9 true false false NO ACCESS
10 true false false NO ACCESS
11 true false false NO ACCESS
12 true false false NO ACCESS
13 true false false NO ACCESS
14 true false false NO ACCESS
15 true false false NO ACCESS
root@cn81xx-obmc:~# ipmitool user set name 2 newuser
Set User Name command failed (user 2, name newuser): Unspecified error
root@cn81xx-obmc:~# ipmitool user set name 2 newuser -vv
Loading IANA PEN Registry...
Running Get PICMG Properties my_addr 0x20, transit 0, target 0
Error response 0xc1 from Get PICMG Properties
Running Get VSO Capabilities my_addr 0x20, transit 0, target 0
Invalid completion code received: Invalid command
Acquire IPMB address
Discovered IPMB address 0x0
Interface address: my_addr 0x20 transit 0:0 target 0x20:0 ipmb_target 0
Set User Name command failed (user 2, name newuser): Unspecified error
root@cn81xx-obmc:~#
--
Thx-
Sandeep S
[-- Attachment #2: Type: text/html, Size: 2613 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to add a new user using ipmitool
2021-04-05 17:46 how to add a new user using ipmitool sandeep sharma
@ 2021-04-06 14:08 ` Tom Joseph
2021-04-06 17:08 ` sandeep sharma
0 siblings, 1 reply; 5+ messages in thread
From: Tom Joseph @ 2021-04-06 14:08 UTC (permalink / raw)
To: sandeep sharma; +Cc: openbmc
[-- Attachment #1: Type: text/plain, Size: 2381 bytes --]
docs/IPMITOOL-cheatsheet.md at master · openbmc/docs (github.com)
<https://github.com/openbmc/docs/blob/master/IPMITOOL-cheatsheet.md>
On Mon, Apr 5, 2021 at 11:17 PM sandeep sharma <sandeepajesh@gmail.com>
wrote:
> 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?
>
> Steps I have tried:-
> root@cn81xx-obmc:~# ipmitool user summary 1
> Maximum IDs : 15
> Enabled User Count : 1
> Fixed Name Count : 0
> root@cn81xx-obmc:~# ipmitool user list 1
> ID Name Callin Link Auth IPMI Msg Channel Priv Limit
> 1 root false true true ADMINISTRATOR
> 2 true false false NO ACCESS
> 3 true false false NO ACCESS
> 4 true false false NO ACCESS
> 5 true false false NO ACCESS
> 6 true false false NO ACCESS
> 7 true false false NO ACCESS
> 8 true false false NO ACCESS
> 9 true false false NO ACCESS
> 10 true false false NO ACCESS
> 11 true false false NO ACCESS
> 12 true false false NO ACCESS
> 13 true false false NO ACCESS
> 14 true false false NO ACCESS
> 15 true false false NO ACCESS
> root@cn81xx-obmc:~# ipmitool user set name 2 newuser
> Set User Name command failed (user 2, name newuser): Unspecified error
> root@cn81xx-obmc:~# ipmitool user set name 2 newuser -vv
> Loading IANA PEN Registry...
> Running Get PICMG Properties my_addr 0x20, transit 0, target 0
> Error response 0xc1 from Get PICMG Properties
> Running Get VSO Capabilities my_addr 0x20, transit 0, target 0
> Invalid completion code received: Invalid command
> Acquire IPMB address
> Discovered IPMB address 0x0
> Interface address: my_addr 0x20 transit 0:0 target 0x20:0 ipmb_target 0
>
> Set User Name command failed (user 2, name newuser): Unspecified error
> root@cn81xx-obmc:~#
>
> --
> Thx-
> Sandeep S
>
[-- Attachment #2: Type: text/html, Size: 3092 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to add a new user using ipmitool
2021-04-06 14:08 ` Tom Joseph
@ 2021-04-06 17:08 ` sandeep sharma
2021-04-08 6:08 ` sandeep sharma
0 siblings, 1 reply; 5+ messages in thread
From: sandeep sharma @ 2021-04-06 17:08 UTC (permalink / raw)
To: Tom Joseph; +Cc: openbmc
[-- Attachment #1: Type: text/plain, Size: 8081 bytes --]
Thanks Tom,
I tried to execute these commands but no success. Looks like I am missing
something related to IPMI functionality .
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.
.
*root@cn81xx-obmc:~# systemctl | grep -i "ipmi"
phosphor-ipmi-host.service
loaded active running
Phosphor Inband IPMI
phosphor-ipmi-kcs@ipmi-kcs3.service
loaded active running
Phosphor IPMI KCS DBus Bridge
phosphor-ipmi-net@eth0.service
loaded active running Network IPMI daemon
xyz.openbmc_project.Logging.IPMI.service
loaded active running
IPMI SEL Logging Service
system-phosphor\x2dipmi\x2dkcs.slice
loaded active active
system-phosphor\x2dipmi\x2dkcs.slice
system-phosphor\x2dipmi\x2dnet.slice
loaded active active
system-phosphor\x2dipmi\x2dnet.slice
phosphor-ipmi-net@eth0.socket
loaded active running phosphor-ipmi-net@eth0.socket
root@cn81xx-obmc:~# root@cn81xx-obmc:~# ipmitool raw 0x6 0x1 00 00 80
00 02 00 f7 04 00 00 00 00 00 00 00root@cn81xx-obmc:~# ipmitool raw 0x6
0x25 Unable to send RAW command (channel=0x0 netfn=0x6 lun=0x0
cmd=0x25 rsp=0xff): Unspecified errorroot@cn81xx-obmc:~# ipmitool raw 0x6
0x25 -vvvvvLoading IANA PEN Registry... Allocating 29 entries [
27] 16777214 | A Debug Assisting Company, Ltd. [ 26] 52538 | Ampere
Computing [ 25] 51974 | Raptor Computing Systems, LLC [ 24]
49769 | YADRO [ 23] 49150 | Vertiv Co [ 22] 48512 | Inspur
Group Co.,Ltd. [ 21] 48482 | Linaro Ltd [ 20] 45065 | Insyde
[ 19] 40981 | Facebook, Inc. [ 18] 40092 | Wiwynn Corporation
[ 17] 33049 | Mellanox Technologies LTD [ 16] 20974 | American
Megatrends, Inc [ 15] 19046 | Lenovo Enterprise Business Group [
14] 11183 | Mitac International Corp. [ 13] 11129 | Google,
Inc. [ 12] 8554 | Departement Elektrotechnik, ETH Zuerich [ 11]
7244 | Quanta Computer Inc. [ 10] 6569 | INVENTEC CORPORATION
[ 9] 4128 | ARM Ltd. [ 8] 2487 | Phoenix Technologies
Ltd. [ 7] 1694 | HCL Technologies Limited [ 6] 1271 |
Ciena Corporation [ 5] 674 | Dell Inc. [ 4] 343 | Intel
Corporation [ 3] 2 | IBM (https://w3.ibm.com/standards
<https://w3.ibm.com/standards> ) [ 2] 0 | Reserved [ 1]
1048575 | Unspecified [ 0] 0 | UnknownRunning Get PICMG
Properties my_addr 0x20, transit 0, target 0Error response 0xc1 from Get
PICMG PropertiesRunning Get VSO Capabilities my_addr 0x20, transit 0,
target 0Invalid completion code received: Invalid commandAcquire IPMB
addressDiscovered IPMB address 0x0Interface address: my_addr 0x20 transit
0:0 target 0x20:0 ipmb_target 0RAW REQ (channel=0x0 netfn=0x6 lun=0x0
cmd=0x25 data_len=0)Unable to send RAW command (channel=0x0 netfn=0x6
lun=0x0 cmd=0x25 rsp=0xff): Unspecified errorroot@cn81xx-obmc:~#*
*root@cn81xx-obmc:~# ipmitool channel info 1Channel 0x1 info: Channel
Medium Type : 802.3 LAN Channel Protocol Type : IPMB-1.0 Session
Support : multi-session Active Session Count : 0 Protocol Vendor
ID : 7154 Volatile(active) Settings Alerting : enabled
Per-message Auth : enabled User Level Auth : enabled Access
Mode : always available Non-Volatile Settings Alerting
: enabled Per-message Auth : enabled User Level Auth :
enabled Access Mode : always availableroot@cn81xx-obmc:~# *
*root@cn81xx-obmc:~# ipmitool user list 1 ID Name Callin Link Auth
IPMI Msg Channel Priv Limit1 root false true true
ADMINISTRATOR2 true false false NO
ACCESS3 true false false NO ACCESS4
true false false NO ACCESS5 true
false false NO ACCESS6 true false
false NO ACCESS7 true false false NO
ACCESS8 true false false NO ACCESS9
true false false NO ACCESS10 true
false false NO ACCESS11 true false
false NO ACCESS12 true false false NO
ACCESS13 true false false NO ACCESS14
true false false NO ACCESS15
true false false NO ACCESSroot@cn81xx-obmc:~# ipmitool user
summary 1Maximum IDs : 15Enabled User Count : 1Fixed Name Count :
0root@cn81xx-obmc:~# *
*root@cn81xx-obmc:~# ipmitool -I dbus user set name 2 newuserSet User Name
command failed (user 2, name newuser): Unspecified
errorroot@cn81xx-obmc:~# *
thx
sandeep S
On Tue, Apr 6, 2021 at 7:38 PM Tom Joseph <rushtotom@gmail.com> wrote:
> docs/IPMITOOL-cheatsheet.md at master · openbmc/docs (github.com)
> <https://github.com/openbmc/docs/blob/master/IPMITOOL-cheatsheet.md>
>
> On Mon, Apr 5, 2021 at 11:17 PM sandeep sharma <sandeepajesh@gmail.com>
> wrote:
>
>> 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?
>>
>> Steps I have tried:-
>> root@cn81xx-obmc:~# ipmitool user summary 1
>> Maximum IDs : 15
>> Enabled User Count : 1
>> Fixed Name Count : 0
>> root@cn81xx-obmc:~# ipmitool user list 1
>> ID Name Callin Link Auth IPMI Msg Channel Priv Limit
>> 1 root false true true ADMINISTRATOR
>> 2 true false false NO ACCESS
>> 3 true false false NO ACCESS
>> 4 true false false NO ACCESS
>> 5 true false false NO ACCESS
>> 6 true false false NO ACCESS
>> 7 true false false NO ACCESS
>> 8 true false false NO ACCESS
>> 9 true false false NO ACCESS
>> 10 true false false NO ACCESS
>> 11 true false false NO ACCESS
>> 12 true false false NO ACCESS
>> 13 true false false NO ACCESS
>> 14 true false false NO ACCESS
>> 15 true false false NO ACCESS
>> root@cn81xx-obmc:~# ipmitool user set name 2 newuser
>> Set User Name command failed (user 2, name newuser): Unspecified error
>> root@cn81xx-obmc:~# ipmitool user set name 2 newuser -vv
>> Loading IANA PEN Registry...
>> Running Get PICMG Properties my_addr 0x20, transit 0, target 0
>> Error response 0xc1 from Get PICMG Properties
>> Running Get VSO Capabilities my_addr 0x20, transit 0, target 0
>> Invalid completion code received: Invalid command
>> Acquire IPMB address
>> Discovered IPMB address 0x0
>> Interface address: my_addr 0x20 transit 0:0 target 0x20:0 ipmb_target 0
>>
>> Set User Name command failed (user 2, name newuser): Unspecified error
>> root@cn81xx-obmc:~#
>>
>> --
>> Thx-
>> Sandeep S
>>
>
--
Thx-
Sandeep S
[-- Attachment #2: Type: text/html, Size: 11450 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: how to add a new user using ipmitool
2021-04-06 17:08 ` sandeep sharma
@ 2021-04-08 6:08 ` sandeep sharma
2021-04-11 7:17 ` [External] " Lei Yu
0 siblings, 1 reply; 5+ messages in thread
From: sandeep sharma @ 2021-04-08 6:08 UTC (permalink / raw)
To: Tom Joseph; +Cc: openbmc
[-- Attachment #1: Type: text/plain, Size: 8567 bytes --]
Can some experts help us here?
On Tue, Apr 6, 2021 at 10:38 PM sandeep sharma <sandeepajesh@gmail.com>
wrote:
> Thanks Tom,
>
> I tried to execute these commands but no success. Looks like I am missing
> something related to IPMI functionality .
> 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.
> .
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *root@cn81xx-obmc:~# systemctl | grep -i "ipmi"
> phosphor-ipmi-host.service
> loaded active running
> Phosphor Inband IPMI
>
> phosphor-ipmi-kcs@ipmi-kcs3.service
> loaded active running
> Phosphor IPMI KCS DBus Bridge
> phosphor-ipmi-net@eth0.service
>
> loaded active running Network IPMI daemon
>
> xyz.openbmc_project.Logging.IPMI.service
> loaded active running
> IPMI SEL Logging Service
>
> system-phosphor\x2dipmi\x2dkcs.slice
> loaded active active
> system-phosphor\x2dipmi\x2dkcs.slice
>
> system-phosphor\x2dipmi\x2dnet.slice
> loaded active active
> system-phosphor\x2dipmi\x2dnet.slice
> phosphor-ipmi-net@eth0.socket
>
> loaded active running phosphor-ipmi-net@eth0.socket
>
> root@cn81xx-obmc:~# root@cn81xx-obmc:~# ipmitool raw 0x6 0x1 00 00 80
> 00 02 00 f7 04 00 00 00 00 00 00 00root@cn81xx-obmc:~# ipmitool raw 0x6
> 0x25 Unable to send RAW command (channel=0x0 netfn=0x6 lun=0x0
> cmd=0x25 rsp=0xff): Unspecified errorroot@cn81xx-obmc:~# ipmitool raw 0x6
> 0x25 -vvvvvLoading IANA PEN Registry... Allocating 29 entries [
> 27] 16777214 | A Debug Assisting Company, Ltd. [ 26] 52538 | Ampere
> Computing [ 25] 51974 | Raptor Computing Systems, LLC [ 24]
> 49769 | YADRO [ 23] 49150 | Vertiv Co [ 22] 48512 | Inspur
> Group Co.,Ltd. [ 21] 48482 | Linaro Ltd [ 20] 45065 | Insyde
> [ 19] 40981 | Facebook, Inc. [ 18] 40092 | Wiwynn Corporation
> [ 17] 33049 | Mellanox Technologies LTD [ 16] 20974 | American
> Megatrends, Inc [ 15] 19046 | Lenovo Enterprise Business Group [
> 14] 11183 | Mitac International Corp. [ 13] 11129 | Google,
> Inc. [ 12] 8554 | Departement Elektrotechnik, ETH Zuerich [ 11]
> 7244 | Quanta Computer Inc. [ 10] 6569 | INVENTEC CORPORATION
> [ 9] 4128 | ARM Ltd. [ 8] 2487 | Phoenix Technologies
> Ltd. [ 7] 1694 | HCL Technologies Limited [ 6] 1271 |
> Ciena Corporation [ 5] 674 | Dell Inc. [ 4] 343 | Intel
> Corporation [ 3] 2 | IBM (https://w3.ibm.com/standards
> <https://w3.ibm.com/standards> ) [ 2] 0 | Reserved [ 1]
> 1048575 | Unspecified [ 0] 0 | UnknownRunning Get PICMG
> Properties my_addr 0x20, transit 0, target 0Error response 0xc1 from Get
> PICMG PropertiesRunning Get VSO Capabilities my_addr 0x20, transit 0,
> target 0Invalid completion code received: Invalid commandAcquire IPMB
> addressDiscovered IPMB address 0x0Interface address: my_addr 0x20 transit
> 0:0 target 0x20:0 ipmb_target 0RAW REQ (channel=0x0 netfn=0x6 lun=0x0
> cmd=0x25 data_len=0)Unable to send RAW command (channel=0x0 netfn=0x6
> lun=0x0 cmd=0x25 rsp=0xff): Unspecified errorroot@cn81xx-obmc:~#*
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *root@cn81xx-obmc:~# ipmitool channel info 1Channel 0x1 info: Channel
> Medium Type : 802.3 LAN Channel Protocol Type : IPMB-1.0 Session
> Support : multi-session Active Session Count : 0 Protocol Vendor
> ID : 7154 Volatile(active) Settings Alerting : enabled
> Per-message Auth : enabled User Level Auth : enabled Access
> Mode : always available Non-Volatile Settings Alerting
> : enabled Per-message Auth : enabled User Level Auth :
> enabled Access Mode : always availableroot@cn81xx-obmc:~# *
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *root@cn81xx-obmc:~# ipmitool user list 1 ID Name Callin Link Auth
> IPMI Msg Channel Priv Limit1 root false true true
> ADMINISTRATOR2 true false false NO
> ACCESS3 true false false NO ACCESS4
> true false false NO ACCESS5 true
> false false NO ACCESS6 true false
> false NO ACCESS7 true false false NO
> ACCESS8 true false false NO ACCESS9
> true false false NO ACCESS10 true
> false false NO ACCESS11 true false
> false NO ACCESS12 true false false NO
> ACCESS13 true false false NO ACCESS14
> true false false NO ACCESS15
> true false false NO ACCESSroot@cn81xx-obmc:~# ipmitool user
> summary 1Maximum IDs : 15Enabled User Count : 1Fixed Name Count :
> 0root@cn81xx-obmc:~# *
>
>
>
> *root@cn81xx-obmc:~# ipmitool -I dbus user set name 2 newuserSet User Name
> command failed (user 2, name newuser): Unspecified
> errorroot@cn81xx-obmc:~# *
>
> thx
> sandeep S
>
> On Tue, Apr 6, 2021 at 7:38 PM Tom Joseph <rushtotom@gmail.com> wrote:
>
>> docs/IPMITOOL-cheatsheet.md at master · openbmc/docs (github.com)
>> <https://github.com/openbmc/docs/blob/master/IPMITOOL-cheatsheet.md>
>>
>> On Mon, Apr 5, 2021 at 11:17 PM sandeep sharma <sandeepajesh@gmail.com>
>> wrote:
>>
>>> 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?
>>>
>>> Steps I have tried:-
>>> root@cn81xx-obmc:~# ipmitool user summary 1
>>> Maximum IDs : 15
>>> Enabled User Count : 1
>>> Fixed Name Count : 0
>>> root@cn81xx-obmc:~# ipmitool user list 1
>>> ID Name Callin Link Auth IPMI Msg Channel Priv Limit
>>> 1 root false true true ADMINISTRATOR
>>> 2 true false false NO ACCESS
>>> 3 true false false NO ACCESS
>>> 4 true false false NO ACCESS
>>> 5 true false false NO ACCESS
>>> 6 true false false NO ACCESS
>>> 7 true false false NO ACCESS
>>> 8 true false false NO ACCESS
>>> 9 true false false NO ACCESS
>>> 10 true false false NO ACCESS
>>> 11 true false false NO ACCESS
>>> 12 true false false NO ACCESS
>>> 13 true false false NO ACCESS
>>> 14 true false false NO ACCESS
>>> 15 true false false NO ACCESS
>>> root@cn81xx-obmc:~# ipmitool user set name 2 newuser
>>> Set User Name command failed (user 2, name newuser): Unspecified error
>>> root@cn81xx-obmc:~# ipmitool user set name 2 newuser -vv
>>> Loading IANA PEN Registry...
>>> Running Get PICMG Properties my_addr 0x20, transit 0, target 0
>>> Error response 0xc1 from Get PICMG Properties
>>> Running Get VSO Capabilities my_addr 0x20, transit 0, target 0
>>> Invalid completion code received: Invalid command
>>> Acquire IPMB address
>>> Discovered IPMB address 0x0
>>> Interface address: my_addr 0x20 transit 0:0 target 0x20:0 ipmb_target 0
>>>
>>> Set User Name command failed (user 2, name newuser): Unspecified error
>>> root@cn81xx-obmc:~#
>>>
>>> --
>>> Thx-
>>> Sandeep S
>>>
>>
>
> --
> Thx-
> Sandeep S
>
--
Thx-
Sandeep S
[-- Attachment #2: Type: text/html, Size: 11995 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [External] Re: how to add a new user using ipmitool
2021-04-08 6:08 ` sandeep sharma
@ 2021-04-11 7:17 ` Lei Yu
0 siblings, 0 replies; 5+ messages in thread
From: Lei Yu @ 2021-04-11 7:17 UTC (permalink / raw)
To: sandeep sharma; +Cc: openbmc, Tom Joseph
We had an issue that the HOME directory for the users could not be
moved, probably due to the overlayfs.
The issue could be workarounded by not creating HOME and use /tmp instead.
It's a minor change in user_mgr.cpp in phosphor-user-manager, that
changes the arguments passed to `useradd` and `usermod`.
It's just a workaround so we did not send the patch upstream.
On Thu, Apr 8, 2021 at 2:08 PM sandeep sharma <sandeepajesh@gmail.com> wrote:
>
> Can some experts help us here?
>
> On Tue, Apr 6, 2021 at 10:38 PM sandeep sharma <sandeepajesh@gmail.com> wrote:
>>
>> Thanks Tom,
>>
>> I tried to execute these commands but no success. Looks like I am missing something related to IPMI functionality .
>> 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.
>> .
>>
>> root@cn81xx-obmc:~# systemctl | grep -i "ipmi"
>> phosphor-ipmi-host.service loaded active running Phosphor Inband IPMI
>> phosphor-ipmi-kcs@ipmi-kcs3.service loaded active running Phosphor IPMI KCS DBus Bridge
>> phosphor-ipmi-net@eth0.service loaded active running Network IPMI daemon
>> xyz.openbmc_project.Logging.IPMI.service loaded active running IPMI SEL Logging Service
>> system-phosphor\x2dipmi\x2dkcs.slice loaded active active system-phosphor\x2dipmi\x2dkcs.slice
>> system-phosphor\x2dipmi\x2dnet.slice loaded active active system-phosphor\x2dipmi\x2dnet.slice
>> phosphor-ipmi-net@eth0.socket loaded active running phosphor-ipmi-net@eth0.socket
>> root@cn81xx-obmc:~#
>>
>> root@cn81xx-obmc:~# ipmitool raw 0x6 0x1
>> 00 00 80 00 02 00 f7 04 00 00 00 00 00 00 00
>> root@cn81xx-obmc:~# ipmitool raw 0x6 0x25
>> Unable to send RAW command (channel=0x0 netfn=0x6 lun=0x0 cmd=0x25 rsp=0xff): Unspecified error
>> root@cn81xx-obmc:~# ipmitool raw 0x6 0x25 -vvvvv
>> Loading IANA PEN Registry...
>> Allocating 29 entries
>> [ 27] 16777214 | A Debug Assisting Company, Ltd.
>> [ 26] 52538 | Ampere Computing
>> [ 25] 51974 | Raptor Computing Systems, LLC
>> [ 24] 49769 | YADRO
>> [ 23] 49150 | Vertiv Co
>> [ 22] 48512 | Inspur Group Co.,Ltd.
>> [ 21] 48482 | Linaro Ltd
>> [ 20] 45065 | Insyde
>> [ 19] 40981 | Facebook, Inc.
>> [ 18] 40092 | Wiwynn Corporation
>> [ 17] 33049 | Mellanox Technologies LTD
>> [ 16] 20974 | American Megatrends, Inc
>> [ 15] 19046 | Lenovo Enterprise Business Group
>> [ 14] 11183 | Mitac International Corp.
>> [ 13] 11129 | Google, Inc.
>> [ 12] 8554 | Departement Elektrotechnik, ETH Zuerich
>> [ 11] 7244 | Quanta Computer Inc.
>> [ 10] 6569 | INVENTEC CORPORATION
>> [ 9] 4128 | ARM Ltd.
>> [ 8] 2487 | Phoenix Technologies Ltd.
>> [ 7] 1694 | HCL Technologies Limited
>> [ 6] 1271 | Ciena Corporation
>> [ 5] 674 | Dell Inc.
>> [ 4] 343 | Intel Corporation
>> [ 3] 2 | IBM (https://w3.ibm.com/standards )
>> [ 2] 0 | Reserved
>> [ 1] 1048575 | Unspecified
>> [ 0] 0 | Unknown
>> Running Get PICMG Properties my_addr 0x20, transit 0, target 0
>> Error response 0xc1 from Get PICMG Properties
>> Running Get VSO Capabilities my_addr 0x20, transit 0, target 0
>> Invalid completion code received: Invalid command
>> Acquire IPMB address
>> Discovered IPMB address 0x0
>> Interface address: my_addr 0x20 transit 0:0 target 0x20:0 ipmb_target 0
>>
>> RAW REQ (channel=0x0 netfn=0x6 lun=0x0 cmd=0x25 data_len=0)
>> Unable to send RAW command (channel=0x0 netfn=0x6 lun=0x0 cmd=0x25 rsp=0xff): Unspecified error
>> root@cn81xx-obmc:~#
>>
>> root@cn81xx-obmc:~# ipmitool channel info 1
>> Channel 0x1 info:
>> Channel Medium Type : 802.3 LAN
>> Channel Protocol Type : IPMB-1.0
>> Session Support : multi-session
>> Active Session Count : 0
>> Protocol Vendor ID : 7154
>> Volatile(active) Settings
>> Alerting : enabled
>> Per-message Auth : enabled
>> User Level Auth : enabled
>> Access Mode : always available
>> Non-Volatile Settings
>> Alerting : enabled
>> Per-message Auth : enabled
>> User Level Auth : enabled
>> Access Mode : always available
>> root@cn81xx-obmc:~#
>>
>> root@cn81xx-obmc:~# ipmitool user list 1
>> ID Name Callin Link Auth IPMI Msg Channel Priv Limit
>> 1 root false true true ADMINISTRATOR
>> 2 true false false NO ACCESS
>> 3 true false false NO ACCESS
>> 4 true false false NO ACCESS
>> 5 true false false NO ACCESS
>> 6 true false false NO ACCESS
>> 7 true false false NO ACCESS
>> 8 true false false NO ACCESS
>> 9 true false false NO ACCESS
>> 10 true false false NO ACCESS
>> 11 true false false NO ACCESS
>> 12 true false false NO ACCESS
>> 13 true false false NO ACCESS
>> 14 true false false NO ACCESS
>> 15 true false false NO ACCESS
>> root@cn81xx-obmc:~# ipmitool user summary 1
>> Maximum IDs : 15
>> Enabled User Count : 1
>> Fixed Name Count : 0
>> root@cn81xx-obmc:~#
>>
>> root@cn81xx-obmc:~# ipmitool -I dbus user set name 2 newuser
>> Set User Name command failed (user 2, name newuser): Unspecified error
>> root@cn81xx-obmc:~#
>>
>> thx
>> sandeep S
>>
>> On Tue, Apr 6, 2021 at 7:38 PM Tom Joseph <rushtotom@gmail.com> wrote:
>>>
>>> docs/IPMITOOL-cheatsheet.md at master · openbmc/docs (github.com)
>>>
>>> On Mon, Apr 5, 2021 at 11:17 PM sandeep sharma <sandeepajesh@gmail.com> wrote:
>>>>
>>>> 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?
>>>>
>>>> Steps I have tried:-
>>>> root@cn81xx-obmc:~# ipmitool user summary 1
>>>> Maximum IDs : 15
>>>> Enabled User Count : 1
>>>> Fixed Name Count : 0
>>>> root@cn81xx-obmc:~# ipmitool user list 1
>>>> ID Name Callin Link Auth IPMI Msg Channel Priv Limit
>>>> 1 root false true true ADMINISTRATOR
>>>> 2 true false false NO ACCESS
>>>> 3 true false false NO ACCESS
>>>> 4 true false false NO ACCESS
>>>> 5 true false false NO ACCESS
>>>> 6 true false false NO ACCESS
>>>> 7 true false false NO ACCESS
>>>> 8 true false false NO ACCESS
>>>> 9 true false false NO ACCESS
>>>> 10 true false false NO ACCESS
>>>> 11 true false false NO ACCESS
>>>> 12 true false false NO ACCESS
>>>> 13 true false false NO ACCESS
>>>> 14 true false false NO ACCESS
>>>> 15 true false false NO ACCESS
>>>> root@cn81xx-obmc:~# ipmitool user set name 2 newuser
>>>> Set User Name command failed (user 2, name newuser): Unspecified error
>>>> root@cn81xx-obmc:~# ipmitool user set name 2 newuser -vv
>>>> Loading IANA PEN Registry...
>>>> Running Get PICMG Properties my_addr 0x20, transit 0, target 0
>>>> Error response 0xc1 from Get PICMG Properties
>>>> Running Get VSO Capabilities my_addr 0x20, transit 0, target 0
>>>> Invalid completion code received: Invalid command
>>>> Acquire IPMB address
>>>> Discovered IPMB address 0x0
>>>> Interface address: my_addr 0x20 transit 0:0 target 0x20:0 ipmb_target 0
>>>>
>>>> Set User Name command failed (user 2, name newuser): Unspecified error
>>>> root@cn81xx-obmc:~#
>>>>
>>>> --
>>>> Thx-
>>>> Sandeep S
>>
>>
>>
>> --
>> Thx-
>> Sandeep S
>
>
>
> --
> Thx-
> Sandeep S
--
BRs,
Lei YU
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-04-11 7:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-05 17:46 how to add a new user using ipmitool sandeep sharma
2021-04-06 14:08 ` Tom Joseph
2021-04-06 17:08 ` sandeep sharma
2021-04-08 6:08 ` sandeep sharma
2021-04-11 7:17 ` [External] " Lei Yu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).