Automation
Cisco Automation
Cheat sheet · https://pcornel.dk/topic.php?topic=5638
Answer
Cisco automation configures and checks IOS XE, NX-OS and other platforms through SSH/CLI tools like Netmiko and Ansible, or model-driven NETCONF, RESTCONF and YANG, plus controller APIs such as Catalyst Center and Meraki.
Remember
- CLI scraping is fragile; model-driven APIs are more reliable.
- Always back up config before pushing changes.
- Verify operational state after changes, not just config.
First checks
ansible-galaxy collection list | grep cisco— cisco.ios / cisco.iosxr / cisco.nxosshow netconf-yang status— NETCONF on IOS XEshow platform software yang-management process— YANG processes
Verify in this order
automation → SSH/NETCONF/RESTCONF → IOS XE
Where it usually breaks
Automation/controller success is not target-state proof; target config/state is not effective-runtime proof; effective state is not workload proof.
→ Cisco Automation · operational reference
| Layer | Cisco Automation operational reference |
|---|---|
| Runtime/ownership | Cisco network automation / DevNet current · identify controller/worker/target ownership before mutation |
| Persistent intent | Versioned configuration/playbook/workflow with explicit dependencies and least-privilege identity |
| Verification | Capture device identity/platform/version, API capability (NETCONF/RESTCONF/gNMI/CLI), intended configuration diff and post-change show/telemetry read-back. |
| Expected interpretation | Automation targets the intended Cisco device and interface, uses a supported model/API, applies a bounded diff, and verifies operational state independently of transport success. |
| Recovery boundary | Preserve correlation IDs + pre-state, then verify target/service independently after remediation |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5638