From: "hitesh " Subject: [SPAM] Xen-Session Date: 25 Feb 2009 09:04:55 -0000 Message-ID: <20090225090455.16645.qmail@f4mail-235-149.rediffmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0864855744==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: hitesh.wadekar@rediffmail.com List-Id: xen-devel@lists.xenproject.org --===============0864855744== Content-Type: multipart/alternative; boundary="=_9b73cdc92b2e600ec4c09dd119cccec2" --=_9b73cdc92b2e600ec4c09dd119cccec2 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" 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" ? --=_9b73cdc92b2e600ec4c09dd119cccec2 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset="ISO-8859-1" 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_utillisatio= n

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 t= o write python script

we have succesfull display cpu_utillisation,memory_utillisation of dom-0 bu= t 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=3DSession('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 xe= napi_request
self._login(methodname, params)
File "/usr/lib/python2.5/site-packages/xen/xm/XenAPI.py", line 156, in _l= ogin
result =3D _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 11= 8, in __request
response =3D xmlrpclib.ServerProxy.__request(self, methodname, params)<= br /> File "/usr/lib/python2.5/xmlrpclib.py", line 1440, in __request
verbose=3Dself.__verbose
File "/usr/lib/python2.5/xmlrpclib.py", line 1179, in request
h =3D self.make_connection(host)
File "/usr/lib/python2.5/xmlrpclib.py", line 1255, in make_connection
host, extra_headers, x509 =3D self.get_host_info(host)
File "/usr/lib/python2.5/xmlrpclib.py", line 1232, in get_host_info
auth, host =3D urllib.splituser(host)
File "/usr/lib/python2.5/urllib.py", line 1049, in splituser
match =3D _userprog.match(host)

this is socket error...

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

session=3DSession('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 correc= t URL for that session & also tell me resone" ?
3D'Shopping'<= /td>
--=_9b73cdc92b2e600ec4c09dd119cccec2-- --===============0864855744== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0864855744==--