[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] "xentop -b -i1" always returns 0 for cpuload


  • To: xen-users@xxxxxxxxxxxxx
  • From: Massimo Canonico <mex@xxxxxxxxxxxx>
  • Date: Wed, 05 Sep 2012 18:33:58 +0200
  • Delivery-date: Wed, 05 Sep 2012 16:38:15 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>

Hi,
I need to save into a file the "cpu load" value for a specific domain provided by "xentop" command.

So I decided to write a very simple bash script:
while :
do
        sudo xentop -b -i1 | grep <domainName> | awk '{print $4}'
        sleep 10
done

The problem is that with "-i1" I always get 0.0 as output values, even if when xentop (without "-b -i1") provides me the right cpu load values.

How can I fix this problem?

Thanks,
 M






_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.