<div dir="ltr">That seem to be an issue. Can you also check output for below lan print command? If that also is working, check with Richard regarding this problem.<div><br></div><div>ipmitool -I lanplus -C 3 -p 623 -U DD -P 0penBmc1 -H x.x.x.x lan print 1<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 17, 2020 at 11:09 AM Tony Lee (李文富) <<a href="mailto:Tony.Lee@quantatw.com">Tony.Lee@quantatw.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">Got it. Another question, at the last two "Verify" steps. <br>
Can the user run out-of-band IPMI commands with the specified channel?<br>
(e.g ipmitool -I lanplus -C 3 -p 623 -U YmRBwDUS -P 0penBmc1 -H x.x.x.x -L Administrator sel info 1)<br>
<br>
Is there a description or SPEC about it? It doesn't work on my system.<br>
For example:<br>
I created a user name DD and gave it different privilege for different channels.<br>
<br>
ipmitool user list 1<br>
ID  Name             Callin  Link Auth  IPMI Msg   Channel Priv Limit<br>
1   root             false   true       true       ADMINISTRATOR<br>
...<br>
...<br>
6   DD               true    false      false      NO ACCESS<br>
<br>
ipmitool user list 2<br>
ID  Name             Callin  Link Auth  IPMI Msg   Channel Priv Limit<br>
1   root             false   true       true       ADMINISTRATOR<br>
...<br>
...<br>
6   DD               true    false      true       ADMINISTRATOR<br>
<br>
As expected, it should not work if user run out-of-band IPMI commands with the channel 1.<br>
Howerver it still work.<br>
$ipmitool -I lanplus -C 3 -p 623 -U DD -P 0penBmc1 -H x.x.x.x sel info 1<br>
<br>
SEL Information<br>
Version          : 1.5 (v1.5, v2 compliant)<br>
Entries          : 6<br>
Free Space       : 0 bytes <br>
Percent Used     : 100%<br>
Last Add Time    : 01/06/1970 00:13:18<br>
Last Del Time    : Not Available<br>
Overflow         : false<br>
Supported Cmds   : 'Reserve'<br>
<br>
Thanks<br>
Best Regards,<br>
Tony<br>
<br>
From: Rahul Maheshwari <<a href="mailto:rahulmaheshwari01@gmail.com" target="_blank">rahulmaheshwari01@gmail.com</a>> <br>
Sent: Thursday, January 16, 2020 7:15 PM<br>
To: Tony Lee (李文富) <<a href="mailto:Tony.Lee@quantatw.com" target="_blank">Tony.Lee@quantatw.com</a>><br>
Subject: Re: Verify Privilege For Different Channels in openbmc-test-automation<br>
<br>
Hi Tony<br>
These test cases are expected to fail if your system's BMC has only one LAN channel support. In case of your BMC has 2 LAN channel support, then these tests should pass.<br>
<br>
Thanks<br>
Rahul<br>
<br>
On Tue, Jan 14, 2020 at 2:52 PM Tony Lee (李文富) <mailto:<a href="mailto:Tony.Lee@quantatw.com" target="_blank">Tony.Lee@quantatw.com</a>> wrote:<br>
Hi Rahul,<br>
<br>
I meet with difficulties for the cases "Verify Administrator And No Access Privilege For Different Channels" and<br>
"Verify Operator And User Privilege For Different Channels" in test_ipmi_user.robot.<br>
<br>
Refer to <a href="https://github.com/openbmc/openbmc-test-automation/issues/1523" rel="noreferrer" target="_blank">https://github.com/openbmc/openbmc-test-automation/issues/1523</a><br>
According to Richard's comment: "Channel command privilege are working as per the channel (but at this point of time this differentiation can't be made due to architecture limitations, but ok to write test case and mark it as failed, rather than skipping the same)"<br>
<br>
Are these two cases be expected to fail?<br>
<br>
Thanks<br>
Best Regards,<br>
Tony<br>
</blockquote></div>