]> git.ipfire.org Git - thirdparty/systemd.git/commit
machinectl: split OS field in two; print ip addresses (#4058)
authorSeraphime Kirkovski <kirkseraph@gmail.com>
Wed, 31 Aug 2016 18:06:57 +0000 (21:06 +0300)
committerLennart Poettering <lennart@poettering.net>
Wed, 31 Aug 2016 18:06:57 +0000 (20:06 +0200)
commit07b0b339d6a818fd7aa71beecba8ffbd36d59a8f
tree9eeef526c77d0cab13831b72c957cdde698674bc
parentc7440e7401461a4bc668f5dae5b1861ed26b85dd
machinectl: split OS field in two; print ip addresses (#4058)

This splits the OS field in two : one for the distribution name
and one for the the version id.
Dashes are written for missing fields.
This also prints ip addresses of known machines. The `--max-addresses`
option specifies how much ip addresses we want to see. The default is 1.
When more than one address is written for a machine, a `,` follows it.
If there are more ips than `--max-addresses`, `...` follows the last
address.
TODO
man/machinectl.xml
src/basic/string-util.h
src/machine/machinectl.c