Thanks for your valuable help


I made it run, but this error arises



$ python guacamole-cli.py -a

Traceback (most recent call last):

  File "guacamole-cli.py", line 83, in <module>

    myLoginData = login('gabriel','gabriel')

  File "guacamole-cli.py", line 27, in login

    loginResponse = urllib2.urlopen(loginRequest)

  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen

    return opener.open(url, data, timeout)

  File "/usr/lib/python2.7/urllib2.py", line 429, in open

    response = self._open(req, data)

  File "/usr/lib/python2.7/urllib2.py", line 447, in _open

    '_open', req)

  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain

    result = func(*args)

  File "/usr/lib/python2.7/urllib2.py", line 1228, in http_open

    return self.do_open(httplib.HTTPConnection, req)

  File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open

    raise URLError(err)

urllib2.URLError: <urlopen error [Errno 111] Connection refused>





And I am using user who I access to web application with







I made these changes



#guacbase = "https://localhost/guacamole";

guacbase =  <http://localhost/ga> http://localhost/ga





# Login

#myLoginData = login('guacuser','guacpass')

myLoginData = login('gabriel','gabriel')



What seems to be the problem?



Regards.







De: Gabriel Huerta Araujo [mailto:huert...@globalhitss.com]
Enviado el: jueves, 01 de noviembre de 2018 07:28 p.m.
Para: user@guacamole.apache.org
Asunto: RE: Help to solve a requirement about active connections vs configured 
connection



Thank you so much Nick



I’ll check it. If I had a doubt I hope I can continue asking about this matter.



Meanwhile have a great night.



Regards



De: Nick Couchman [ <mailto:vn...@apache.org> mailto:vn...@apache.org]
Enviado el: jueves, 01 de noviembre de 2018 06:02 p.m.
Para:  <mailto:user@guacamole.apache.org> user@guacamole.apache.org
Asunto: Re: Help to solve a requirement about active connections vs configured 
connection



I appreciate your soon answer. If I wanted this information in real time? And 
in an automatic way without accessing to Guacamole web application?



The web application is based on a REST API, so retrieving the data displayed on 
this page should be relatively easy.  I don't recall which API endpoint that 
page calls off the top of my head, but it should be pretty easy to track it 
down by watching the calls in one of the browser developer consoles, or by 
digging through the AngularJS code that defines these pages. The data is all 
returned in JSON format so it should be pretty easy to write some coffee to 
retrieve it.



Actually, once upon a time I wrote the beginnings of a Python script that 
handled some of these adminstrative tasks.  Code is in repo below - it is 
probably a little out of date against the current Guacamole code, but should at 
least get you started.



https://github.com/necouchman/guacamole-python





-Nick




 
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>

Libre de virus.  
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
 www.avg.com





---
Este correo electrónico ha sido comprobado en busca de virus por AVG.
http://www.avg.com

Reply via email to