Learning paths › Automation › Netmiko at fleet scale
Netmiko at fleet scale
Netmiko across a fleet — a connection and its own output per worker, session logs read without leaking secrets, a file transferred to the device filesystem, and an interface enabled only when its admin state parses exactly rather than merely containing the word — then back to loop and list mechanics: a total accumulated across iterations, a loop left early and its else skipped, input read until a sentinel arrives, assignment inside an expression, and when a list is copied against extended in place. Explanation and checks; three written exercises.
Lessons
- Give each worker its own connection and output
- Drive a Linux host through Netmiko
- Read session logs without leaking secrets
- Make a router accept an SCP upload
- Transfer a file to the device filesystem
- Assignment: enable an interface only if it is down
- Parse the exact admin state, not a substring
- Work eighteen Netmiko challenges
- Walk an iterable one item at a time
- Pause at a breakpoint and inspect state
- Generate a sequence of integers
- Accumulate a total across iterations
- Skip an item without leaving the loop
- Leave a loop early and skip its else
- Repeat while a condition stays true
- Avoid an infinite loop when you continue
- Read input until a sentinel arrives
- Assign inside an expression with the walrus
- Store values where position matters
- Know when a list is copied or extended in place
- Take a slice and reverse a list
- See why two names share one list
- Add and remove items at a chosen position
- Find and count items in a list
More in Automation
- First scripts that configure devices
- NAPALM: structured data across vendors
- Concurrency, and the Python types device output returns
- Parsing show output and testing conditions
- Readable code, branching and loops
- Build the workstation and the toolchain
- Files, CSV, JSON and pickle
- Paramiko: SSH to devices from Python
- Tuples, sets and dictionaries for device records
- Exceptions and your first classes
- Plan and build the automation lab
- Files, formatting and regular expressions
- Addresses, functions, modules and classes
- CSV inventories, logging and scheduling
- Netmiko, SCP and structured parsing
- Agents, async and model-driven workflows
- NETCONF, YANG and RESTCONF
- NX-API, pyATS and Genie
- A small GenAI app, end to end
- macOS, Linux and the virtual lab
- Agile delivery and Python fundamentals
- REST APIs, authentication and requests
- Flask, Docker and Jenkins
- Managing a router with NETCONF and RESTCONF
- Ansible: inventory, ad-hoc commands and first playbooks
- Roles and zero-touch provisioning for Linux switches
- Installing the controller and applying a project
- Setting up Python 3
- The Ansible lab and the controller
- Vault, variables and config changes
- Parsing output and knowing which variable wins
- Jinja filters and PAN-OS automation
- Loops, callbacks, strategy and run control
- Roles, imports and writing your own module
- Running playbooks from AWX