Network Automation using Python(Netmiko Module) on MikroTik

preview_player
Показать описание
In today's video we will look into how to install Netmiko (devel) from source, and we will understand how to write a simple code in python to fetch configuration from the device. Leverage lists in python to send multiple lines of configurations in one go to the router. We face a problem in send_config_set and we resolve with for loop workaround. In the end I leave you with a small exercise that you can do online and try to solve this small puzzle.

GitHub repository of Netmiko

GitHub repository of the code used:

We will use pycharm in this video, you can download the same from:

In case you want to use Python's default IDE, you can download it from:

Timelines
00:00 Introduction
00:40 Installing Netmiko from source
02:41 Note for Conda users to install Netmiko
03:32 Connect to the router using Netmiko
05:55 Verify connection from router logs
06:41 Fetch configuration from MikroTik using Python/Netmiko
07:35 Configure MikroTik using lists on Python & send_config_set
09:00 PROBLEM!!! With send_config_set
09:50 Workaround the problem
12:33 Python learning exercise
13:55 End Notes
14:12 Hint on the next video
Рекомендации по теме
Комментарии
Автор

Its been 2 years since this video came out
has there been any update on the skewed output issue?
pretty sure this is still happening to this day

divinlobo
join shbcf.ru