Netmiko Tacacs Changes

Overview

This is an old project which I will be revisiting. I created several cumbersome scripts that modified the TACACS servers of around 200 Cisco network devices. This is the lab I created to test them out.

In the beginning this script could was actually two per OS type. So in a lab as the one below there are three different types; IOS, IOSXE and NXOS. There are some similarities. But there can be some major changes for running commands.

The final version of this script will be to have the everything to run in a single script. The OS type is determined and appropriate commands sent and correct configuration applied. The script will also use multi threading, however threads will need to be controlled so for 200 devices the script will not create 200 threads at once. Other things I want to do is to make it more reusable and remove as much user interaction as possible.

This type of work will also work well with Scrapli and Flask project.

I am not going to implement this into a Flask web app. I want to try to clean up what I have written and improve upon my Python skills along the way.

I have below pages that are for the evolution of this lab. All of the code for this project may be found on my GitHub.

The Original Lab

The Problems and Interesting Lab Info

 

Python_(programming_language)-Logo
Python Multi Threading
I am by no means a Python expert and when researching how to get my own multi threading working...
Python-Logo-PNG-Image
Netmiko TextFSM
I have used TextFSM in my Netmiko TACACS script in order to parse the show version and show...
Python-Logo-PNG-Image
Python Setting Base Directory
Moving and running script from different machines can result in additional files that the script...
Python-Logo-PNG-Image
Python Adding Credentials to Scripts
This is a handy Python library to use when credentials are required to be used by scripts....
2739187
Configuring TACACS
This is showing how TACACS in a GNS3 lab can work. It is part of the Netmiko TACACS Project....
tux
Linux CentOS7 Add Interface
Adding an Interface in GNS3 I needed a new VM in my lab as I was having issues with my older...
Python-Logo-PNG-Image
Python 3.10.2 Centos 7 Install & Problems
Problems I needed to update Python in one of my forgotten labs from 3.6 as Netmiko required...