WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] get used guest memory

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] get used guest memory
From: Marco Sinhoreli <msinhore@xxxxxxxxx>
Date: Wed, 13 Oct 2010 17:18:58 -0300
Delivery-date: Wed, 13 Oct 2010 13:19:19 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=zflY+3DH7Rt2EJtYpuNYXaQPCq82H1i7GkwuSY7cQuo=; b=pK2/i234Tz1MdIdYDHfNRkDu9fwx03L7SAJfcuMcIkcmvVwuV4ea1KKZ1TPgg+u1id 6q+j3nDKAF9WJwW6ePkC0GWlmay32vemgBGhrsVnG/9/rZZ3WSL03sLEu24LNKk+Q15m nsXNrZ88hg89CosrsQ33sjZFBtW361y+gAZ3w=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>