Netmiko tested script for show version output | Network Automation | Python |

 from netmiko import ConnectHandler

cisco = {

  'device_type': 'cisco_ios',

  'host': '1.1.1.1', 

  'username': 'test', 

  'password': 'test',

  }

  

print("*****SSH Connection created succussfully*****")

net_connect = ConnectHandler(**cisco)

output = net_connect.send_command("sh ver")

print(output)



No comments:

Post a Comment

If you have any doubt please let me know.