January 2019
Beginner
318 pages
8h 23m
English
In this section, we will learn about Netmiko. The Netmiko library is an advanced version of Paramiko. It is a multi_vendor library that is based on Paramiko. Netmiko simplifies SSH connection to a network device and takes particular operation on the device. Before going doing SSH to your remote device or multi-layer router, make sure they are configured properly and, if not, you can do basic configuration by command mentioned in the Paramiko section.
Now, let's see an example. Create a nmiko.py script and write the following code in it:
from netmiko import ConnectHandlerremote_device={ 'device_type': 'cisco_ios', 'ip': 'your remote_device ip address', 'username': 'username', 'password': 'password',}remote_connection ...Read now
Unlock full access