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

Re: [Xen-API] Retrieving XEN Server available and XEN memory


  • To: "Caruso, Joseph" <Joseph.Caruso@xxxxxxxxxxx>
  • From: "Roger R. Smith" <rogsmith@xxxxxxxxx>
  • Date: Sat, 31 May 2008 13:39:42 -0400
  • Cc: xen-api@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Sat, 31 May 2008 10:39:55 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=a7C3ZADKmjgwKPhhVDS2ZzXfbEYc3hCrCGuhy/oDygPklYSMttfr+Zb6tOoRCPPGWei3wOL0Z/ax61CLJV0jPZfnTQgGBpfKU2qKnmoyiUdwMu1qU3vzEwcz7QGxeDAPMGZZgKWLlntSGi/QncBatTcVMho+ccwTNaqOroDq2Hc=
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

np

On Fri, May 30, 2008 at 2:52 PM, Caruso, Joseph
<Joseph.Caruso@xxxxxxxxxxx> wrote:
>
> Thanks for the quick response.
>
> -----Original Message-----
> From: Roger R. Smith [mailto:rogsmith@xxxxxxxxx]
> Sent: Friday, May 30, 2008 2:33 PM
> To: Caruso, Joseph
> Cc: xen-api@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-API] Retrieving XEN Server available and XEN memory
>
> Hi Joseph you can do something like this:
>
> $guestRef = VM.get_guest_metrics($vmRef);
> $getMet = VM_guest_metrics.get_record($guestRef);
>
> $getMet['memory']['free']
> $getMet['memory']['total']
>
> Hope that helps.
> -Rog
>
> On Fri, May 30, 2008 at 1:32 PM, Caruso, Joseph
> <Joseph.Caruso@xxxxxxxxxxx> wrote:
>> Hello,
>>
>>
>>
>> Does anyone know how to retrieve either the amount of available server
>> memory (not the total) or the amount of memory used by Xen?     Using
> the
>> host metrics object I able to retrieve both the total and free server
>> memory.   The Xen Center (see General tab)  memory section displays:
>>
>>
>>
>>      Server:        Sun-STZENS1:   1.7 GB free of 3.7 GB available
> (4.0GB
>> total)
>>
>>
>>
>>      VMs:
>>
>>
>>
>>
>>
>>      Xen:            336.1 MB
>>
>>
>>
>>
>>
>> I want to retrieve the underlined values via the API.
>>
>>
>>
>> Thanks,
>> Joe
>>
>>
>>
>> _______________________________________________
>> xen-api mailing list
>> xen-api@xxxxxxxxxxxxxxxxxxx
>> http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
>>
>>
>

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


 


Rackspace

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