On 11/21/2012 06:04 PM, Stéphane Graber wrote: > This rewrite is mostly compatible with the shell version. > --active and -1 still work and behave as they used to. > > This adds --running, --stopped and --frozen as state filters. > > A new "fancy" view is also implemented (can be used with --fancy) and > will show containers in a column-based interface with the following fields: > - name > - state > - ipv4 > - ipv6 > - pid of init > > Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> > ---
I figured some people may want examples, there you go: root@castiana:~$ lxc-ls edubuntu01 tpl-oneiric-amd64 tpl-quantal-armel juju tpl-oneiric-i386 tpl-quantal-armhf precise-gui tpl-precise-amd64 tpl-quantal-i386 qatracker01 tpl-precise-armel tpl-raring-amd64 stgraber-steam tpl-precise-armhf tpl-raring-armel tpl-lucid-amd64 tpl-precise-i386 tpl-raring-armhf tpl-lucid-i386 tpl-quantal-amd64 tpl-raring-i386 root@castiana:~$ lxc-ls -1 --active qatracker01 root@castiana:~$ lxc-ls --fancy NAME STATE IPV4 IPV6 -------------------------------------------- edubuntu01 STOPPED - - juju STOPPED - - precise-gui STOPPED - - qatracker01 RUNNING 10.0.3.149 - stgraber-steam STOPPED - - tpl-lucid-amd64 STOPPED - - tpl-lucid-i386 STOPPED - - tpl-oneiric-amd64 STOPPED - - tpl-oneiric-i386 STOPPED - - tpl-precise-amd64 STOPPED - - tpl-precise-armel STOPPED - - tpl-precise-armhf STOPPED - - tpl-precise-i386 STOPPED - - tpl-quantal-amd64 STOPPED - - tpl-quantal-armel STOPPED - - tpl-quantal-armhf STOPPED - - tpl-quantal-i386 STOPPED - - tpl-raring-amd64 STOPPED - - tpl-raring-armel STOPPED - - tpl-raring-armhf STOPPED - - tpl-raring-i386 STOPPED - - root@castiana:~$ lxc-ls --running --fancy --fancy-format=name,ipv4 NAME IPV4 ----------------------- qatracker01 10.0.3.149 -- Stéphane Graber Ubuntu developer http://www.ubuntu.com
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel