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

RE: [Xen-API] Virtual Machine IP Address


  • To: "Roger R. Smith" <rogsmith@xxxxxxxxx>
  • From: "Caruso, Joseph" <Joseph.Caruso@xxxxxxxxxxx>
  • Date: Wed, 14 May 2008 13:40:30 -0400
  • Cc: xen-api@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 14 May 2008 10:40:46 -0700
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
  • Thread-index: Aci1y/cB1NrwnnbGTMmsSPo0A5xZMQAHWE+w
  • Thread-topic: [Xen-API] Virtual Machine IP Address

Thanks.  That's what I needed.  Does get_networks return all the Virtual
machine IP addresses?  e.g  "0/ip", "1/ip", "2/ip".

Thanks again,
Joe

-----Original Message-----
From: Roger R. Smith [mailto:rogsmith@xxxxxxxxx] 
Sent: Wednesday, May 14, 2008 10:08 AM
To: Caruso, Joseph
Cc: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-API] Virtual Machine IP Address

Hi Joe I have not used the Java bindings per se but the api will be
similiar, I think if do you something like this: {psuedocode to
follow}
$guestRef = VM.get_guest_metrics($xenRef);
$netMet = VM_guest_metrics.get_networks($guestRef);

$netMet should have an entry for ["0/ip"] which would be your ip
address.

Hope that helps.
-Rog


On Wed, May 14, 2008 at 9:59 AM, Caruso, Joseph
<Joseph.Caruso@xxxxxxxxxxx> wrote:
> Good Morning,
>
>
>
> Does anyone know how to retrieve the IP address of a Virtual machine
using
> the Java binding API?   I tried to locate it using the VM.Record
>
> and VIF.Record objecs without success.   The XenCenter  (Network tab)
> displays the IP address when selecting the virtual machine from
>
> the resource frame.
>
>
>
> 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®.