Closed LongBeachHXC closed 6 years ago
Okay nevermind...I see what is happening. I removed the exception handling and netmiko spit back
netmiko.ssh_exception.NetMikoTimeoutException: Connection to device timed-out: cisco_ios 10.128.96.17:22
It appears that a colon and number are being added to the end of my IP addresses. So now I need to figure out how to remove the colon and number.
Thanks!
Hey Kt,
I have the following code but the script is timing out when attempting to login to the devices. I have confirmed that I can SSH to the device and I can reach the device.
from getpass import getpass from netmiko import ConnectHandler from netmiko.ssh_exception import NetMikoTimeoutException from paramiko.ssh_exception import SSHException from netmiko.ssh_exception import AuthenticationException from ciscoconfparse import CiscoConfParse from napalm_base import get_network_driver import pandas as pd import re
test = pd.read_csv('cenc_final_task.csv', usecols=['IP Address','Interface'])
username = raw_input('Enter your SSH username: ') password = getpass()
for sample in test.iterrows():
}