Network Automation using Python(Netmiko Module) on MikroTik

Опубликовано: 20 Ноябрь 2024
на канале: MKSIT
4,117
64

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
https://github.com/ktbyers/netmiko

GitHub repository of the code used:
https://github.com/mksbcisco/YTrepo/t...

We will use pycharm in this video, you can download the same from:
https://www.jetbrains.com/pycharm/

In case you want to use Python's default IDE, you can download it from:
https://www.python.org/

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