diff --git a/README.md b/README.md index 8a17905..5967cab 100644 --- a/README.md +++ b/README.md @@ -96,22 +96,23 @@ gocage list -f Config.Boot=1,Running=true -o JID,Name,Running,Config.Boot -s +JI +-----+----------+---------+-------------+ -You can use up to 3 criteria, delimited with comma: +You can use up to 3 criteria, delimited with comma. +As an example, you want to list boot priorities of automatically starting jails:
-gocage list -f Config.Boot=1,Running=true -o JID,Name,Running,Config.Boot -s +JID,+Name
-+=====+==========+=========+=============+
-| JID | Name | Running | Config.Boot |
-+=====+==========+=========+=============+
-| 22 | srv-dns1 | true | 1 |
-+-----+----------+---------+-------------+
-| 29 | bdd-tst | true | 1 |
-+-----+----------+---------+-------------+
-| 183 | test | true | 1 |
-+-----+----------+---------+-------------+
+gocage list -o JID,Name,Config.Ip4_addr,Config.Priority,Config.Boot,Running -s -Config.Priority,-Config.Boot -f Running=true
++=====+==============+=======================+=================+=============+=========+
+| JID | Name | Config.Ip4_addr | Config.Priority | Config.Boot | Running |
++=====+==============+=======================+=================+=============+=========+
+| 1 | srv-dhcp | vnet0|192.168.1.2/24 | 99 | 1 | true |
++-----+--------------+-----------------------+-----------------+-------------+---------+
+| 8 | srv-dns | vnet0|192.168.1.1/24 | 80 | 1 | true |
++-----+--------------+-----------------------+-----------------+-------------+---------+
+| 7 | srv-random | vnet0|192.168.1.12/24 | 20 | 1 | true |
++-----+--------------+-----------------------+-----------------+-------------+---------+
+| 4 | coincoin | vnet0|192.168.1.9/24 | 20 | 0 | true |
++-----+--------------+-----------------------+-----------------+-------------+---------+
-OK the example is shitty as JID are unique. But this work, trust me!
-
Stop jails
----------