Hi,
On (Wed) Nov 10 2010 [19:37:19], Michael Roth wrote:
> EXAMPLE USAGE:
>
> The commandline options are a little convoluted right now; this will
> addressed in later revisions.
>
> - Configure guest agent to talk to host via virtio-serial
> # start guest with virtio-serial/virtproxy/virtagent. for example
> (RHEL6rc1):
> qemu \
> -chardev virtproxy,id=test0,virtagent=on \
> -device virtio-serial \
> -device virtserialport,chardev=test0,name=virtagent0 \
> -monitor stdio
> ...
> # in the guest:
> ./qemu-vp -c virtserial-open:/dev/virtio-ports/virtagent0:- -g
> ...
> # monitor commands
> (qemu) agent_viewdmesg
> [139311.710326] wlan0: deauthenticating from 00:30:bd:f7:12:d5 by local
> choice (reason=3)
> [139323.469857] wlan0: deauthenticating from 00:21:29:cd:41:ee by local
> choice (reason=3)
> ...
> [257683.375646] wlan0: authenticated
> [257683.375684] wlan0: associate with AP 00:30:bd:f7:12:d5 (try 1)
> [257683.377932] wlan0: RX AssocResp from 00:30:bd:f7:12:d5 (capab=0x411
> status=0 aid=4)
> [257683.377940] wlan0: associated
>
> (qemu) agent_viewfile /proc/meminfo
It would be better to have a command and sub-commands rather than
different commands for viewing different kinds of files:
(qemu) agent view dmesg
(qemu) agent view /proc/meminfo
Amit