
On Tue, Mar 04, 2008 at 01:19:48AM -0500, Daniel Veillard wrote:
Well, you've hit upon a good question here. Is virsh interactive, or scriptable? Within Sun we generally attempt to clearly delineate these things, precisely for reasons like the above.
well to me clearly it was designed to be both, clearly it's intended to
This is almost always a bad idea IMHO.
Disagreed, adding a field at the end probably won't break most scripts using sed/awk to extract data, but showing stopped machines will. But we can add a 'virsh show' command doing a complete listing, then it's just a matter of rerouting a few synapses, easier done than changing running code ;-)
virsh show doesn't help at all, as it's not any easier to remember than '--all'. The whole problem is that it's non-obvious (and completely different to xm) that the list doesn't include non-running domains. regards, john