Introduction: If you’re familiar with Cisco networking and using the terminal to execute commands, you may have encountered situations where you need to copy files from one location to another. In this tutorial, we’ll be focusing on how to execute the copy command in a Cisco terminal using Python’s Netmiko library.To begin, let’s take a …
python_automation
Introduction: Before we start, let’s briefly discuss about what the send_config_set and send_config_from_file methods are? in Network Automation. These methods are part of the Netmiko library, which is a multi-vendor library that simplifies the process of working with network devices. The send_config_set method sends configuration commands to a device from a list, while the send_config_from_file …
Introduction: In this tutorial, we’ll be discussing the concepts of “read timeout” and “expect string” in netmiko send command method. If you’re familiar with network programming, you might have come across situations where a command takes longer than the default read timeout to execute. This can cause problems in receiving the response in the terminal. …
Introduction: Network automation has become a vital aspect of modern-day network engineering. Automating network configuration tasks helps to reduce manual configuration errors and saves time. Netmiko is an open-source library that makes network automation tasks easier. In this article, we will learn what Netmiko is and how to use it for day-to-day network automation tasks. …
Introduction: List comprehension is a useful Python programming technique that enables you to create a list with minimal lines of code, within a single line of comprehension. List comprehension is useful when you want to create a list by iterating over an iterable object, such as a string or a list, and applying an expression …
Introduction:Did you know that you can change the text color using Python script? In this tutorial, we’ll explore the different ways to change the terminal text color using Python script. There are multiple ways to change the terminal text color, but we’ll focus on one of the easiest and most common ways – using escape …
BLOGPOST#088 Adding Color to Your Terminal Output with Python: A Beginner’s Guide Read More »
Introduction: Sorting in Python is a common operation that is often needed when working with lists, dictionaries, and other data structures. In this tutorial, we’ll explore the sorted() function and sort() method in Python and how to use them for sorting data.The sorted() function in Python is used to return a new sorted list from …
Introduction: Python programming language offers a variety of useful built-in functions that help developers write efficient and concise code. One such function is enumerate(), which is used to iterate through a list or iterable and return the index and the element at that index in the form of a tuple.In this tutorial, we will explore …
BLOGPOST#084 # What is Enumerate in Python? Network Automation Tutorial Read More »
Introduction: Do you want to automate the process of Monitoring an interface using Python and receive notifications when the interface goes down? In this tutorial, we’ll see how to schedule Cisco interface parser function using Python Schedule Library.In the previous tutorial, we learned how to schedule a simple function that wrote the date and time …
BLOGPOST#083 Schedule Cisco Interface Parser Function using Python Schedule Library Read More »
Introduction: If you’re working on a Python project and need to maintain a log of command execution, then enabling logging in Python can be a great solution. In this tutorial, we’ll cover the steps to enable logging in Python, and how to redirect logs to different destinations using handlers and log levels. Logging levels in …
BLOGPOST#078 How to Enable Logging in Python? Network Automation Tutorial Read More »