-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aruba Controller #196
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I am having issues using the exscript with an Aruba Controller.... I am able to connect to many different devices with the same script without issues...
I ran exscript directly to see where its failing...
exscript -v 5 -V 5 --protocol-verbose=5 --use-driver=aruba ./aruba-commands.txt ssh://10.x.x.21
/Library/Frameworks/Python.framework/Versions/3.7/bin/exscript:23: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
Please enter your user name [XXX]: XXXXXX
Please enter your password:
Waiting for the queue to finish.
aruba: Rejecting ssh-rsa host key for 10.2.65.21: b'56711a7c273fedd9faec5c6157b00dba'
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/paramiko/ecdsakey.py:164: CryptographyDeprecationWarning: Support for unsafe construction of public numbers from encoded data will be removed in a future version. Please use EllipticCurvePublicKey.from_encoded_point
self.ecdsa_curve.curve_class(), pointinfo
aruba: Attempting to authenticate sysa.dhingra.
aruba: auth_none failed, supported: ['publickey', 'password', 'keyboard-interactive']
aruba: Authenticating with _paramiko_auth_agent
aruba: Authentication with _paramiko_auth_agent failed: auth agent found no keys
aruba: Authenticating with _paramiko_auth_autokey
aruba: Trying key b'b336a908XXXXX2cccc1XXXXXXdb4042' in /Users/XXX/.ssh/id_rsa
aruba: Authentication with _paramiko_auth_autokey failed: Authentication failed.
aruba: Authenticating with _paramiko_auth_password
aruba: Attempting to app-authenticate XXXXXXXXX.
aruba: waiting for: ['[\r\n][^\\r\\n](?:bad secrets|denied|invalid|too short|incorrect|connection timed out|failed|failure)', 'user ?name: ?$', '(?:s\/key|otp-md4) (\d+) (\S+)(?=\s|[\r\n])', '(?:[\r\n]Password: ?|last resort password:)$', '[\r\n]\(\w+\) [>#] ?$']
aruba: Expecting a prompt
aruba: Expected pattern: ["'[\\r\\n][^\\\\r\\\\n](?:bad secrets|denied|invalid|too short|incorrect|connection timed out|failed|failure)'", "'user ?name: ?$'", "'(?:s\\/key|otp-md4) (\\d+) (\\S+)(?=\\s|[\\r\\n])'", "'(?:[\\r\\n]Password: ?|last resort password:)$'", "'[\\r\\n]\\(\\w+\\) [>#] ?$'"]
10.2.65.21 error: Buffer: ''
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Exscript/protocols/protocol.py", line 769, in _app_authenticate
index, match = self._waitfor(prompt_list)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Exscript/protocols/protocol.py", line 986, in _waitfor
result = self._domatch(re_list, False)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Exscript/protocols/ssh2.py", line 422, in _domatch
if not self._fill_buffer():
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Exscript/protocols/ssh2.py", line 393, in _fill_buffer
raise TimeoutException(error)
Exscript.protocols.exception.TimeoutException: Timeout while waiting for response from device
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Exscript/workqueue/job.py", line 78, in run
self.function(self)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Exscript/queue.py", line 102, in _wrapped
result = func(job, host, conn, *args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Exscript/util/decorator.py", line 117, in decorated
conn.login(flush=flush)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Exscript/protocols/protocol.py", line 675, in login
self.authenticate(account, flush=False)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Exscript/protocols/protocol.py", line 701, in authenticate
self.app_authenticate(app_account, flush=flush)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Exscript/protocols/protocol.py", line 870, in app_authenticate
self._app_authenticate(account, password, flush, bailout)
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Exscript/protocols/protocol.py", line 774, in _app_authenticate
raise TimeoutException(msg)
Exscript.protocols.exception.TimeoutException: Buffer: ''
It looks like the autologin or the aruba driver does not like an empty line right after you login:
The text was updated successfully, but these errors were encountered: