Python for Network Engineers: Netmiko, NAPALM, pyntc, Telnet

Python for Network Engineers: Netmiko, NAPALM, pyntc, Telnet

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 14 Hours | 3.93 GB

Program networks using Python. Learn network automation and programmability with this practical course (Cisco networks)

Learn Network Programmability and Network Automation using GNS3 and Python.

Want to program networks using Python, but not sure where to start? Well, this course will show you how you can start programming Cisco networks within 20 minutes.

This course was created for network engineers. There are too many other Python courses out there that try to make network engineers software developers. Instead of teaching network automation, they teach you Python theory. This course is different.

This course is practical. I won’t talk about programming in abstract terms and make you wait before you can start automating networks. I will show you how you can quickly and easily start network programming by using GNS3, Cisco IOS and Python.

You will see demonstrations of the configuration of both Cisco routers and switches in GNS3. For example, how to configure multiple VLANs on a multiple switches, or how to configure OSPF on a router and more.

This course shows you practical examples of using Python to programmatically configure Cisco network devices rather then just talking about it.

The days of configuring Cisco networks only with the command line interface (CLI) are drawing to a close. You need to add network programmability using Python and APIs to your skill set.

Learn how to automate networks using:

– Telnet

– SSH

– Paramiko

– Netmiko

– NAPALM

– pyntc

Tools such as NAPALM and pyntc make it easy to configure and interact with network devices using an API such as NETCONF or using SSH. Don’t reinvent the wheel. Use the tools available to you to quickly and easily automate your networks.

What you’ll learn

  • Learn network programmability with GNS3 and Python
  • Learn how to automate the configuration of network devices with Python
  • Learn how to leverage NAPALM for network automation
  • Learn how to use pyntc for easy network programmability
  • Use Netmiko for SSH connections to routers and switches
  • Quick start guide using Telnet and SSH – get started in 20 minutes!
Table of Contents

Introduction
1 Introduction
2 Good news!
3 Udemy Tips and Tricks

GNS3 Setup
4 GNS 2.2 GUI Install
5 GNS3 2.2 VM Install
6 GNS3 IOS images
7 CML VIRL 2.0 Install Part 1
8 CML VIRL 2.0 Install Part 2
9 EVE NG Installation
10 EVE-NG Cisco Images
11 Free CML

Quick Start Guide to Network Automation
12 GNS3 Installation and Setup
13 Quick Start 1 Python and Telnet Configure Cisco Router
14 Quick Start 2 Python and Telnet Configure Switch VLANs
15 Quick Start 3 Remove Passwords and improve scripts (Telnet)
16 Quick Start 4 Create switch VLANs using loops (Telnet)
17 Quick Start 5 Multiple switches, multiple VLANs (Telnet)
18 Quick Start 6 In-band management network
19 Quick start 7 PEP Style Guide
20 Quick Start 8 Opening Files and spacing importance!
21 Quick Start 9 Backup switch configurations
22 Quick Start 10 Jupter IDE
23 Quick Start 11 Paramiko, SSH, Python and Cisco devices
24 Quick Start 12 Netmiko Part 1
25 Quick Start 13 Netmiko Part 2
26 Quick Start 14 Netmiko Part 3
27 Quick Start 15 Netmiko Part 4
28 Quick Start 16 Netmiko Part 5
29 Quick Start 17 Netmiko Part 6

NAPALM (P75)
30 NAPALM Introduction (P75 12)
31 Install NAPALM (P68 13)
32 NAPALM connect to switch 1 (P68 14)
33 JSON and more commands (P68 16)
34 Mac address table, ARP cache (P68 17)

NAPALM and BGP (P75)
35 Use NAPALM to retrieve BGP neighbor information Part 1 (P75 1)
36 Use NAPALM to retrieve BGP neighbor information Part 2 (P75 2)
37 Use NAPALM to retrieve BGP neighbor information Part 3 (P75 3)
38 NAPALM Multiple BGP neighbors (P75 4)
39 NAPALM and bigger BGP Network Part 1 (P75 5)
40 NAPALM and bigger BGP network Part 2 (P75 5b)

Use NAPALM for device configuration audit and changes (P75)
41 Use NAPALM to configure Access lists (P75 6)
42 Check if ACL already exists and add if missing (P75 7)
43 Use NAPALM for auditing device configs (P75 8)
44 Use NAPALM to add multiple config files (P75 9)
45 NAPALM Multiple config files, multiple devices (P75 10)
46 Want more

pyntc (P69)
47 pyntc Introduction (P69 1 2)
48 pyntc Installation and get device version information (P69 3 4)
49 Use pyntc to configure a Cisco IOS device (P69 5)
50 Use pyntc to retrieve a switch running-config (P69 6)
51 Use pyntc and github to save a switch running config to a file (P69 7 8)
52 Backup a switch config with 5 lines of code! (P69 9)
53 Want more

Iteration Examples Netmiko scripts (P77)
54 Netmiko Iteration Script Overview
55 Netmiko Iteration (Script 1) Basic Script
56 Netmiko Iteration (Script 2) Open a file of commands
57 Netmiko Iteration (Script 3) Configure multiple devices using a file of devices
58 Netmiko Iteration (Script 4) Remove passwords from script
59 Netmiko Iteration (Script 5) Except (Error) Handling
60 Netmiko Iteration (Script 6) Determine device types and run specific device typ
61 Netmiko Iteration (Script 7) Iterate device type script

Netmiko Scaling
62 Encrypted Password File
63 Netmiko Sequential Part 1
64 Netmiko Sequential Part 2
65 Netmiko Multithreading
66 Netmiko Thread Pools

Python Theory (P61)
67 Theory topics – very short (P62 14 15)
68 Keep learning (P61 26)
69 and 3 setup (P61 27)
70 and 3 examples (P61 28)
71 Basic Hello World Scripts (P61 29 30)

Python Theory Objects, Variables and Data Types
72 Python Objects (P61 1)
73 Python Objects Part 2 (P61 2)
74 Python Variables (P61 3)
75 Python Variables Part 2 (P61 4 5)
76 Python Variables Part 3 (P61 6)
77 Python Variables Part 4 (P61 7 8)
78 Data Types (P61 9)
79 Data Type testing (P61 10)

Python Theory – Numbers (P61)
80 Introduction (P61 19)
81 Numeric Types (P61 11)
82 Int and Float (P61 12)
83 Operators (P61 14)
84 Operators Part 2 (P61 15 16)
85 Operators (P61 17 18)
86 bin hex oct (P61 20)
87 binary decimal octal number examples (P62 1)
88 int calculation (P62 2)
89 Floats (P62 3)

Python Theory – Strings
90 strings (P62 4)
91 strings (GT 06-8-17 7 8)
92 convert to a string using str() (P62 10)
93 escape special character meaning with (P62 12)
94 strings (P62 9)
95 string concatenation with + (P62 13)
96 multiplication operator (P62 16)
97 string offsets – extract characters with [] (P62 17)
98 string slice slicing (P62 string)
99 string slice slicing 2 (P62 1string)
100 string slice slicing 3 (P62 2string)
101 lower upper (P73 11)
102 startswith endswith (P73 12)
103 strip lstrip rstrip (P73 13)
104 isdigit (P73 14)
105 count (P73 15)
106 Old Style text using % (P66 24)
107 Strings New way to do text using {} (P73 16)
108 dir (P73 9)

Get version information from a switch (P65)
109 Get show version from switch (P65 14)
110 Telnet and string offset (P65 16)
111 Show version using len (P65 17)
112 Split 1 (P65 18 21)
113 Split 2 (P73 18)
114 List and join (P73 17)
115 List and len – use Interface example (P73 25)
116 Index introduction(P66 1)
117 Real switch get version using index and slice (P66 2 3)
118 Python3 telnet to switch (P66 4)
119 Count (P66 6)
120 Use find to get information from a real switch (P66 10)
121 Python3 Telnet versus Python2 – Find version of software (P66 11)
122 find not found (P66 12)
123 String methods – upper (P66 13)
124 String methods – startswith and endswith (P66 14)
125 String methods – strip (P66 15)
126 String methods – split demo (P66 16)
127 String methods – Join (P66 17 18)
128 String methods – is it in string (P66 19)
129 String concatenation (P66 20)
130 Capitalize, upper, lower, swap (P66 23)

Python Theory Comparisons (P73)
131 Boolean comparisons
132 Boolean Truth Table
133 Boolean Truth Table Demo
134 false conditions

Python Theory Lists
135 Lists versus tuples
136 lists
137 create a list using split
138 lists in lists
139 lists versus tuples – documentation
140 list merge and extend
141 List methods
142 lists insert and delete
143 list pop index and in
144 reverse sort
145 len copy list

Tuples (P70)
146 tuples
147 Tuples and Sequences v2

Python Theory Code Structures (P72)
148 Comments in Code (P72 2)
149 Line Continuation (P72 3)

Python Theory Part 73 – if else elseif logic
150 if logic
151 physical router demonstration
152 elseif

Python Theory Part 73 – While Loops
153 while loop
154 infinite while loop with break
155 infinite while loop with continue
156 while loop with a list
157 while loop with else

Python Theory Part 73 – For Loops
158 for loops
159 for loop with dictionary
160 for loop with if and lists

Python Theory Ranges
161 Ranges 1
162 Ranges 2

Python Theory Dictionaries (P70)
163 Dictionary Theory (P70 17)
164 Dictionary Demo (P70 18)
165 Combine Dictionaries (P70 19)
166 Dictionaries Clear and check (P70 20)
167 Dictionaries Add values (P70 21)

Python Theory Functions
168 Functions Intro
169 Functions Intro Part 2
170 Functions Part 3
171 Functions – Netmiko and Router
172 Functions – Netmiko and Router
173 Function 6 – Named keyword arguments (Netmiko)

Network Automation Appliance
174 GNS3 Automation Container import and testing Part 1
175 GNS3 Automation Container import and testing Part 2

Homepage