]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Enhance list command to ease creation of shell scripts
authorPeter Krempa <pkrempa@redhat.com>
Tue, 21 Feb 2012 14:02:23 +0000 (15:02 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 22 Feb 2012 11:12:13 +0000 (12:12 +0100)
commit419e5fb3e672e3de280b77c2406dc38406e8684e
tree0a60413ab7351d56cb9cd5f7cdec328d1f3bf747
parentcf534a9b281bc4b053cb5f90614685cb1b977ef7
virsh: Enhance list command to ease creation of shell scripts

This patch adds new options to the "virsh list" command enabling
filtering of persistent and transient domains along with the option to
print only UUIDs or names of domains instead of printing the table.

Option --name prints domain names (one per line) instead of the default
table. Similarly --uuid prints domain's UUID. The option --table is
an alias for the default behavior.

Aditionally --persistent and/or --transient may be specified to filter
the output of domains.
tools/virsh.c
tools/virsh.pod