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

[Xen-API] Re: get used guest memory


  • To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
  • From: Marco Sinhoreli <msinhore@xxxxxxxxx>
  • Date: Wed, 13 Oct 2010 20:07:27 -0300
  • Delivery-date: Wed, 13 Oct 2010 16:07:40 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=q92Q0BA1I3LR92vY0ROXkOS8In2QM3YL1rky9MXjaCtI0zcZsfQtGnWV3Ema24+Mtr gAbd++h6NQ1FilTEcgmPKU/shhBJGnw+2biLWiyUxrQxYkTFIOnHLpCY+/eQ3tvhkid/ ELdHrLmJYPTk7MS3iEC5xfzU9Arsh64BSMGOM=
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

More information about guest:

[root@xcpguest ~]# ps ax | grep xe-daemon
 1093 ?        S      0:00 /bin/bash /usr/sbin/xe-daemon -p
/var/run/xe-daemon.pid

[root@xcpguest ~]# rpm -qa | grep xe-guest
xe-guest-utilities-0.5.0-579
xe-guest-utilities-xenstore-0.5.0-579


Cheers!

On Wed, Oct 13, 2010 at 5:18 PM, Marco Sinhoreli <msinhore@xxxxxxxxx> wrote:
> Hi guys:
>
> I tried to get all used memory in guest CentOS using the api running
> on top XCP 0.5 and the string returned null.
>
> <code>
> vm = conn.VM.get_by_uuid(vm_uuid)
> vmgm = conn.VM.get_guest_metrics(vm)
> memory_used = conn.VM_guest_metrics.get_memory(vmgm)
> print memory_used
> </code>
>
> <output>
> {}
> </output>
>
> Some idea?
>
> Cheers!
>
> --
> Marco Sinhoreli
>



-- 
Marco Sinhoreli

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api


 


Rackspace

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