[systemd-devel] machinectl status vs show

David Herrmann dh.herrmann at gmail.com
Wed Jun 17 01:13:16 PDT 2015


Hi

On Wed, Jun 17, 2015 at 5:53 AM, Johannes Ernst
<johannes.ernst at gmail.com> wrote:
> Are those supposed to produce the same information, just formatted differently (man vs machine per man page)?
>
> I’m failing to convince ‘show’ to give me the container’s IP address, while ‘status’ has all of them.

As with almost all *ctl tools in systemd, 'show' is used to print DBus
properties of the object in question. 'status' on the other hand
prints a human-readable, pre-selected set of attributes of an object.

With machinectl, the 'show' command must be used with a parameter. So
`machinectl --all show $machine` should contain the same information
as `machinectl status $machine`, and even more. If that's not the
case, please post an example.

Thanks
David


More information about the systemd-devel mailing list