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

[Xen-devel] [SPAM] Xen-Session

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [SPAM] Xen-Session
From: "hitesh " <hitesh.wadekar@xxxxxxxxxxxxxx>
Date: 25 Feb 2009 09:04:55 -0000
Cc: hitesh.wadekar@xxxxxxxxxxxxxx
Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Delivery-date: Wed, 25 Feb 2009 01:05:57 -0800
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=redf; d=rediffmail.com; b=I32Nf32sUcMyFmQ3VlCJXh1o+dh8wGqO7duPMG9NNPvbeMkRuHWNTYoQb82ojn8Q+qN0N+CKzhHtK0IKHyWsOrK5efR9zkivQpZZ+taqwaT9oyLBbwUUfXcERPZBnT0GV2Tm+O8kfvAgozPA7Q9D6SdLUocnJlcO+cnNjuiwyWc= ;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
Importance: Low
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Xx-cmae-analysis: score=0 v=1.0 c=1 a=9RT1zexo1kqAv3w2TjoA:9 a=FRj4XI-SfkA5RilyYdYA:7 a=E3U7tVzk15tmWGLS11XVua90CrwA:4 a=b8hG5vVbyAkA:10 a=6SwCy3u5AAAA:8 a=psAlcpegMH4_m14-F40A:7
Hello Respected,


My Project Name is "Virtual server Resource Management" . we have installed

Fedora -8 on that Xen-3.1.13 .

Dom-0 Fedora 8

Dom-U windows Xp

Dom-U fedora 8


We are going extract cpu_utillisation,Memory_utillisation,space_utillisation

process_utillisaation , Network utillisation of Dom-0 & Dom-u Display it on Dom-0

we have found that xen made in Python,c-Binding,perl,XML_RPC.we are going to write python script

we have succesfull display cpu_utillisation,memory_utillisation of dom-0 but could't dislplay dom-u

we got following problems

1.how will we get process-utillisation of dom-u ?


2.Some problem facing of python Code see following code




from xen.xm.XenAPI import Session

session=Session('http://localhost.localdomain:9363')

#print session

session.xenapi.login_with_password('root','kushal3 ')


we got following error..................

Traceback (most recent call last):
File "tt.py", line 12, in
session.xenapi.login_with_password('root','kushal3 ')
File "/usr/lib/python2.5/site-packages/xen/xm/XenAPI.py", line 213, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.5/site-packages/xen/xm/XenAPI.py", line 135, in xenapi_request
self._login(methodname, params)
File "/usr/lib/python2.5/site-packages/xen/xm/XenAPI.py", line 156, in _login
result = _parse_result(getattr(self, 'session.%s' % method)(*params))
File "/usr/lib/python2.5/xmlrpclib.py", line 1150, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python2.5/site-packages/xen/util/xmlrpcclient.py", line 118, in __request
response = xmlrpclib.ServerProxy.__request(self, methodname, params)
File "/usr/lib/python2.5/xmlrpclib.py", line 1440, in __request
verbose=self.__verbose
File "/usr/lib/python2.5/xmlrpclib.py", line 1179, in request
h = self.make_connection(host)
File "/usr/lib/python2.5/xmlrpclib.py", line 1255, in make_connection
host, extra_headers, x509 = self.get_host_info(host)
File "/usr/lib/python2.5/xmlrpclib.py", line 1232, in get_host_info
auth, host = urllib.splituser(host)
File "/usr/lib/python2.5/urllib.py", line 1049, in splituser
match = _userprog.match(host)

this is socket error...

But some doing trial & error we hav giving following session it has work properly but it is wrong .....

session=Session('httpu:///var/run/xend/xen-api.sock')

#print session

session.xenapi.login_with_password('','')



"Could You tell me what we suppose to do that session or give me correct URL for that session & also tell me resone" ?
Shopping
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [SPAM] Xen-Session, hitesh  <=