All of lore.kernel.org
 help / color / mirror / Atom feed
From: tomjose <tomjose@linux.vnet.ibm.com>
To: Patrick Williams <patrick@stwcx.xyz>
Cc: Li Nan <william.bjlinan@hotmail.com>,
	Adriana Kobylak <anoo@linux.vnet.ibm.com>,
	OpenBMC Maillist <openbmc@lists.ozlabs.org>
Subject: Re: IPMI LAN command story design - try 3rd send
Date: Fri, 4 Nov 2016 23:20:25 +0530	[thread overview]
Message-ID: <581CCA61.4010202@linux.vnet.ibm.com> (raw)
In-Reply-To: <20161104141455.GE17105@heinlein.lan>

Hi Patrick,

In the IPMI command flow that Nan mentioned in the earlier mail. Any of 
the following ipmitool command for
setting the IPv4 configuration, one of the step is to 'Commit 
Write'(Step 8 in Nan's mail).

ipmitool lan set 1 ipaddr x.x.x.x
ipmitool lan set 1 netmask x.x.x.x
ipmitool lan set 1 defgw ipaddr x.x.x.x

As part of the execution of any of the above commands a commit write is 
executed. In that case we cannot use
'Commit Write' as a way to denote the completion of a transaction.

The IPMI specification expects the IP configuration parameters as 
non-volatile parameters. The commit write
parameter is a way to implement rollback feature. The BMC would make a 
copy of the existing parameters
when the 'Set in Progress' state is asserted.

The Get/Set LAN Configuration commands do not provide an option to apply 
the configuration and is identified as
LAN channel settings. The link below used 'Set Channel Access' command 
to apply the settings.
(ipmitool lan set 1 access on). Since LAN configuration parameters are 
channel settings, we thought of
applying the LAN configuration parameters as part of 'Set Channel 
Access'. I am okie if we have
an OEM command to trigger applying the LAN settings.

https://www.thomas-krenn.com/en/wiki/Configuring_IPMI_under_Linux_using_ipmitool

In Barreleye we did not implement the 'Set Channel Access' command. 
There was no external
command to trigger apply the settings. In Barreleye the LAN settings are 
applied when all the
three entries(IP Address, Netmask and Gateway address) where set. So 
only to change the
IP address, the netmask and gateway address need to be re-entered, which 
was an imperfect
solution.

Regards,
Tom



On Friday 04 November 2016 07:44 PM, Patrick Williams wrote:
> Tom,
>
> On Fri, Nov 04, 2016 at 06:56:21PM +0530, tomjose wrote:
>> The Set Channel access command was decided to be used to mark the end of
>> a setting LAN configuration transaction.
> The IPMI spec for the SetLanConfig has a parameter 'Set In Progress'
> which states: 10b = commit write.  Why are we not utilizing that?  Maybe
> in addition to Set Channel Access?
>
> I don't see anything in the Set Channel Access command description that
> would be obvious as a mechanism for updating IP addresses.  Was that
> just quick behavior we decided to do for Barreleye?  Is there any reason
> why we would not deprecate that behavior in favor of the Set In
> Progress / commit write?
>

  reply	other threads:[~2016-11-04 17:50 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-03 13:59 IPMI LAN command story design - try 3rd send Li Nan
     [not found] ` <57F37746.6040304@linux.vnet.ibm.com>
2016-10-04 14:51   ` Patrick Williams
2016-10-17  6:55     ` Li Nan
2016-11-03 16:22       ` Li Nan
2016-11-04 13:26         ` tomjose
2016-11-04 14:14           ` Patrick Williams
2016-11-04 17:50             ` tomjose [this message]
2016-11-07  3:50               ` Patrick Williams
2016-11-08 10:45                 ` tomjose
2016-11-08 11:41                   ` Patrick Williams
2016-11-10  2:32                     ` Li Nan
2017-12-13  3:08                 ` Jeremy Kerr
2017-12-13 16:55                   ` Chris Austen
2017-12-14 11:23                   ` Tom Joseph
2017-12-14 12:30                     ` Jeremy Kerr
2017-12-14 13:03                       ` Tom Joseph
2017-12-14 14:45                         ` Jeremy Kerr
2017-12-14 16:26                           ` Vernon Mauery
2017-12-14 21:55                             ` Jeremy Kerr
2017-12-14 23:35                               ` Patrick Venture
2017-12-15  5:08                               ` Tom Joseph
2017-12-18 16:19                                 ` Vernon Mauery

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=581CCA61.4010202@linux.vnet.ibm.com \
    --to=tomjose@linux.vnet.ibm.com \
    --cc=anoo@linux.vnet.ibm.com \
    --cc=openbmc@lists.ozlabs.org \
    --cc=patrick@stwcx.xyz \
    --cc=william.bjlinan@hotmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.