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 IPAddress

To: "vikram ranabhatt" <lok.vikram@xxxxxxxxx>
Subject: Re: [Xen-API] Virtual Machine IPAddress
From: "Roger R. Smith" <rogsmith@xxxxxxxxx>
Date: Fri, 16 May 2008 15:47:24 -0400
Cc: xen-api@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 16 May 2008 12:47:37 -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=fiug6+9SDyxoDPXnyUUksNKhRlx3tpWYizP7hS1m8Rg=; b=rf8uRq7xtB6454inScHd/RaI5v2VOZOH+QdifsVuGMhevKObDAQAsZW6eF/5ZUu2nBlMNqJquZlfSwX5IR4qTZ0tR4vH4JheYHtNuERUs1mLYfJi7AUBPRmXI9FpJgyEIasE1A4hBTgedKByeP3WzX3JdxALkLM5esiMp13zviM=
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=k+IfbZSlnXA+N7obK7lvk0+m0c5I5w6OT+o8vxMriUgCkxZPZDJIUemZTqg7VBQJNsi6n+3+/ru6nLTvE8O4jxG7CUqWI6wKln5G8aoB7LAytG93QBr47yu3IoJz+Wt1KQmlgElGxaZEUHyJGIrcU0E6usZjOLExGkaZrFm3NB0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <7d3b15d0805150422s2b45b26dr72b3e17ffcc780d@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/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: <7d3b15d0805150422s2b45b26dr72b3e17ffcc780d@xxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Hi Vikiram, I Just made a posting about a similair question but while
using java:

I have not used the C/C++ 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 Thu, May 15, 2008 at 7:22 AM, vikram ranabhatt <lok.vikram@xxxxxxxxx> wrote:
> Hi
>
> Can anybody explain me how to extract Virtual Machine IP address
> through C/C++ api
> _______________________________________________
> 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>