Python 2 Network Programming – Build 12 Multi-Vendor Tools

Python 2 Network Programming – Build 12 Multi-Vendor Tools

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 10 Hours | 2.44 GB

Automate Network Tasks Fast and Easy Using The Information, Tools, Libraries and Python Scripts Included In This Course!

This course covers many networking vendors and network operating systems:

  • Cisco IOS
  • Cisco IOS XE
  • Cisco IOS XR
  • Juniper JunOS
  • Juniper (Netscreen) ScreenOS
  • Arista EOS
  • HP ProCurve OS
  • Avaya ERS OS

This Python Network Programming course is aimed at network professionals having little or no experience in network automation and a great desire to use Python and a lot of very smart Python modules to program their network devices and tasks. This hands-on Python Network Programming training walks you through lots of scenarios, networking vendors and useful tools to help you become the network engineer

Well, let me tell you what’s this course all about:

Learning to use amazing Python libraries and tools to manage network devices easily and without writing too much code.

Connecting remotely to network devices and read/extract/display/store command output, using interactive Python scripts, on: Cisco IOS, Cisco IOS XE, Cisco IOS XR, Juniper JunOS, Juniper (Netscreen) ScreenOS, Arista EOS, HP ProCurve OS and Avaya ERS OS.

Configuring (one or more) network devices remotely, using interactive Python scripts, either by specifying the commands at the prompt OR asking the script to read them from one or more text files, on: Cisco IOS, Cisco IOS XE, Cisco IOS XR, Juniper JunOS, Juniper (Netscreen) ScreenOS, Arista EOS, HP ProCurve OS and Avaya ERS OS.

Executing configuration commands on multiple network devices from multiple vendors simultaneously.

Working with a device inventory in XML/JSON/CSV format and network metadata, while easily counting your registered network devices, getting device information by IP address, searching and listing device information, checking IP reachability and SSH availability and much more, using a simple but efficient tool in the Python interpreter or Linux shell.

Managing network device credentials in a centralized, encrypted file.

Managing access lists and converting access lists from one format to another using a very efficient tool (Example: Converting a Cisco IOS ACL to a Juniper JunOS ACL with a single command).

Automatically executing commands upon device login, right from the Linux shell.

Getting device interface information fast, right from the Linux shell and saving the information to local storage.

Working with Python and SNMP and easily performing SNMP GET, SET, SET multiple OIDs, WALK, GET-NEXT, GET-BULK operations on Cisco, Juniper, Arista and HP network devices, using only a few lines of code.

Parsing locally stored Cisco, Juniper, Arista and HP configuration files and extracting various pieces of information, using a very straightforward Python module.

Managing device configuration changes using a script that regularly saves the configuration files from your network devices to the local system, compares them with previous file versions, builds a report with all the differences and either stores the report locally or emails the report to the network administrator’s email address(es).

Performing various small network tests and operations using the Python interpreter.

What you’ll learn

  • Use various Python tools/modules to handle network devices more easily and without writing a lot of Python code
  • Use various Python tools/modules to handle network devices from several networking vendors: Cisco (IOS, IOS XE, IOS XR), Juniper, Arista, HP, Avaya and Netscreen.
  • Parse router/switch configuration files, extract needed information and use it for auditing the network
  • Easily manage access lists (ACLs) using Python tools, then convert the access lists between various vendor formats
  • Execute CLI commands on several network devices simultaneously, even on multiple devices from various vendors
  • Automatically execute CLI commands on network devices upon login
  • Easily perform SNMP GET/SET/WALK/GETNEXT/GETBULK and SET MULTIPLE OIDs operations on various networking vendors
  • Backup network configuration files and configure an email notification system to receive alerts when configuration changes occur
  • Use various other CLI tools and utilities to perform small network tasks
  • Emulate several network operating systems in a virtualized environment
  • Study the CLI and configuration commands on routers/switches from various network vendors
  • Discover some very useful Python network tools every network programmer should use on a daily basis to automate or simplify some network tasks
  • Download and use the pre-configured Ubuntu 15.10 VM however you like
  • Download and use any materials and code samples however you like
Table of Contents

Getting started with this course
1 Quick Insight To Get You Warmed Up
2 Some Administrative Details About This Course
3 Lets Connect
4 How To Receive Maximum Results From This Course
5 How To Learn Python Basics Fast

Course Resources and Troubleshooting Guides
6 Describing The Working Environment
7 Asking For Help
8 Download The Resources Using This Guide
9 Creating A VirtualBox Host-Only Adapter
10 CreatingImporting Virtual Machines Into VirtualBox
11 Keep This In Mind When Configuring The VMs
12 Establishing IP Connectivity (Host-Only)
13 Establishing IP Connectivity (Local LAN)
14 Troubleshooting Advice
15 Troubleshooting Checklist

Introducing The Tools For This Course
16 Getting To Know Tool 1
17 Getting To Know Tool 2
18 Getting To Know Tool 3
19 Getting To Know Tool 4
20 Getting To Know Tool 5

Working With Device Metadata – Network Inventory
21 Preparing The Network Device Metadata Files
22 Using The netdev Command
23 Changing The Default Metadata File Format
24 Section Summary Command Cheat Sheet
25 The settings.py File
26 Counting Network Devices
27 Getting Device Info By IP Address
28 Quickly Checking The Device Type
29 Quickly Checking IP Reachability And SSH
30 Searching And Listing All Devices
31 Matching And Selecting Devices
32 Listing Devices By Type

User Credentials Management
33 Introducing The Tacacsrc Class And The .tacacsrc File
34 Creating And Managing The .tacacsrc File
35 Are The User Credentials Securely Stored
36 Testing The .tacacsrc File
37 Section Summary Command Cheat Sheet

Analyzing The Syntax For Remote Command Execution
38 Introducing The Syntax For Command Execution 1
39 Introducing The Syntax For Command Execution 2
40 Optional Class Parameters
41 Testing The Command Execution Classes
42 Using The Classes And Avoiding Errors

Cisco Network Programming (IOS)
43 Getting The Device Ready
44 Reading Command Output – Script – Running The Code 3
45 Reading Command Output – Script – Running The Code 4
46 Reading Command Output – Download The Script
47 Configuring Devices Easily – Python Interpreter
48 Configuring Devices – Script – Explaining The Code
49 Configuring Devices – Script – Running The Code 1
50 Configuring Devices – Script – Running The Code 2
51 Configuring Devices – Download The Script
52 Troubleshooting Guidelines
53 Section Summary Command Cheat Sheet
54 Configuring IP, Remote Access And SNMP
55 Reading Command Output – Python Interpreter
56 Quick Note About Command Execution Using Tool 1
57 Before Getting To Work – Ubuntu VM File Structure
58 Reading Command Output – Script – Explaining The Code 1
59 Reading Command Output – Script – Explaining The Code 2
60 Reading Command Output – Script – Running The Code 1
61 Reading Command Output – Script – Running The Code 2

Juniper Network Programming (JunOS)
62 Getting The Device Ready
63 Section Summary Command Cheat Sheet
64 Configuring IP, Remote Access And SNMP
65 Reading Command Output – Script – Explaining The Code
66 Reading Command Output – Script – Running The Code 1
67 Reading Command Output – Script – Running The Code 2
68 Reading Command Output – Download The Script
69 Configuring Devices – Script – Explaining The Code
70 Configuring Devices – Script – Analyzing Possible Errors
71 Configuring Devices – Download The Script

Arista Network Programming (vEOS)
72 Getting The Device Ready
73 Configuring IP, Remote Access And SNMP
74 Reading Command Output – Script – Explaining The Code
75 Reading Command Output – Script – Running The Code
76 Reading Command Output – Download The Script
77 Configuring Devices – Script – Explaining The Code
78 Configuring Devices – Script – Running The Code
79 Configuring Devices – Download The Script
80 Section Summary Command Cheat Sheet

HP Network Programming (ProCurve OS)
81 Getting The Device Ready
82 Configuring IP, Remote Access And SNMP
83 Reading Command Output – Script – Explaining The Code
84 Reading Command Output – Script – Running The Code
85 Reading Command Output – Download The Script
86 Configuring Devices – Script – Explaining The Code
87 Configuring Devices – Script – Running The Code
88 Configuring Devices – Download The Script
89 Section Summary Command Cheat Sheet

Avaya Network Programming (ERS OS)
90 Getting The Device Ready
91 Avaya ERS Operations – Download The Script
92 Section Summary Command Cheat Sheet
93 Configuring IP, Remote Access And SNMP
94 Introducing My Own Avaya ERS Python Tool
95 Download My Tool And Use It For Free
96 Reading Avaya ERS Command Output
97 Sending Config Commands To Avaya ERS
98 Configuring Multiple Avaya ERS Switches Concurrently
99 Troubleshooting The AvayaERSConnect Module
100 Avaya ERS Operations – Using An Interactive Script

Bonus 1 Cisco Network Programming (IOS XE)
101 Getting The Device Ready
102 Configuring IP, Remote Access And SNMP
103 Reading Command Output – Script – Running The Code
104 Reading Command Output – Download The Script
105 Configuring Devices – Script – Running The Code
106 Configuring Devices – Download The Script
107 Section Summary Command Cheat Sheet

Bonus 2 Cisco Network Programming (IOS XR)
108 Getting The Device Ready
109 Configuring IP, Remote Access And SNMP
110 Reading Command Output – Script – Running The Code
111 Reading Command Output – Download The Script
112 Configuring Devices – Script – Running The Code
113 Configuring Devices – Download The Script
114 Section Summary Command Cheat Sheet

Bonus 3 Juniper Network Programming (ScreenOS)
115 Getting The Device Ready
116 Configuring IP, Remote Access And SNMP
117 Reading Command Output – Script – Running The Code
118 Reading Command Output – Download The Script
119 Configuring Devices – Script – Running The Code
120 Configuring Devices – Download The Script
121 Section Summary Command Cheat Sheet

Bonus 4 Configuring Multiple Vendors Simultaneously
122 Configuring Multiple Devices – Single Vendor
123 Configuring Multiple Devices – Multiple Vendors
124 Section Summary Command Cheat Sheet

Bonus 5 Managing And Converting Access Lists
125 Configuring Access Control Lists In The CLI
126 Converting Cisco IOS XR ACLs To Juniper JunOS ACLs
127 Converting Juniper JunOS ACLs To Cisco IOS ACLs
128 Converting Juniper JunOS ACLs To Cisco IOS XR ACLs
129 Section Summary Command Cheat Sheet
130 Creating ACLs And Storing Them Locally
131 Checking The Device-to-ACL Associations
132 Querying The Local ACL Database
133 Loading An ACL On Multiple Devices – Cisco
134 Loading Multiple ACLs On The Same Device – Juniper
135 Converting Cisco IOS ACLs To Cisco IOS XR ACLs
136 Converting Cisco IOS ACLs To Juniper JunOS ACLs
137 Converting Cisco IOS XR ACLs To Cisco IOS ACLs

Bonus 6 Executing Commands Upon Device Login
138 Introducing The gong Tool
139 Creating And Analyzing The .gorc File
140 Executing Commands Upon Login – Cisco
141 Executing Commands Upon Login – Juniper
142 Executing Commands Upon Login – Arista
143 Section Summary Command Cheat Sheet

Bonus 7 Getting Router Interface Information Fast
144 Displaying Interfaces For A Device Fast
145 Displaying Interfaces For All Devices Fast
146 Displaying Disabled And Unnumbered Interfaces
147 Saving The Results To CSV Format
148 Other Useful Command Options
149 Section Summary Command Cheat Sheet

Bonus 8 Other CLI Tools And Utilities
150 Using The Python Interpreter As A MD5 Encrypter
151 Using The Python Interpreter To Test TCP
152 Using The Python Interpreter To Test ICMP
153 Using The Python Interpreter To Test SSH
154 Section Summary Command Cheat Sheet

Bonus 9 Working With Python And SNMP
155 Performing SNMP GET On Cisco IOS With Python
156 Performing SNMP GET NEXTBULK On Juniper JunOS With Python
157 Performing SNMP WALK On Arista EOS With Python
158 Performing SNMP SET On HP ProCurve OS With Python
159 Performing SNMP SET On Multiple OIDs Concurrently
160 Section Summary Command Cheat Sheet
161 Python And SNMP – Script – Explaining The Code
162 Python And SNMP – Script – Running The Code
163 Python And SNMP – Download The Script

Bonus 10 Parsing Configuration Files
164 Brief Look Over The Functionality Of The Tool
165 Parsing HP Configuration Files
166 Parsing Cisco Configuration Files – Part 1
167 Parsing Cisco Configuration Files – Part 2
168 Parsing Juniper Configuration Files
169 Parsing Arista Configuration Files
170 Parsing Configuration Files – Small Script
171 Parsing Configuration Files – Download The Script
172 Section Summary Command Cheat Sheet

Bonus 11 Configuration Change Management
173 Introducing difflib And Setting The Goals
174 Section Summary Command Cheat Sheet
175 Setting Up The Working Environment
176 Difflib Short Guide
177 Configuration Change Management – Explaining The Code
178 Configuration Change Management – Running The Code (Cisco)
179 Configuration Change Management – Running The Code (Multivendor)
180 Configuration Change Management – Building A Schedule
181 Configuration Change Management – Testing The Schedule
182 Configuration Change Management – Download The Script

Final Activity – Network Programming Project
183 Quiz 3 – Multi-Vendor Network Programming
184 Network Programming Project – Homework
185 Network Programming Project – Solution
186 Network Programming Project – Testing The Solution

Whats Next
187 Final Words
188 Part 3 Scapy Security Tools TCP SYN Scan Explaining The Code
189 Part 3 Scapy Security Tools TCP SYN Scan Testing The Code
190 How to Get Your Certificate of Course Completion
191 Bonus Lecture – GIFTS INSIDE