BMC util
Patrick Venture
venture at google.com
Thu Jul 25 01:58:04 AEST 2019
On Wed, Jul 24, 2019 at 12:45 AM Lei YU <mine260309 at gmail.com> wrote:
>
> On Wed, Jul 24, 2019 at 2:38 PM vishwa <vishwa at linux.vnet.ibm.com> wrote:
> >
> > Hi Vijay,
> >
> > On 7/24/19 12:21 AM, Vijay Khemka wrote:
> >
> > Hi,
> >
> > Do we have any repo which supports command line utility like
> >
> > power on/off server,
> > reading all sensors
> > reading a dbus property values
I usually just use busctl
~# busctl call ${DBUS_SERVICE} ${DBUS_PATH}
org.freedesktop.DBus.Properties GetAll s ${DBUS_INTERFACE}
> > printing fru data.
> >
> > There are some here. https://github.com/openbmc/openbmc-tools
> >
> > Below is what we use mostly.
> >
> > https://github.com/openbmc/phosphor-state-manager/blob/master/obmcutil
> >
> > # obmcutil --help
> > usage: obmcutil [-h] [--verbose] [--wait]
> > {bmcstate,bootprogress,chassiskill,chassisoff,chassison,chassisstate,hoststate,power,poweroff,poweron,state,status}
> >
> > positional arguments:
> > {bmcstate,bootprogress,chassiskill,chassisoff,chassison,chassisstate,hoststate,power,poweroff,poweron,state,status}
> >
> > optional arguments:
> > -h, --help show this help message and exit
> > --verbose, -v Verbose output
> > --wait, -w Block until the state transition succeeds or fails
> >
> >
> >
> > Also do we have any daemon to monitor gpio lines and report events on changing values.
> >
> >
> >
> > https://github.com/openbmc/phosphor-gpio-monitor
> >
> > I am currently writing a README on how this works when the GPIO is asserted and how to configure the actions to be taken.
>
> There is an existing doc to describe how phosphor-gpio-monitor is used:
> https://github.com/openbmc/docs/blob/master/development/add-new-system.md#gpio-monitor
More information about the openbmc
mailing list