Tutorials
Tutorials¶
"Learn by Doing โ Build Production Skills One Script at a Time"¶
Welcome to the Nautomation Prime Tutorials! This section is your hands-on laboratory for developing real-world network automation skills. Each tutorial provides complete, working code with line-by-line explanations so you understand exactly what every line does and why.
Python Prerequisite
This site focuses on applying Python to network automation. We assume familiarity with core Python concepts (variables, functions, loops, exceptions, and file I/O). If you're new to Python, complete a fundamentals course first, then return here.
๐ Tutorial Paths¶
Our tutorials are organized by skill level to match your Python experience:
๐ข Beginner¶
Perfect if you're new to network automation or want to master the fundamentals.
- Focus: Core concepts, simple workflows, fundamental libraries
- Prerequisites: Basic Python knowledge (variables, functions, loops)
- Topics: Netmiko basics, TextFSM parsing, Excel exports, basic error handling
Start Here: Send a Show Command and Export to Excel
๐ก Intermediate¶
Ready to handle more complex scenarios and multi-device operations.
- Focus: Multi-threading, advanced parsing, data aggregation, professional development practices
- Prerequisites: Comfortable with beginner concepts, understand functions and data structures
- Topics: Threading & concurrency, custom TextFSM templates, Jinja2 templating, structured logging, argparse CLIs, retry logic, code organisation
New Production Patterns Available:
- Testing Automation Scripts
- Credential Management for Network Automation
- Error Recovery and Rollback
- State Management and Idempotency
- Structured Logging for Network Automation
- Health Checks and Pre-Flight Validation
๐ด Expert¶
Production-grade automation with enterprise patterns and advanced techniques.
- Focus: Scalability, fault tolerance, security, enterprise framework integration
- Prerequisites: Strong Python skills, experience with intermediate tutorials
- Topics: Nornir framework, asyncio, NAPALM, PyATS, database integration, credential vaulting, API development, GitOps, CI/CD, containerization, observability
New Production Patterns Available:
- Circuit Breakers and Backpressure
- Dependency Management and Task Orchestration
- Incident Response Automation
โ๏ธ Production-Grade Network Automation Principles¶
This track focuses on how to run automation safely in enterprise production environments.
- Focus: Risk reduction, validation strategy, failure handling, governance, and operational trust
- Prerequisites: Working knowledge of network automation and change control processes
- Topics: Identity validation, pre-flight enforcement, trust boundaries, drift handling, idempotency, blast radius control, safe failure, rollback strategy, workflow phase separation, operator-friendly output, audit evidence, secret hygiene, human approval gates, and deciding when not to automate
Start Here: Production-Grade Network Automation Principles Index
๐ฏ Tutorial Philosophy¶
Every tutorial follows these principles:
- Complete & Runnable โ All code is fully functional. No "TODO" sections or pseudocode.
- Line-by-Line Explanation โ We explain what each line does, not just the overall concept.
- Production-Aware โ Even beginner tutorials introduce best practices you'll use in production.
- Copy-Paste Friendly โ Code is formatted for easy copying and immediate use.
๐ How to Use These Tutorials¶
- Choose Your Level โ Start with beginner if you're new to network automation
- Follow Along โ Type or paste the code into your own environment
- Experiment โ Modify the examples to work with your own network devices
- Build Up โ Each tutorial introduces concepts used in more advanced lessons
๐ก Prerequisites¶
All tutorials assume you have:
- Python 3.8+ installed
- Basic Python knowledge (variables, functions, loops, dictionaries)
- Access to Cisco devices (physical or virtual like CML, EVE-NG, or GNS3)
- pip for installing required libraries
Not Sure Where to Start?
If you're new to Python network automation, begin with our Beginner Tutorial Index and work through the scripts in order. Each one builds on concepts from the previous tutorial.
๐ Related Resources¶
- Deep Dives โ In-depth technical analysis of production automation
- Scripts โ Ready-to-deploy automation tools
- Getting Started โ New to Nautomation Prime? Start here
Need help applying this beyond the lab?
If you're moving from tutorials to governed production automation, review our Enterprise Automation Services or the PRIME Framework.