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

[Xen-API] get used guest memory


  • To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
  • From: Marco Sinhoreli <msinhore@xxxxxxxxx>
  • Date: Wed, 13 Oct 2010 17:18:58 -0300
  • Delivery-date: Wed, 13 Oct 2010 13:19:19 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=V4SbWfV3+q4FpayXBPPVr6nte9uG66JQ6eW5oGa6zdz5TjWHbgK3nt7oKHXWNTcMjM 66hDNPbbAayro0A/U3AkzmunZyW3sCaP1LNhew1wycYijFDn3dzzoO8yqjpn8jJRgjaE ic/YbWlD5nn800byle+wTTiVHYHuRTQl/iO1I=
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

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

_______________________________________________
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®.