Replies: 4 comments 10 replies
-
@exlr8in Are you using AAA for authentication and/or authorization? The above failure is Netmiko sent |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, AAA (TACACS)
… On Aug 20, 2022, at 11:26 AM, Kirk Byers ***@***.***> wrote:
@exlr8in Are you using AAA for authentication and/or authorization?
The above failure is Netmiko sent terminal width 511 and expected it to be echoed to the screen and it wasn't echoed.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
3 replies
-
Yes both for Authentication and Command Authorization.
…On Sat, Aug 20, 2022 at 2:30 PM Kirk Byers ***@***.***> wrote:
Are you using AAA and command authorization or just using it for
authentication?
—
Reply to this email directly, view it on GitHub
<#2908 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2M3F2WHQQWLEF2KGJOSYBDV2EW6HANCNFSM57DK6GFA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
7 replies
-
Nope No multithreading/multiprocessing (simple for loop) and the process elimination ask is something I don’t have access to :(
… On Aug 21, 2022, at 11:36 AM, Kirk Byers ***@***.***> wrote:
Okay, my next question would be does the problem go away if 'command authorization' is disabled.
i.e. the next step would be test if your AAA server not responding in a reasonable amount of time is the problem.
Also are you using threads/multiprocessing or is it just a standard for-loop?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Yes, there is quite a bit of code missing (500 lines in grand total - my testing results in success if small device list, error out in long device list)
Interactive SSH session established
Traceback (most recent call last):
File "f.py", line 427, in
main()
File "f.py", line 381, in main
device_access(search_fqdn)
File "f.py", line 273, in device_access
get_cisco_info(clean_ip)
File "f.py", line 185, in get_cisco_info
connect_to_device(clean_ip_)
File "f.py", line 165, in connect_to_device
a_connection = ConnectHandler(**ssh_info)
File "/home/blah/.local/lib/python3.7/site-packages/netmiko/ssh_dispatcher.py", line 365, in ConnectHandler
return ConnectionClass(*args, **kwargs)
File "/home/blah/.local/lib/python3.7/site-packages/netmiko/base_connection.py", line 439, in init
self._open()
File "/home/blah/.local/lib/python3.7/site-packages/netmiko/base_connection.py", line 445, in _open
self._try_session_preparation()
File "/home/blah/.local/lib/python3.7/site-packages/netmiko/base_connection.py", line 904, in _try_session_preparation
self.session_preparation()
File "/home/blah/.local/lib/python3.7/site-packages/netmiko/cisco/cisco_ios.py", line 19, in session_preparation
self.set_terminal_width(command=cmd, pattern=cmd)
File "/home/blah/.local/lib/python3.7/site-packages/netmiko/base_connection.py", line 1260, in set_terminal_width
output = self.read_until_pattern(pattern=pattern)
File "/home/blah/.local/lib/python3.7/site-packages/netmiko/base_connection.py", line 672, in read_until_pattern
raise ReadTimeout(msg)
netmiko.exceptions.ReadTimeout:
Pattern not detected: 'terminal width 511' in output.
Things you might try to fix this:
many situations the pattern is automatically based on the network device's prompt.
You can also look at the Netmiko session_log or debug log for more information.
(22-08-20 14:12:13) <1> [~/a]
Beta Was this translation helpful? Give feedback.
All reactions