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] XAPI Perl howto

To: 'Sergey Melnik' <admin.sa@xxxxxxxxx>, "xen-api@xxxxxxxxxxxxxxxxxxx" <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-API] XAPI Perl howto
From: Dave Scott <Dave.Scott@xxxxxxxxxxxxx>
Date: Fri, 24 Jun 2011 10:41:34 +0100
Accept-language: en-US
Acceptlanguage: en-US
Cc:
Delivery-date: Fri, 24 Jun 2011 02:41:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <BANLkTikvi8m8bvmrKe+H8QGOwWe9COyKTQ@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/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <BANLkTikvi8m8bvmrKe+H8QGOwWe9COyKTQ@xxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcwyQ8dQxvt1Y7ftTiOXzxNB2ATDDQADZ7kw
Thread-topic: [Xen-API] XAPI Perl howto
Hi Sergey,

You can use raw XMLRPC to control an XCP pool. There aren't any perl examples 
(maybe you could write some!) but you could probably translate the python ones:

http://docs.vmd.citrix.com/XenServer/4.0.1/api/client-examples/python/index.html

The XenAPI documentation is here:

http://www.xen.org/files/XenCloud/ocamldoc/

Cheers,
Dave

> -----Original Message-----
> From: xen-api-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-api-
> bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Sergey Melnik
> Sent: 24 June 2011 08:53
> To: xen-api@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-API] XAPI Perl howto
> 
> Hello, everyone.
> I am writing a small backup management system for company XCP farm,
> and had a small script written in bash & xe to do the thing.
> Now the task is to move from bash to Perl.
> I am not really fond of using exec everytime and looking for other way
> to communicate with XCP Xapi.
> I ve seen python scripts, yet they are mostly for Xend, not for XCP.
> 
> Which way should I look? Are there perl bindings for XCP?
> 
> 
> Thanks,
> Sergey.
> 
> _______________________________________________
> xen-api mailing list
> xen-api@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/mailman/listinfo/xen-api
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>