Learning paths › Automation › Build the workstation and the toolchain
Build the workstation and the toolchain
A second series starts by building the workstation: the toolchain's pieces named, the interpreter installed without breaking the system one, the IDE pointed at it, and the working directory a run actually uses — then files, with a saved config treated as program input, the read position moved, the file closed even when code raises, and CSV handled by the csv module so quoted fields and embedded commas survive into a numeric report. Explanation and checks; two written exercises.
Lessons
- Replace manual device logins with a program
- Know the Python you need before scripting devices
- Separate your workstation from the lab devices
- Know what each piece of the toolchain does
- Run Python from a shell or a script file
- Install Python on Windows and put it on PATH
- Install Python without breaking the system interpreter
- Point the IDE at the right interpreter
- Set up the IDE on Linux or macOS
- Control the working directory a run uses
- Launch a script with the interpreter you meant
- Treat a saved config as program input
- Open a file and read what it holds
- Point a script at the right file every time
- Move the read position around a file
- Close the file even when code raises
- Get one line per list element
- Append without truncating what is there
- Turn an inventory file into a list of records
- Parse quoted fields a plain split would break
- Write rows that survive commas in data
- Read colon- and tab-separated files
- Name one format and reuse it everywhere
- Build a numeric report from CSV rows
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
- Files, CSV, JSON and pickle
- Paramiko: SSH to devices from Python
- Netmiko at fleet scale
- 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