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" ?
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel