Network Automation using Python(Paramiko Module) on MikroTik

Опубликовано: 14 Октябрь 2024
на канале: MKSIT
3,029
69

In today's video we will look into how to install Paramiko module of Python using pip, 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.

Paramiko Website:
https://www.paramiko.org/
Documentation:
https://docs.paramiko.org/en/stable/

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/

00:00 Intro-Covered till now in Network Automation
01:11 Paramiko Understanding and Installation
02:36 Starting our first script with Paramiko
03:58 Issue with Host Keys in Paramiko
05:14 Creating SSH client Paameters
06:24 stdin, stdout, stderr tuple
07:20 Handling output of the print command (decoding the output)
09:53 add an interface and IP Address from Paramiko using FOR loop
11:47 Printing list of commands using FOR loop
13:02 Outro
14:10 What's next in the series