Not able to ssh into a Ubiquiti Edge-switch using a python script with Netmiko library imported. I changed the device type to 'device_type': 'ubiquiti_edgeswitch'. But still not able to ssh into a Ubiquiti Edge switch. However I can SSH into a Cisco. Could you help please?
Here is the code:
from netmiko import ConnectHandler
os = {
'device_type': 'ubiquiti_edgeswitch',
'ip': '192.168.1.2,
'username': 'ubnt',
'password': 'ubnt'
}
net_connect = ConnectHandler(**os)
output = net_connect.send_command('show run')
print (output)
Thanks!
Fahad
Not able to ssh into a Ubiquiti Edge-switch using a python script with Netmiko library imported. I changed the device type to 'device_type': 'ubiquiti_edgeswitch'. But still not able to ssh into a Ubiquiti Edge switch. However I can SSH into a Cisco. Could you help please?
Here is the code:
from netmiko import ConnectHandler
os = {
'device_type': 'ubiquiti_edgeswitch',
'ip': '192.168.1.2,
'username': 'ubnt',
'password': 'ubnt'
}
net_connect = ConnectHandler(**os)
output = net_connect.send_command('show run')
print (output)
Thanks!
Fahad