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] Re: get used guest memory

To: xen-api <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] Re: get used guest memory
From: Marco Sinhoreli <msinhore@xxxxxxxxx>
Date: Wed, 13 Oct 2010 20:07:27 -0300
Delivery-date: Wed, 13 Oct 2010 16:07:40 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=3Ztk7UwxKX1Lk0d8KV9RI+f+MPgo+DfyxnIaedhjano=; b=wliEE6L8i+5CCK7xWYUonlyWm+6FLG7gRrxAgwQ4g/48LZcBW8G3dgrxjTW59U1DiN 0gvFdc9wSdeEz1sTB3ePjUfQP9It1wCESm05uCqEGqCnbSVWvlcz3DPGqSzb3ETnZIzP CkKFa6sov45kfqFBqeSBhdxgKUcjnwcWz1dBk=
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTinwUDKkB3OXPx4Ar5sNfCdYz84U+KzkfNAAGYRM@xxxxxxxxxxxxxx>
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>
References: <AANLkTinwUDKkB3OXPx4Ar5sNfCdYz84U+KzkfNAAGYRM@xxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
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

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