On 01/02/2013 01:34 PM, Jeff Cody wrote: > On Mon, Dec 31, 2012 at 01:41:57PM -0700, Eric Blake wrote: >> Is there a guest-agent command for querying the list of available >> commands for a given guest agent? If not, should there be? In other >> words, I'm looking for the counterpart to QMP {"execute":"query-commands"}. >> > > Hi Eric, > > There is guest-info ({"execute": "guest-info"}), which returns a list > of supported commands, and whether or not that command is enabled or > disabled (e.g. it may be blacklisted). Here is an example of the > output, with guest-file-* operations blacklisted (formatted slightly > for better readability): > > {"return": > {"version": "1.0", "supported_commands": > [{"enabled": true, "name": "guest-network-get-interfaces"},
Thanks, that's mostly what I wanted. Still missing is the ability to tell if a command is expected to return a value on success, though. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature