cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
9083
Views
10
Helpful
4
Comments
Kt43387
Level 1
Level 1

import netmiko
from netmiko import ConnectHandler
device = ConnectHandler(device_type="cisco-ios, ip="IP ADDRESS", username="USENAME", password="PASSWORD", secret="ENABLE PASSWORD")
output1 = device.send_command("show running-config")

print(output1)
device.disconnect()

Comments
liviu000111
Level 1
Level 1
Please, Krishna, how can I use this script? On what device and what are the prerequisites?
Kt43387
Level 1
Level 1

 

Hi @liviu000111 Greetings. There is not prerequisite, Just install python on machine with any IDE and and run the given script to access your Cisco routers and switches and your are set. But its good to have some basic understanding of python to understand the script and optimize as per your need.

 

Thanks

Krishna

liviu000111
Level 1
Level 1
Hi, Krishna, Question: This netmico is some library?
Kt43387
Level 1
Level 1

Hi @liviu000111  Yes, Its a multi vendor python library to SSH into network devices.its support multiple vendors. You can google it for more detail.

 

Thanks

Krishna

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: