Redfish: Disable/enable out of band IPMI

Carol Wang karo33bug at gmail.com
Mon Dec 16 17:08:25 AEDT 2019


I didn't find the code implement about
/xyz/openbmc_project/Control/Service/<object>.
@Puli, Apparao
Has it been implemented already? Where is it?


On Sat, Dec 14, 2019 at 4:07 AM Joseph Reynolds <jrey at linux.ibm.com> wrote:
>
> On 12/13/19 2:02 PM, Joseph Reynolds wrote:
> > On 12/12/19 1:30 AM, Carol Wang wrote:
> >> Hi,
> >>
> >> Looking to implement IPMI Enable / Disable as part of Redfish's
> >> Manager Network
> >> Protocol.
> >> https://redfish.dmtf.org/schemas/ManagerNetworkProtocol.v1_5_0.json
> >
> > Carol, that is good.  We are also looking to implement this protocol,
> > plus the ability to control other services such as Avahi service
> > discovery, and SSH access to the BMC shell.  I hope we can work together.
> >
> > Note that we have discussed this work in the following places:
> > - https://github.com/openbmc/openbmc/wiki/Security-working-group
> > - https://lists.ozlabs.org/pipermail/openbmc/2019-September/018379.html
> > - https://github.com/ibm-openbmc/dev/issues/612
> >
> > With that said, I don't have an answer to your question.  Can someone
> > who knows systemd help us determine the best way to disable/stop and
> > re-enable/start the [phosphor-ipmi-net][2] service?  I think a D-Bus
> > interface to represent the status of the service and be able to
> > control it is expected.
>
> Maybe the D-Bus part is already done?  See [Service Management][3].
> [3]:
> https://github.com/openbmc/phosphor-dbus-interfaces/blob/master/xyz/openbmc_project/Control/Service/README.md
>
> > I can help with the bmcweb implementation, if needed.
> >
> > [2]:
> > https://github.com/openbmc/openbmc/blob/master/meta-phosphor/recipes-phosphor/ipmi/phosphor-ipmi-net_git.bb
> >
> > - Joseph
> >> Two ways to get/set the current status of net IPMI:
> >> 1. Add an interface in phosphor-dbus-interface to indicate the status
> >> of net IPMI.
> >> Have a daemon to monitor the status, if the status is changed, then
> >> enable or
> >> disable the net IPMI service and socket.
> >> 2. Check the net IPMI socket state by getData()[1] in bmcweb. If the
> >> state is
> >> "running" or "listening", the net IPMI status is true, otherwise, the
> >> status is
> >> false. Then bmcweb can enable or disable the service and socket.
> >>
> >> Wondering if anyone has any thoughts on this feature, which way is
> >> better.
> >> If add interface, in which daemon this interface should be implemented?
> >>
> >> [1]
> >> https://github.com/openbmc/bmcweb/blob/master/redfish-core/lib/network_protocol.hpp#L190
> >>
> >> Thanks,
> >
>


More information about the openbmc mailing list