selvajegansanthagruz
145 views
6 slides
Oct 18, 2020
Slide 1 of 6
1
2
3
4
5
6
About This Presentation
How to Automate Network Device Login Using Netmiko
https://www.youtube.com/watch?v=588sM7Bt3Mo&t=201s
Size: 52.68 KB
Language: en
Added: Oct 18, 2020
Slides: 6 pages
Slide Content
Welcome to my Networking Channel Please subscribe to my channel SELVAJEGAN
Netmiko
What is netmiko It is a Open Source Library designed to simplify SSH connections. It is a network automation tool to interact with network devices Developed by Kirk Byers Its also a Multi vendor library
Platform Supported Arista EOS Cisco ASA Cisco IOS/IOS-XE Cisco IOS-XR Cisco NX-OS Cisco SG300 HP Comware7 HP ProCurve Juniper Junos Linux
Software to install Python 3.8 ( Interpreter) https://www.python.org/downloads/ Pycharm community 2020.1 https://www.jetbrains.com/pycharm/download/#section=windows
from netmiko import ConnectHandler host1 = input ( "Enter your hostname: " )---------------Prompting for User Input x = ConnectHandler( device_type = ' cisco_ios_telnet ' , host =host1, username = ' selva ' , password = ' selva ' , secret = 'selva1' )--------------------Defining dictionary and calling using Connect Handler print ( "version check" )------------------Printing the output print ( x.find_prompt ())------------------checking the SSH / Telnet print ( "=========================================================================" ) output1 = x.enable()--------------Logging with enable password/secret print (output1 ) output = x.send_command( "show version" )-----------------sending the commands print (output)