Python for network engineers Training in Norway

  • Learn via: Classroom
  • Duration: 5 Days
  • Level: Intermediate
  • Price: From €5,196+VAT
We can host this training at your preferred location. Contact us!

This Python course focusses on teaching Python for use in network automation and network DevOps.

We focus on getting delegates up and running with Python and network automation as quickly as possible rather than making them great programmers. In other words we concentrate on enabling delegates to use network automation libraries such as netmiko and NAPALM and APIs such as NETCONF rather than enabling delegates to produce object oriented programs.

Hands on sessions use Cisco and Juniper devices.

TCP/IP foundation for engineers

By the end of the course delegates will be able to:

  • Run Python programs.
  • Read Python programs.
  • Write Python programs.
  • Debug Python programs.
  • Automate network tasks with Python programs.
  • Configure network devices with Python.
  • Collect data from network devices with Python.

What is Python?

Programming languages, Why Python? Python in interactive mode, Python scripts, ipython, Python version 2 versus version 3. A simple Python script. Comments.

Installing Python, Hello world.

A network example

On box vs off box Python. telnet, ssh, NETCONF, HTTP, APIs, manufacturers and API support, analysis of a simple telnetlib program.

Using Python to retrieve the configuration from a network device. Using wireshark to analyse the actions.

Python basics

I/O operators, variables and assignment, types, indentation, loops and conditionals.

Modifying the telnet program, changing configurations on a network devices.

Functions, classes and methods

What are functions, calling functions, builtin functions, useful builtin functions, file handling, classes, objects, creating instances.

Storing configurations in files, configuring devices from files, using an inventory file to work on multiple devices.

Libraries and modules

Modules, files and packages, import, from-import, Python standard library, other packages, pip install, executing other programs. Managing python libraries.

Using pip, installing and using ipaddress, subprocess to access netsnmp. For the more advanced, using the sockets library.

Paramiko and netmiko

SSH, enabling SSH on devices, keys. Paramiko versus netmiko, example scripts. pexpect. Hands on Configuring VLANs from Python.

pySNMP

Gathering facts using previous methods, SNMP review, pySNMP GET, pySNMP and SNMPv3. easySNMP library.

Walking a MIB from Python.

NETCONF

What is NETCONF? Enabling NETCONF on devices, A first ncclient script, device handlers, get_config, edit_config, copy_config, delete_config, commit, validate, pyEZ, utils_config, utils.sw.

Configuration using ncclient and PyEZ. This session is expanded for those interesting in JunOS automation.

Manipulating configuration files

Builtin functions, string handling. Unicode. Sequences, strings, lists, tuples. Dictionaries. TextFSM. Regular expressions. JSON, YAML, XML, YANG, Jinja2, templates. Hands on Jinja2 templating with Python to configure network devices.

NAPALM

Getters, configuration operations, supported devices, NAPALM transport, Config-replace, Config-merge, Compare config, Atomic changes, rollback. Example NAPLAM scripts. Hands on Using NAPALM to gather facts, Using NAPALM for configuration management

REST and RESTCONF

What is REST, HTTP methods, GET, POST, cURL, Postman, Python requests library. RESTCONF, a RESTCONF example.

Modifying a configuration using RESTCONF.

Scapy

What is scapy, Scapy in interactive mode, Scapy as a module.

Packet crafting from Python.

Warning

Errors and exceptions, Exception handling, try, except. Memory management. Garbage collection. Context management, With.

Improving Python code.

Optional

Writing your own functions, Writing your own classes. pyntc.

Writing reusable code.



Contact us for more detail about our trainings and for all other enquiries!

Upcoming Trainings

Join our public courses in our Norway facilities. Private class trainings will be organized at the location of your preference, according to your schedule.

Classroom / Virtual Classroom
01 august 2024
Oslo, Bergen, Trondheim
5 Days
Classroom / Virtual Classroom
04 august 2024
Oslo, Bergen, Trondheim
5 Days
Classroom / Virtual Classroom
22 august 2024
Oslo, Bergen, Trondheim
5 Days
Classroom / Virtual Classroom
23 august 2024
Oslo, Bergen, Trondheim
5 Days
Classroom / Virtual Classroom
27 august 2024
Oslo, Bergen, Trondheim
5 Days
Classroom / Virtual Classroom
02 september 2024
Oslo, Bergen, Trondheim
€5,196 +VAT Book Now
Classroom / Virtual Classroom
18 september 2024
Oslo, Bergen, Trondheim
5 Days
Classroom / Virtual Classroom
20 september 2024
Oslo, Bergen, Trondheim
5 Days
Python for network engineers Training Course in Norway

The Nordic country Norway, is in Northern Europe. Known for its stunning natural beauty, including fjords, mountains, and forests, Norway is also famous for its high standard of living and strong social welfare system. Norway's capital and largest city is Oslo. Tromsø, Bergen, Trondheim and Stavanger are the other tourist attracting cities of Norway.

Norway is a constitutional monarchy with King Harald V as the head of state. The country has a population of 5,425,270 as of January 2022. Norway is a relatively small country and has a relatively low population density, with much of its land area covered by forests, mountains, and fjords. Despite its small size, Norway is known for its rich cultural heritage, strong economy, and stunning natural beauty, which attracts millions of visitors every year. This Nordic country is also known for its winter sports, such as skiing and snowboarding, and is a popular destination for outdoor enthusiasts.

Norway has a long history of invention and is home to numerous more top-tier tech firms and research facilities, such as; Kongsberg Gruppen, Telenor, Atea, Evry and Gjensidige Forsikring.

Due to the country's high latitude, there are large seasonal variations in daylight. From late May to late July, the sun never completely descends beneath the horizon. Which attracts many tourists around the world to see the "Land of the Midnight Sun". Tourists mainly visit Sognefjord, Norway's Largest Fjord, Pulpit Rock, one of the most photographed sites in Norway and of course the capital; Oslo.

Oslo is considered the business center of Norway. It is the country's largest city and the capital of Norway. The city is home to many of Norway's largest and most important companies, as well as several international organizations and research institutions. Additionally, the city is a popular tourist destination, known for its scenic location on the Oslo Fjord, its many museums and cultural attractions, and its vibrant nightlife and dining scene. Some of the most popular museums in Oslo are The Norwegian Museum of Cultural History, The Nobel Peace Center, The National Museum of Art, Architecture, and Design, The Munch Museum and The Vigeland Museum.
By using this website you agree to let us use cookies. For further information about our use of cookies, check out our Cookie Policy.