This will be a shorter demo, using the same Topology from the previous lab, to demonstrate writing a script for the NetAuto Host to telnet to switches to backup the running configs and in this demo writing them to the local NetAuto Host. This will be a pretty quick lab as the steps for using … Continue reading Python3 Network Programming – Creating a script to Automate getting backup configs from multiple network devices using my previous Topology!
I will be automating the three switches in the above Topology with a single script! But first an important note before reading: This simple demo took all of an hour or so to lab up and post here, Network Automation with Python is SUCH a powerful skillset to have at your disposal, it is ridiculous … Continue reading Python3 Network Programming – Creating a very simple script that automates unlimited devices, nesting loops within loops, and labs to demo how absolutely powerful Network Automation is!
I have created a new Topology consisting of just a switch to demonstrate using "Loops" and "Concatenation" to demonstrate how to create a ton of VLANs, using the Loop to define the "Iterations" or number of times the function is run, and using Concatenation to allow "Integers" and "Strings" in Python to play well together. … Continue reading Python3 Network Programming – Using loops to script VLAN configuration, explanation of Python terminology, and lab demo to see it work!
I honestly hope this is a really boring post as its been a long day / weekend for me! I do hope this is a very boring demonstration of my work just working this blog, as I spent Friday into Saturday AM making most of it, and have mostly been taking advantage of the beautiful … Continue reading Python3 Network Programming – Demonstrating Python script execution, link to this GNS3 Topology shown, and other useful links for GNS3 setup! (Part 2/2)
Its not too deep into complex configurations, but turning it up a notch 🙂 I am still do some no-no's like setting the "enable secret" password in plain text in the code templates, which will be something I address down the road, I've decided to add a few devices and a few old friends from … Continue reading Python3 Network Programming – Configuring a larger, more complex Topology using Python 3! All code / scripts used, devices explained, and some troubleshooting! (Part 1/2)
This is history in the making - My first ever Python network configuration!!! As it appears, it is only logging into R1 via Telnet to add an interface lo0, then adding an IP Address of 22.214.171.124/32 and writing mem / exiting the router and it worked! I start with the Telnet Example that can be … Continue reading Python3 Network Programming – History in the making! My first ever Network Configuration using Python!!! 😀
I've deleted the entire contents of this post to re-write why you need to learn Automation using Python if you plan to get into Network Engineering! I want to say on thing first, do yourself a huge favor, click the link below and buy this course by David Bombal for $40 on Udemy to invest … Continue reading THE GRIND IS BACK – Starting with David Bombals Python for Network Engineers course, and some links to help prepare for the CCNA DevNet (and beyond)!
Above is a program I will walk through at the bottom of this shorter post, as this is not a robust review of all Libraries / Modules importing just yet. With that I will get right into it! What is a Library / Module in Python, and what is Built-in VS Imported? The functions / … Continue reading Python – Libraries / Modules / Functions, Built-in VS Imported, and a demo of importing libraries into a Py 3 program!
In continuing through Automating the Boring Stuff book, I thought posting some demonstrations of Loops and how to program them to avoid infinite program loops would be a critical concept to get documented to reflect on. First concept of Loops, using the "while" keyword rather than "if" statements While is a loop statement / expression … Continue reading Python – Configuring “While” and “For” Loop Types, “Continue” and “Break” statements, and range function reviewed!
Important Note - The above flow chart is not something I would imagine is a best practice for a program to keep returning back to the original Conditional "if" every time the program gets input, though I wanted to just throw up a general example. The above Flow Chart is a very small example of … Continue reading Python – Creating a flow chart using Boolean logic to produce a result, rather than running every line of Python Code!
I probably won't use all here, but I will use as many as possible, to get demo's for all these concepts out of the way - This is all thanks to one following Google Play App: https://play.google.com/store/apps/details?id=com.vrpmeone.LearnPython&hl=en_US If you are a beginner download this! I enjoy my "Automate the boring stuff for more expansive reading, … Continue reading Python – A quick look at some of these Data Sets in IDLE Console, and taking a first look at the Splice Operator : !
In the spirit of the SuperBowl tomorrow and Tax Season here in the US, I thought I'd follow up / end my review of Mathematical gotchas in Python coding, and how to make a practical application (at the very bottom) that I whipped up off the top of my head as mock Tax calculator but … Continue reading Python – Explanation of Mathematical Literals, Concatenation, and demonstrating with Pizza and Taxes!
This is a program from "Automate the boring stuff" that really turned on the light on a lot of concepts for I believe Python 3.x specific syntax, and just in general (stuff also in 2.7). I'll run through this quick as getting on the lab was not easy tonight, but I want to nail these … Continue reading Python – Demonstrating a simple Input/Output program in VSC, and how to use this info to practice until perfect!
Above is the if / elif / else in action, but there is a lot of vocab to know about along the way, along with some new operators and how they work! To jump right into some Terminology for these Conditionals! Being that programs are "Logically Malleable" this allows them to use what are called … Continue reading Python – Review of Conditionals “if” / “else” / “elif”, intro to new operators, and important vocab review of two terms!
I waited until I got into this course to grab a screen snip for an image, and this has been a LinkedIn favorite, so I'll go with this as the cover photo of the day 🙂 Input and Output and where its executed at what times Input and Output at its highest level is allowing … Continue reading Python – Input and Output functions, where a program can accept input to produce dynamic output based on input!