In Part1 of this series of network automation, we saw how to read device data from csv files and build a dictionary of that data so that we can have netmiko leverage that directly from the csv sheet rather than building the dictionary manually for each device. Now, we are going to see how to…
Category: Python 🐍 Tips and Tricks
How to read write csv with python for Network Automation Part 1
We sure can build static dictionaries to interact with network devices for the purpose of network automation. How to Automate Network Devices using Python Netmiko Part I In the real world, this is not practical, we almost always will be required to read the device data from an inventory source which most of the time…
[Beginners] How to parse the output of show version
In this post we will parse the output of show version to fetch most common details required from it. We will try to learn step by step how to capture information like version, hostname, hardware model, uptime etc. You can use the concept to fetch any other detail you would like from any other command…
How to parse data using python
Assume you want to extract below details from the output of “show version” from multiple devices at once. This post is going to talk about how to parse data using python Using this method you can extract anything you want from any other output too. For instance, you can extract all BGP neighbour info from…
How to read files in bulk with python for Network Engineers
As a network engineer we need to deal with thousands of devices at once and this is the essence of network automation. The code snippet below will give you the entry point into how to read files in bulk with python for network engineers. Please note, this is not the only way of doing things…
