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

Re: [Xen-API] Virtual Machine IP Address

To: "Caruso, Joseph" <Joseph.Caruso@xxxxxxxxxxx>
Subject: Re: [Xen-API] Virtual Machine IP Address
From: "Roger R. Smith" <rogsmith@xxxxxxxxx>
Date: Wed, 14 May 2008 10:08:16 -0400
Cc: xen-api@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 14 May 2008 07:08:28 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=ZrmFAGdACd6MjV6IatdELwpu7fX7eAaLfW3hlnxp1Dc=; b=QDrjmehqKKj+NOSaEEX1+dp9DZoZbBYKdga6JWOytsNBA3RZ12eziLye9S3RAvlGfoff6ybxQ+ojedbAfmjysk56MnDcAuicq+fVOk4f5xH838HTGkGRshc2anFVOLXtSaZJC+u0Bsjce/mQSEzJbawPUAfdzZuS/LR9dV7vTF8=
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=wyqE1hSiZbUJsr8wtJwYj/JYu9B6aE3EcsQH/938Br7uD0KCG6gAhZ33Ai99WyBc+s2+3CUa66/60Fp83a80tbTKR9x7D/alCYG1RwxToWiCt6WxKEqD8W+W1fsraxg09cBiBvaW7HZPkD19uy7ELqrjUe9cVFa7R3zuQTWpHxE=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4821D5B6CD3C1B4880E6E94C6E70913E02CFAFC1@xxxxxxxxxxxxxxxxxxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <4821D5B6CD3C1B4880E6E94C6E70913E02CFAFC1@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
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

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