Master Network Automation with Python for Network Engineers
4.5 (1,141 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
8,048 students enrolled

Master Network Automation with Python for Network Engineers

Real-Life Hands-On Python and Ansible Automation: Netmiko, Paramiko, Napalm, Telnet, Ansible, Cisco, Arista, Linux etc
4.5 (1,141 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
8,048 students enrolled
Last updated 6/2020
English [Auto]
Current price: $139.99 Original price: $199.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 18 hours on-demand video
  • 47 articles
  • 80 downloadable resources
  • 3 coding exercises
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • You will MASTER all the Python 3 key concepts starting from Scratch. No prior Python or programming knowledge is required
  • Learn how to automate the configuration of networking devices with Python 3 in a Multivendor Environment
  • Learn network programmability with Python, GNS3 and Ansible
  • Learn and apply advanced Python concepts like Multiprocessing and Multithreading in Network Automation
  • See real-world examples of automation scripts with Python for Cisco IOS, Arista EOS or Linux
  • Understand how to use Telnet and SSH with Python for network automation
  • Learn how to use and improve Paramiko and Netmiko for automation of common administration tasks with Python
  • Automate and troubleshoot network configurations with Ansible
  • You will be able to use Ansible, manage Ansible Inventory files, Tasks, Modules for Linux and networking devices, Playbooks, Vaults and YAML Files
  • Use NAPALM Python library in a Multivendor Environment
  • Learn how to configure networking devices with Python using a Serial Console Connection
  • Improve the existing Python modules and create your own modules for network automation
  • You will ultimately gain real-life skills for a good Network of DevOps Engineer
  • You will learn in-depth general Python Programming
Course content
Expand all 222 lectures 19:07:56
+ Course Introduction
6 lectures 15:13
IMPORTANT. Please read!
IMPORTANT FOR BEGINNERS: How to Learn Python Programming
How to Get Better and Faster Support? JOIN OUR ONLINE COMMUNITY!
Getting Course Resources
Quiz for Basic Python Programming
10 questions
+ Setup the Environment: Python, PyCharm, GNS3, Cisco IOU and IOS
15 lectures 55:13
Download and Install the Required Software
Installing Python 3 on Windows
Installing Python 3 on Linux and Mac
Installing PyCharm IDE on Windows
Installing PyCharm IDE on Linux and Mac
Running Python Scripts using PyCharm
Running Python Scripts using the Command Line
Where do I get Cisco IOS, Juniper vSRX or Arista vEOS Images
Just a few Words about Windows Installation
Installing GNS3 on Windows 10
Running Cisco IOU Images in GNS3 on Windows 10
Connecting to Cisco IOU Images Running in GNS3 from Window 10
Installing GNS3 and Running Cisco IOU on Linux
What if it still doesn't work?
+ Working with Text Files in Python
18 lectures 56:17
Opening and Reading Files
Reading Files: Tell, Seek and Cursors
The With Keyword
Opening and Reading Text Files using seek() and read()
1 question
Coding Exercise Solution
Reading Files into a List
Writing to Text Files
Reading Files into a List
1 question
Coding Exercise Solution
Writing Text Files
1 question
Coding Exercise Solution
Coding Section - Working with Text Files
Quiz for File Processing
5 questions
Reading CSV Files
Writing CSV Files
Using CSV Custom Delimiters
Using CSV Dialects
Coding Section - Working with CSV Files
Assignment: File Processing
Assignment Answer 1: File Processing
Assignment Answer 2 (CSV Module): File Processing
+ Hands-On Challenges - Working With Files
2 lectures 03:01
Hands-On Challenges - Working With Text Files
Hands-On Challenges - Working With CSV Files
+ Data Serialization and Deserialization in Python (Pickle and JSON)
12 lectures 31:05
Intro to Data Serialization
Pickle Data Serialization and Deserialization
Coding - Pickle
JSON Data Serialization
JSON Data Deserialization
Coding - JSON
Assignment: JSON and Requests/REST API
Assignment Answer: JSON and Requests/REST API
Coding Challenge: Simplify Serialization
Coding Challenge Solution: Simplify Serialization
Coding Challenge - JSON and Requests/REST API
Coding Challenge Solution - JSON and Requests/REST API
Test Your Knowledge: Data Serialization (JSON & Pickle)
7 questions
+ Network Automation with Paramiko (SSH)
20 lectures 01:49:27
The Lab Environment
Intro to Paramiko
Extra: Enable SSH on Cisco Devices
Connecting to Networking Devices using Paramiko
Using **kwargs and Arguments Unpacking
Running Commands on Cisco Devices
Securing the Passwords Using getpass
Running Commands on Linux - Method 1
Running Commands on Linux as a Non-privileged User - Method 2
Running Commands on Linux as root - Method 2
Paramiko Refactoring. Creating myparamiko Module
Running Commands Using myparamiko on Cisco IOS
Importing myparamiko Module
Backup the Configuration of a Single Cisco Device
Automating the Backup Configuration of Multiple Cisco Devices
Assignment: Interactive User Creation on Linux with Paramiko
Assignment Answer: Interactive User Creation on Linux with Paramiko
Quiz for Paramiko
4 questions
Secure Copying Files with SCP and Paramiko from Python
+ Network Automation with Netmiko (SSH)
16 lectures 01:41:18
The Lab Environment
Intro to Netmiko. Netmiko vs. Paramiko
Connecting and Running a Command on a Networking Devices
Netmiko Prompt. Enable & Global Config Mode
Configuring a Networking Device from a File
Configuring Multiple Networking Devices from Multiple Files
Automating the Backup of Multiple Cisco Devices Using Netmiko
Implementing Multithreading (Python and Netmiko
Netmiko and Linux
Troubleshooting Netmiko
Preparing the Router for SCP
Copy files to Networking Devices using SCP and Netmiko
Quiz for Netmiko
5 questions
Assignment: Check Interface Status and Enable it if it's Disabled
Assignment Answer: Check Interface Status and Enable it if it's Disabled
+ [Extra] - Running Arista vEOS and Juniper vSRX in GNS3
6 lectures 25:32
How to Run Arista vEOS in GNS3
How to Run Juniper vSRX in GNS3
Juniper vSRX Basic Configuration
Arista vEOS Basic Configuration
Configure Arista EOS Switches
  • No prior Python knowledge is required. There is a general Python Programming section included.
  • Basic Knowledge of Networking Concepts (TCP/IP Stack, Cisco CCENT or CCNA Level)
  • A Linux, Mac or Windows Machine with an Internet Connection and at least 4GB of RAM
  • No paid software required. Only free software will be used: Python3, PyCharm, GNS3, VirtualBox, Linux, etc
  • Cisco IOS Images should be acquired by the student (from Cisco's official website - contract required) to run into GNS3 or practice all the concepts on real Cisco devices
  • Basic Knowledge of GNS3 and how to run Cisco Images, although I'll provide the necessary setup information inside the course

***Fully updated for 2020*** This Network Automation with Python course also covers every major General Python Programming topic and is a perfect match for both beginners and experienced developers!

Course Updates:

  • Update: June, 2020 - NEW Section: Async IO in Python (async/await, aiohttp, aiofiles, asyncssh)

  • Update: May, 2020 - Network Automation with Telnet re-recorded entirely

  • Update: April, 2020 - Network Automation with Netmiko (SSH) re-recorded entirely

  • Update: March, 2020 - Network Automation with Paramiko (SSH) re-recorded entirely

  • Update: April and May, 2020 - Tens of NEW Coding Challenges with Solutions for real-world network automation tasks

  • Update: October, 2019 - NEW Section: Data Serialization and Deserialization in Python (Pickle, JSON and REST APIs)

  • Update: June, 2019 - NEW Sections on General Python Programming: Strings, Lists, Tuples, Sets, Dictionaries, Functions, Flow Control, Working with Files and many more

Welcome to this Python hands-on course for learning Network Automation and Programmability with Python in a Cisco or Multivendor Environment, taught by a DevOps Engineer and Professional Trainer.

Boost your Python Network Programming Skills by learning one of the hottest topic in the Networking Industry in 2020 and become one of the best Network Engineer!

This course is based on Python 3 and doesn't require prior Python Programming knowledge. Everything is included within the course and you'll also learn in-depth general Python Programming.

Just starting out with Python Programming, Network Automation or Network Programming using Python and have the desire to learn the future of Network Programmability in a practical way? Perfect. Then, this course is the right one for you. You'll boost your career with hands-on Network Programming Skills!

Or maybe you've already tried to learn Network Automation with Python by yourself and now you want to put all pieces together? I'm here to help you, this course has everything you need to know to automate network configurations with Python.

Most examples in this course are for Cisco IOS, but they can also be used in a multivendor environment (Juniper, Arista, HP, Linux) with no or little changes. This is a vendor neutral course and teaches you Python from scratch.

You'll have life time access and you can return and look for a specific Python library or example anytime you want. And let's not forget, if you don't like the course, you are covered by a 30 day money back guarantee, full refund, no questions asked!

You'll have access to all Slides and Python Scripts (ready to be used) from this course.


★★★★★ "This course was much better than I expected. It's high quality Python Programming in the area of network automation and the instructor is really experienced. Thank you!" by Joseph Heinrich

★★★★★ "Wow! This is an amazing course on network automation and python. It goes directly to the point. Netmiko section is the best. I'm just waiting to test this at my work. Thank you!" by D. Schmidt

★★★★★ "This is without doubts the best course on Network Automation with Python out there!" by Muhammad Ali

There are many courses on Python Programming and Network Automation or Network Programming with Python. Why should you learn from me?

  • I'm a Practitioner and an Enthusiast. Welcome to the real world! I have almost 20 years experience as a Network Engineer and Programmer. Since I've started with Networking, Linux Systems and Programming, I've been using or studying the technology almost on a daily basis. I also have a bunch of Cisco certifications: CCNP Routing & Switching, CCNP Security, CCNP Service Provider, Cisco Certified Instructor etc

  • I'm an Educator and I know how to make a Syllabus. For the last 10 years I've trained thousands of people on Linux, Networking, Security, Ethical Hacking or Programming.

  • You'll learn not only Network Automation but also general Python Programming. After this course you'll MASTER all the Python 3 key concepts.

The topics covered in this Python Network Programming course are:

  • Working with Files in Python (text, csv, json, yaml)

  • Data Serialization and Deserialization (Pickle and JSON)

  • Bytes and String Objects in Python 3. Encoding, Decoding

  • Advanced Python Concepts: Multiprocessing and Multithreading with real-life examples

  • The standard Telnet Python Library. How to create your own Class based on telnetlib to simply the configuration automation

  • Paramiko Library. How to use SSH to automate the configuration of Cisco, Linux or other Devices

  • How to create your own Python module based on Paramiko to simplify the development work

  • Netmiko. Automate the configuration of Cisco, Arista and Linux using Netmiko

  • Netmiko best-practices and real-life examples for backup configuration of multiple devices

  • Building Concurrent Applications using Async IO (async/await, aiohttp, aiofiles, asyncssh)

  • The NAPALM Library - Network Automation and Programmability Abstraction Layer with Multivendor support

  • How to use NAPALM to retrieve information about devices and protocols and manage the devices configuration

  • What is Ansible and what are its components: Modules, Tasks, Plays, Playbooks etc

  • How to execute Ad-Hoc commands against networking devices and servers using Ansible

  • Ansible modules: command, shell, raw, copy, file, apt, service, ios_command, ios_config etc

  • How to use create and run Ansible Playbooks against Networking Devices (Cisco, Arista etc) and Linux Servers

  • Ansible Vault

  • Automation of networking devices configuration through a serial connections. Pyserial Python module

  • Improvement of pyserial module

  • How to setup the Python Development Environment: PyCharm, GNS3, Cisco IOS, Arista vEOS, Juniper vSRX

  • Arista vEOS installation in GNS3 and basic configuration

  • Juniper vSRX installation in GNS3 and basic configuration

The topics covered in the General Python Programming sections are:

  • Variables

  • Operators

  • Built-in Types

  • Strings in Python

  • Lists in Python

  • Tuples in Python

  • Sets and Frozensets in Python

  • Dictionaries in Python

  • Flow Control

  • User-defined Functions

  • Errors and Exception Handling

  • OOP (Object Oriented Programming)

Every topic includes many live examples in Python. This course will show you the best practices for developing production-ready Python Networking Automation Scripts for Cisco and Multivendor Environments.

Who this course is for:
  • Network Engineers
  • Network Architects
  • SysAdmins
  • DevOps Engineers
  • Cisco Certified Professionals: CCNA, CCNP, CCIE
  • Anyone interested in Network Automation and Network Programmability with Python