We have already seen how to work with and manipulate CSV files with python for network automation. This post is going to talk about ways you can manipulate excel for network automation using python. There are a lot of modules available that can interact with excel programmatically using python. To name a few:- xlrd –…
Author: Gurpreet Kochar
How to read write csv with python for Network Automation Part 2
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…
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…
How to Automate Network Devices using Python Netmiko Part I
In this post, we are going to cover the very basics of Netmiko. This is a beginner-level introduction on how to automate networking devices using python netmiko in which we will talk about how to install and set up SSH to network devices using python. Also how to write a basic script for interacting with devices…
Beginners Guide to Network Automation
Network Automation is the new buzz word which essentially means use of software and technology to reduce human effort to perform the tasks that we have been conventionally doing thus far. You could read up on the definitions and different perspectives of major players in this industry like CISCO JUNIPER VMWARE REDHAT Here in this…
[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…
[FREE] Cisco Always on Devnet Sandbox Lab
The first and the foremost is setting up a lab device for practising network automation. No matter how much theory you read but at the end of the day, its the actual hands-on that will teach you network automation. Cisco Always ON Devnet Sandbox Lab is one the great ways we can leverage to get…
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…