Cant connect to Cisco switch with NAPALM ,IOS 12.2(25)SEE3 #1834
mmabdelwahed
started this conversation in
General
Replies: 1 comment
-
Can you post the code for the device you are connecting to? Are you sure you properly passed in a hostname/IP address? The above error doesn't show the hostname or IP address (which makes me think that it is missing). |
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.
-
Hi,
I am new to python network automation and I am trying to use NAPALM to connect to Cisco switches , I can connect to switches with IOS 15 , but when i try to connect to switch with IOS 12.2(25)SEE3 i get this error :
Traceback (most recent call last):
File "C:\Users\automation\AppData\Roaming\Python\Python39\site-packages\netmiko\base_connection.py", line 1046, in establish_connection
self.remote_conn_pre.connect(**ssh_connect_params)
File "C:\Users\automation\AppData\Roaming\Python\Python39\site-packages\paramiko\client.py", line 381, in connect
raise NoValidConnectionsError(errors)
paramiko.ssh_exception.NoValidConnectionsError: [Errno None] Unable to connect to port 22 on 192.168.201.11
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\automation\AppData\Roaming\Python\Python39\site-packages\napalm\base\base.py", line 113, in _netmiko_open
self._netmiko_device = ConnectHandler(
File "C:\Users\automation\AppData\Roaming\Python\Python39\site-packages\netmiko\ssh_dispatcher.py", line 365, in ConnectHandler
return ConnectionClass(*args, **kwargs)
File "C:\Users\automation\AppData\Roaming\Python\Python39\site-packages\netmiko\base_connection.py", line 439, in init
self._open()
File "C:\Users\automation\AppData\Roaming\Python\Python39\site-packages\netmiko\base_connection.py", line 444, in _open
self.establish_connection()
File "C:\Users\automation\AppData\Roaming\Python\Python39\site-packages\netmiko\base_connection.py", line 1068, in establish_connection
raise NetmikoTimeoutException(msg)
netmiko.exceptions.NetmikoTimeoutException: TCP connection to device failed.
Common causes of this problem are:
Device settings: cisco_ios
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 17, in
device.open()
File "C:\Users\automation\AppData\Roaming\Python\Python39\site-packages\napalm\ios\ios.py", line 170, in open
self.device = self._netmiko_open(
File "C:\Users\automation\AppData\Roaming\Python\Python39\site-packages\napalm\base\base.py", line 122, in _netmiko_open
raise ConnectionException("Cannot connect to {}".format(self.hostname))
napalm.base.exceptions.ConnectionException: Cannot connect to
is it related to the CISCO IOS and is there anyway to mitigate this issue
Beta Was this translation helpful? Give feedback.
All reactions