Tagged: automation


Using Python with Cisco Devices – User Input & Device Lists

In the last blog post, “FirstStep – 1.0 – Using Python to Connect to Cisco Device“, we defined a couple of Cisco devices within our script and used Netmiko to SSH into them to issue a “sh clock” command. In this post I want to simply add to the previous. This isn’t necessarily anything more than just an example of taking input from user and using that to determine devices we will connect to. You may find the general concept useful when building your own scripts to do trivial tasks or in creating some self service tools for others. The...


FirstStep – 1.0 – Using Python to Connect to Cisco Device

When I first started out wanting to learn Python I watched numerous online courses and videos related to basic python programming. Most just repeated all the same things and I struggled with understanding how things would apply to me in the networking world. I also struggled with the question, “What do you want to automate?”. This was oddly a major roadblock for me as I couldn’t somehow convince myself it was worth my time. Why would I spend days or weeks trying to write something to do a task I could knock out manually in an hour or so? Once...


First Steps: Python and Network Automation

I won’t get into any of the arguments about what constitutes “network automation.” For me and the purposes of some of the posts, it’s simply about learning Python and some of the libraries to help simplify information gathering and or device configuration. If you want to get started down this path, then your first course of action is to get familiar with “CiscoConfParse” and “Netmiko.” The first thing you have to deal with is connecting to your devices and issuing commands, that’s where Netmiko comes in. Then you will want to parse configurations to either extract details or to help...