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] trying to get some data out of XenAPI

To: Tom Wilkie <tom.wilkie@xxxxxxxxx>
Subject: Re: [Xen-API] trying to get some data out of XenAPI
From: Henning Sprang <henning_sprang@xxxxxx>
Date: Sun, 27 May 2007 23:06:25 +0200
Cc: xen-api@xxxxxxxxxxxxxxxxxxx
Delivery-date: Sun, 27 May 2007 14:04:36 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4A64FD74-0DCF-4DA7-810E-3903A93F01FA@xxxxxxxxx>
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: <20070527184831.219870@xxxxxxx> <EF8F5294-F347-4C89-8855-52294D691969@xxxxxxxxx> <20070527203710.56390@xxxxxxx> <4A64FD74-0DCF-4DA7-810E-3903A93F01FA@xxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.10 (X11/20070306)
Tom Wilkie wrote:
> The python API works reflectively, so it doesn't actually declare any of
> the api. 

Yeah, I imagined that.

> I don't think theres any documentation, but if you look in
> tools/python/xen/xm/main.py it should show see how xm sets up its xenapi
> connection.

I'll look at this code - it might help.

>  And theres the language independent XenAPI docs in
> docs/xen-api or on the wiki.

Yes, I a, trying to do that. the RPC docd give me a vague idea on how
the data structures look like anbd how I might be able to access them,
but in reality it's a lot of fiddling to get to the data I want.

Doesn't look like these bindings will get many good friends in the
programmers world in this state.

> If you want to get started quickly I wrote some java bindings with a
> simple example and javadocs which might help -
> http://www.cl.cam.ac.uk/~tw275/

I like Java very much and will look at these when writing other
management tools - but for a nagios plugin java might not be the right
thing... at least not to be called directly.

Maybe I should look at the perl bindings, but I usually try to avoid
Perl (just a matter of personal taste).

Henning

_______________________________________________
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>