question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

telnet login not reliably working in Netmiko 3.3.2 with recent performance improvements

See original GitHub issue

I 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:open
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
jtraub91commented, Nov 12, 2020

Just wanted to mention that I was seeing the same thing until fast_cli: False provided a remedy

2reactions
ktbyerscommented, Oct 13, 2020

Okay, let’s leave this open as there is an underlying bug that I need to fix.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found