From: "Yong Li" <yong.b.li@linux.intel.com>
To: "'Andrew Geissler'" <geissonator@gmail.com>
Cc: "'OpenBMC Maillist'" <openbmc@lists.ozlabs.org>
Subject: RE: Is there any tool to query dbus interface property?
Date: Wed, 3 Jan 2018 21:42:14 +0800 [thread overview]
Message-ID: <000001d38498$aab65d90$002318b0$@linux.intel.com> (raw)
In-Reply-To: <CALLMt=oeRyF543vtsNuNdrqafz641B16KzYf5JhyK5b9ve5h8Q@mail.gmail.com>
Thanks for your information.
What I want is to wait for a property to be an expected value.
For example, wait for pgood to be 1, to make sure the power is on.
Let me check on the mapper wait command......
Thanks,
Yong
-----Original Message-----
From: Andrew Geissler [mailto:geissonator@gmail.com]
Sent: Wednesday, January 3, 2018 9:37 PM
To: Yong Li <yong.b.li@linux.intel.com>
Cc: OpenBMC Maillist <openbmc@lists.ozlabs.org>
Subject: Re: Is there any tool to query dbus interface property?
On Sun, Dec 24, 2017 at 11:31 PM, Yong Li <yong.b.li@linux.intel.com> wrote:
> Hi All,
>
>
>
> I would like to query a dbus property and make different actions based
> on the property.
Just querying a property can be done via the busctl tool: busctl get-property xyz.openbmc_project.State.BMC
/xyz/openbmc_project/state/bmc0 xyz.openbmc_project.State.BMC CurrentBMCState
> Just like the pgood_wait.c in skeleton, but it only supports the pgood
> property. Is there any a common tool can support query/wait different
> dbus interface/objects?
Waiting on a dbus service can be done via the mapper tool: mapper wait
/xyz/openbmc_project/state/bmc0
And this can also all be done in the application code itself using sdbusplus interfaces to mapper and the objects you're interested in.
>
>
> If not, I would like to create one based on the pgood_wait.c
>
>
>
> Thanks,
>
> Yong
>
>
next prev parent reply other threads:[~2018-01-03 13:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-25 5:31 Is there any tool to query dbus interface property? Yong Li
2018-01-03 13:37 ` Andrew Geissler
2018-01-03 13:42 ` Yong Li [this message]
2018-01-04 3:32 ` Andrew Geissler
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='000001d38498$aab65d90$002318b0$@linux.intel.com' \
--to=yong.b.li@linux.intel.com \
--cc=geissonator@gmail.com \
--cc=openbmc@lists.ozlabs.org \
/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.