[virt-tools-list] [PATCH v2] virt-top : stream mode.
KAMEZAWA Hiroyuki
kamezawa.hiroyu at jp.fujitsu.com
Thu Jan 27 04:23:23 UTC 2011
I'm sorry my previous patch includes some mess and somethin broken.
I rebuild patches onto virt-top-1.0.5 and I think this version is clean.
This patch adds --stream mode for virt-top. When I use vir-top, I sometimes
want to do
# virt-top | grep| awk ....
but good mode for this method is not provided. --csv /dev/stdout requires
some careful script which parse csv file and not suitable to see the result
in console directly.
With --stream mode, all outputs goes to stdout, as,
==
virt-top time 13:14:52 Host bluextal x86_64 8/8CPU 3165MHz 24033MB
ID S RDBY WRBY RXBY TXBY %CPU %MEM TIME NAME
7 R 0 0 0 0 0.4 17.0 16:11.27 Guest01
8 R 0 0 0 0 0.6 34.0 33:15.62 RHEL6
==
This mode use one-line-per-one-domain, classical style of output as
top -b.
Thanks,
-Kame
More information about the virt-tools-list
mailing list