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

[Xen-API] Help with python binding. my simple example

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] Help with python binding. my simple example
From: Joni Lee <webcokies@xxxxxxxxx>
Date: Mon, 31 Aug 2009 07:25:49 -0700 (PDT)
Delivery-date: Mon, 31 Aug 2009 07:25:51 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1251728749; bh=ISm8nsVEKCbg50tEcMcJ6mMnSSO+wSD4EHaX1XoTsBU=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=tyhx5ew6E4EolNoLwm6RrZxCz1FkhGjttENCD7JnbeMFj/Zy2uM01jrYImejBfkt1ogUKGFPduwTLgeqsCod7cD7zhxY6ZVrJR4j0qW59T9WFeIqkJjwVzdrf+hKocSzv9+hzSh18ob/elbQK98l8o3wQJXMLW4RdsfAHLaO/nM=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=heOFJFdtl20enObBTZNwx0rgKUdp1XTbu0Zskc+XBYepxCjlqRrXiDYd6BrZNTuH9UTThZyP9pctSZSboWXCuskhV9VDlATiqLb0QB60uHG04xK+sIwiTSMnWldN81H3ubcSn1tS0jUNPwCuAs0b3v/5HTOxIYJClEJ7U49R40s=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Hi list,

I install xen 3.3 from apt-get xen-server install
on Ubuntu and this is my small Python script:
-------------------------------------------------------------
import sys
sys.path.append('/usr/lib/python2.6/site-packages')
from xen.xm.XenAPI import Session
session = Session('http://localhost:8006/')
session.login_with_password('root', '')
-------------------------------------------------------------
and it returns
"xen.xm.XenAPI.Failure: The method session.login_with_password is unsupported"
-------------------------------------------------------------
Please help me with the first step into binding. I only want to get the information about the resource assumption such as CPU, RAM of the doms.

Thank you very much

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>