[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-tools] [PATCH] Add a --format parameter to xm list


  • To: "Anthony Liguori" <aliguori@xxxxxxxxxx>, "Xen Tools" <xen-tools@xxxxxxxxxxxxxxxxxxx>
  • From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
  • Date: Thu, 11 Aug 2005 10:53:58 +0100
  • Delivery-date: Thu, 11 Aug 2005 09:51:59 +0000
  • List-id: Xen control tools developers <xen-tools.lists.xensource.com>
  • Thread-index: AcWd+eIqzamYj/uRQX6TkXN+41EoNgAYJ8GQ
  • Thread-topic: [Xen-tools] [PATCH] Add a --format parameter to xm list

> The following patch adds a --format option to xm list which 
> let's you specify a python formatting string to use.  Since 
> we're using named keys, it ends up working very nicely.  The 
> above can be done with:
> 
> res=`xm list -f "%(mem)d" $VM`
> 
> Which is considerably nicer and more robust against slight 
> changes in the display format.

Looks useful to me...

Ian

_______________________________________________
Xen-tools mailing list
Xen-tools@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-tools


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.