Ansible-syllabus
Network Evolution Blog
by networkevolution
2M ago
 ..read more
Visit website
BLOGPOST#160 What is PyATS? and How it is used for day-to-day network automation and monitoring tasks
Network Evolution Blog
by NetworkEvoultion
11M ago
Introduction: Welcome to the Python Learning Series for Network Engineers. In this series, we will explore various ideas and tools that can be used for day-to-day network automation and monitoring tasks. The first tool we will be discussing is PyATS, which stands for Python Automated Test System, a framework introduced by Cisco. PyATS is an end-to-end DevOps automation ecosystem, which introduces DevOps culture into network automation, such as introducing a CI/CD pipeline into network configuration management. Using this framework, you can have a centralized repository for maintaining config ..read more
Visit website
BLOGPOST#159 Running Python Scripts inside Cisco NXOS Bash
Network Evolution Blog
by NetworkEvoultion
11M ago
Introduction: In this blog post, we will discuss how to run Python scripts within Nexus OS.Python scripting within Cisco Nexus can greatly improve network management and automation. Nexus OS comes with a Python interpreter installed by default. To access Python on Nexus OS, type “python” in the terminal. You will see two versions of Python available: Python 2 and Python 3. It is recommended to use Python 3. To view the default libraries available, execute “help(modules)” on the terminal. By default, Nexus OS has Cisco CLI, Cisco Nexus OS and NX OS Utils, and many more libraries. In the previ ..read more
Visit website
#158 Initiating a Bash Connection to Nexus Devices and Executing Linux Commands via Nexus API
Network Evolution Blog
by NetworkEvoultion
11M ago
Introduction: Hello everyone! In this blog, we will learn how to do Nexus API automation using Python. Specifically, we will see how to initiate a bash connection to a Nexus device using a nexus API and execute Linux commands on the Nexus device. If you’re working with Nexus OS, you may find it helpful to use the Bash shell to execute commands and scripts. In this article, we’ll cover some basic commands and features of Bash on Nexus OS, including memory information, switching to root user, getting interface details, and more. First, we need to enable Bash, which we can verify by using the ..read more
Visit website
BLOGPOST#157 Cisco Nexus API Automation using Python: Send CLI Conf Commands with JSON
Network Evolution Blog
by NetworkEvoultion
11M ago
Introduction: Welcome to the Python Learning Series for Network Engineers! In this blog post, we will cover how to perform Nexus API automation using Python. Specifically, we will cover how to send configuration commands using Nexus API message format, JSON, and command type cli conf. We will also discuss the error actions supported and how to handle errors. Cisco’s native JSON format is more capable compared to the standard protocol JSON RPC when managing codebases. JSON RPC only allows sending one command at a time, whereas Cisco’s native JSON method allows multiple commands to be sent as ..read more
Visit website
BLOGPOST#156 Nexus API CLI Show Output Parsing Example: A Step-by-Step Guide to Parsing CLI command output using regex
Network Evolution Blog
by NetworkEvoultion
11M ago
Introduction: Welcome to the Python Learning series for Network Engineers! In this post, we will focus on learning how to do Nexus API automation using Python. Specifically, we will see how to manually parse Nexus API. In the previous video, we learned how to parse a “cli show” command in CLI show and get data in JSON format. For this demonstration, we will use Cisco ‘sandbox-nxos-1’, which is accessible from the internet for everyone. Command Execution: First, we will try executing “cli show command type” and get the response in JSON format. If we change this to “cli show ASCII,” the entire ..read more
Visit website
BLOGPOST#155 Nexus API Automation using Python: Parsing JSON-formatted Show Command Outputs for Effective Network Management
Network Evolution Blog
by NetworkEvoultion
11M ago
Introduction: In this blog post, we will discuss how to parse the output of a show command using Nexus API message format JSON. In our previous video, we learned how to parse the show command output using JSON RPC, which is a standard protocol for remote procedure calls. However, in this post, we will look into Cisco’s native method, which has more capabilities and provides better command handling and responses. First, let’s understand the commands that this API supports. It supports “cli_show,” “cli_show array,” “cli_ascii,” and “cli_conf.” If you want to send multiple commands, you can sep ..read more
Visit website
BLOG POST#152 Cisco Nexus API Automation using Python
Network Evolution Blog
by NetworkEvoultion
11M ago
Introduction: Python is a very popular language for Network Engineers, and it is used for automation, scripting, and network programming. Python also has a lot of modules available that can be used for networking, like Netmiko, Nornir, and Napalm. In this series, we will discuss how to use Python to automate Nexus API. In the previous video, we have seen how to install Nexus 9000 V into eve-ng, enable API, and write a basic Python script to connect to the device and get the “show hardware” output in JSON format. In this video, we will discuss JSON, RPC, command types, and error actions suppo ..read more
Visit website
BLOGPOST#151 Nexus 9000 V Image Installation in eve-ng: A Comprehensive Guide to Enabling API in NXOS and Python Integration
Network Evolution Blog
by NetworkEvoultion
11M ago
Introduction: Python is one of the most versatile programming languages that is used widely by developers and network engineers. It is easy to learn and implement, which makes it a popular choice among beginners. This article focuses on installing the Nexus 9000 V image into an eve.ng environment and how to enable API and initiate API connection from Python. Installing Nexus 9000 V image into an eve.ng environment: To install Nexus 9000 v image into eve.ng environment, we need to download the Nexus qcow2 image from the official site. After downloading the image, we need to verify its MD5 usi ..read more
Visit website
BLOGPOST#150 Cisco API Save Config using REST CONF: Learn How to Use RestConf Protocol to Save Your Cisco Device Configurations
Network Evolution Blog
by NetworkEvoultion
11M ago
Introduction: Cisco is one of the most popular networking companies in the world. If you work in the IT field, it is likely that you have encountered Cisco routers and switches. Cisco devices are managed through a Command Line Interface (CLI), which allows network engineers to configure them using a series of commands. Saving the configuration of a Cisco device is crucial because it allows engineers to restore the device to a previous state in case of a failure or to replicate the same configuration on another device. In this tutorial, we will show you how to save the configuration of a Cisc ..read more
Visit website

Follow Network Evolution Blog on FeedSpot

Continue with Google
Continue with Apple
OR