Python

Netmiko TextFSM

I have used TextFSM in my Netmiko TACACS script in order to parse the show version and show inventory outputs to determine the type of Cisco OS the device is. The templates maybe found https://github.com/networktocode/ntc-templates/tree/master/ntc_templates/templatesThey were already installed when I installed Netmiko Using TextFSM is very simple. Netmiko takes in one extra parameter to use

Netmiko TextFSM Read More »

Flask Upload File

This is a basic file upload through Flask. I have used this in my F5 Dashboard project to upload a CSV file that contains the database that is used as the source for what domains require SSL profile updates. The Process There are two views for the CSV upload. The file uploader The database refresh

Flask Upload File Read More »

Python Default Setting Path

This is a very basic way to set the default path to always be the same as where the script is running from.So if the script has multiple files referenced then when moving the script instead of updating the paths for something such as opening a csv file, as long as the file is in

Python Default Setting Path Read More »