3. 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
4. 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
5. Software to install
Python 3.8 ( Interpreter)
https://www.python.org/downloads/
Pycharm community 2020.1
https://www.jetbrains.com/pycharm/download/#section=windows
6. 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)