Skip to content

Network Automation

My journey with Network & Cloud Automation

Menu
  • Beginner
  • DevOps-NetDevOps
  • Network Automation
    • Docker
    • Python Libraries
      • NAPALM
      • Netmiko
      • Jinja2
      • Scrapli
      • Yang
  • Cloud Automation
    • Terraform
  • Python 🐍 Tips and Tricks
Menu

Category: Python 🐍 Tips and Tricks

How to read write csv with python for Network Automation Part 2

Posted on August 5, 2021August 20, 2021 by Gurpreet Kochar

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…

Read more

How to read write csv with python for Network Automation Part 1

Posted on August 4, 2021August 5, 2021 by Gurpreet Kochar

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…

Read more

[Beginners] How to parse the output of show version

Posted on August 1, 2021August 1, 2021 by Gurpreet Kochar

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…

Read more

How to parse data using python

Posted on July 29, 2021August 15, 2021 by Gurpreet Kochar

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…

Read more

How to read files in bulk with python for Network Engineers

Posted on July 29, 2021August 15, 2021 by Gurpreet Kochar

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…

Read more
  • Previous
  • 1
  • 2
All Blog Posts
My Resume

Upcoming Posts

Sorry - nothing planned yet!

Recent Posts

  • How to backup configuration to TFTP Server using Ansible – Part II
  • How to backup network devices using Ansible – Part I
  • Netmiko SSH Proxy/JumpServer
  • A short note on SASE
  • Understanding Ansible

Recent Comments

  1. Jack on Multithreading with Python for Network Engineers
  2. LifeCanvas on [Theory] Multithreading vs Multiprocessing vs AsyncIO
  3. Jasper Horng on Netmiko SSH Proxy/JumpServer
  4. asdfasdf on Python API Using FASTAPI – UPDATE – PUT – PATCH – Part V
  5. Gurpreet Kochar on Python Scrapli AsyncIO Usage

Archives

  • September 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
Topic Request / Suggestion
Loading
© 2025 Network Automation | Powered by Minimalist Blog WordPress Theme
 

Loading Comments...