telnet login not reliably working in Netmiko 3.3.2 with recent performance improvements
See original GitHub issueI am unable to login to a cisco switch using telnet protocol using netmiko 3.3.2, it is throwing AuthenticationException
but my credentials seems to be correct as I am able to login using the same credentials using 1.4.0 version of netmiko
Code:
dev = {
'device_type':'cisco_ios_telnet',
'host': 'myip',
'username': 'uuuu',
'password': 'pppppppp',
'secret':'pppppp',
conn = ConnectHandler(**dev)
}
Here is the error trace:
Traceback (most recent call last):
File "nigeria_switch.py", line 12, in <module>
conn = ConnectHandler(**dev)
File "/home/sanidhya/Py/email_parsing/env/lib/python3.8/site-packages/netmiko/ssh_dispatcher.py", line 312, in ConnectHandler
return ConnectionClass(*args, **kwargs)
File "/home/sanidhya/Py/email_parsing/env/lib/python3.8/site-packages/netmiko/cisco/cisco_ios.py", line 17, in __init__
return super().__init__(*args, **kwargs)
File "/home/sanidhya/Py/email_parsing/env/lib/python3.8/site-packages/netmiko/base_connection.py", line 346, in __init__
self._open()
File "/home/sanidhya/Py/email_parsing/env/lib/python3.8/site-packages/netmiko/base_connection.py", line 351, in _open
self.establish_connection()
File "/home/sanidhya/Py/email_parsing/env/lib/python3.8/site-packages/netmiko/base_connection.py", line 910, in establish_connection
self.telnet_login()
File "/home/sanidhya/Py/email_parsing/env/lib/python3.8/site-packages/netmiko/cisco_base_connection.py", line 171, in telnet_login
raise NetmikoAuthenticationException(msg)
netmiko.ssh_exception.NetmikoAuthenticationException: Login failed: myip
Additional Information: python version: Python 3.8.5
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
subject:"commit python\-netmiko for openSUSE\:Factory"
Hello community, here is the log from the commit of package python-netmiko for openSUSE:Factory checked in at 2020-10-23 16:09:05 Comparing ...
Read more >netmiko: Versions - Openbase
Significantly improve performance (reduce unnecessary sleep times). Improve reliability of enable and config methods. Increase use of send_command_expect method ...
Read more >netmiko - PyPI
Multi-vendor library to simplify legacy CLI connections to network devices.
Read more >Untitled
The current version is designed to work with the Keystone V2 API. CBS <cbs@centos.org> http://pypi.python.org/pypi/django_openstack_auth/ BSD Centos ...
Read more >Open Source Used In BGP TE Controller Version 4.3.0 - Cisco
1.579 netmiko 3.4.0 ... and (ii) are not derivative works of the Program. ... warranties related to Product X, those performance claims and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just wanted to mention that I was seeing the same thing until
fast_cli: False
provided a remedyOkay, let’s leave this open as there is an underlying bug that I need to fix.