<div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">Sorry, that was a typo. But, it is still not working. (For some reason, I had to move to Windows2012 with name vm_win_05). <br><br>[root@sdsr720-14 virtio-win]# echo "{'execute':'guest-ping'}" | socat stdio,ignoreeof /var/lib/libvirt/qemu/g05.agent<br>
{"return": {}}<br><br>[root@sdsr720-14 virtio-win]# virsh qemu-agent-command vm_win_05 '{ "execute":"guest-ping"}'<br><br>[root@sdsr720-14 virtio-win]#<br><br></div><div class="gmail_default" style="font-family:courier new,monospace">
Regards,<br></div><div class="gmail_default" style="font-family:courier new,monospace">~Puneet<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jul 2, 2014 at 10:09 PM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 07/02/2014 01:13 AM, Puneet Bakshi wrote:<br>
> Hi,<br>
><br>
> I am running qemu guest agent in Windows 2k8. I am able to execute<br>
> "qemu-agent-commands" using socat but not through "virsh<br>
> qemu-agent-command".<br>
><br>
<br>
</div>> *Host CentOS system*<br>
<div class="">><br>
> socat returns response appropriately.<br>
>     [root@sdsr720-14 ~]# echo "{'execute':'guest-ping'}" | socat<br>
> stdio,ignoreeof /var/lib/libvirt/qemu/g06.agent<br>
>     {"return": {}}<br>
<br>
</div>Note your spelling...<br>
<br>
><br>
> *"virsh qemu-agent-command" returns blank.*<br>
<div class="">><br>
>     [root@sdsr720-14 ~]# virsh qemu-agent-command vm_win_06 '{ "execute":<br>
> "guest_ping"}'<br>
<br>
</div>and compare it to here.  There is no guest_ping command, only<br>
guest-ping.  It's a bug in libvirt that guest-agent-command doesn't<br>
output a useful error message when attempting to run a non-existing<br>
command, but you'll never hit that bug if you pass valid commands to the<br>
agent in the first place.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Eric Blake   eblake redhat com    <a href="tel:%2B1-919-301-3266" value="+19193013266">+1-919-301-3266</a><br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a><br>
<br>
</font></span></blockquote></div><br></div></div>