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.

Unable to connect to AireOS Device with 3.2.0 Release

See original GitHub issue

I am able to connect to device fine using netmiko==3.1.1

>>> from netmiko import ConnectHandler
>>> dev = ConnectHandler(device_type="cisco_wlc", ip=ip, username=username, password=password, port=22, global_delay_factor=1, secret="", verbose=False)
>>> dev.find_prompt()
'(wlc_host)'
>>>

I get a paramiko SSHException when attempting the same thing on netmiko==3.2.0

>>> from netmiko import ConnectHandler
>>> dev = ConnectHandler(device_type="cisco_wlc", ip=ip, username=username, password=password, port=22, global_delay_factor=1, secret="", verbose=False)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/users/user/venv/lib/python3.6/site-packages/netmiko/ssh_dispatcher.py", line 298, in ConnectHandler
    return ConnectionClass(*args, **kwargs)
  File "/home/users/user/venv/lib/python3.6/site-packages/netmiko/base_connection.py", line 341, in __init__
    self._open()
  File "/home/users/user/venv/lib/python3.6/site-packages/netmiko/base_connection.py", line 346, in _open
    self.establish_connection()
  File "/home/users/user/venv/lib/python3.6/site-packages/netmiko/base_connection.py", line 915, in establish_connection
    self.remote_conn_pre.connect(**ssh_connect_params)
  File "/home/users/user/venv/lib/python3.6/site-packages/paramiko/client.py", line 412, in connect
    server_key = t.get_remote_server_key()
  File "/home/users/user/venv/lib/python3.6/site-packages/paramiko/transport.py", line 834, in get_remote_server_key
    raise SSHException("No existing session")
paramiko.ssh_exception.SSHException: No existing session
>>> 

I did a pip freeze between 3.1.1 and 3.2.0 and compared and the only difference was netmiko

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jmcgill298commented, Aug 24, 2020

@ktbyers I am going to unfollow this issue now that a resolution is decided upon; feel free to close as you wish

1reaction
ktbyerscommented, Aug 24, 2020

Setting conn_timeout argument to 10 fixes this. Per testing by @jmcgill298

So we should put this into the WLC driver.

Also maybe catch the:

    raise SSHException("No existing session")
paramiko.ssh_exception.SSHException: No existing session

And raise a message recommending to increase the conn_timeout

Read more comments on GitHub >

github_iconTop Results From Across the Web

Release Notes for Cisco Wireless Controllers and Lightweight ...
1.Successfully created Authentication server. 2.Failed to create authorization server:SNMP operation to Device failed: Set Operation not allowed ...
Read more >
Connection to Cisco WLC 3504 failed · Issue #1887 - GitHub
Hi, There is a traceback when trying to connect to the Cisco WLC 3504. Manual login is working from the same machine as...
Read more >
Cisco Wireless LAN Controller (WLC) Basic Configuration
This lesson explains how to configure a basic network with a Cisco Wireless LAN Controller (WLC), two access points and a switch in...
Read more >
AirWave 8.2.14.1 Supported Infrastructure Devices
This release of AirWave supports management of global configuration profiles or settings, monitoring, and software upgrades on the Aruba devices and software ...
Read more >
Wireless LAN Controller (WLC) Error and System Messages ...
My wireless clients are not able to connect to the wireless LAN. (WLAN) network. The WiSM that the access point (AP) is connected...
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