Pcornel
Automation

Cisco Automation

Cheat sheet · https://pcornel.dk/topic.php?topic=5638

Back to the Topic

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.nxos
  • show netconf-yang status — NETCONF on IOS XE
  • show 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

LayerCisco Automation operational reference
Runtime/ownershipCisco network automation / DevNet current · identify controller/worker/target ownership before mutation
Persistent intentVersioned configuration/playbook/workflow with explicit dependencies and least-privilege identity
VerificationCapture device identity/platform/version, API capability (NETCONF/RESTCONF/gNMI/CLI), intended configuration diff and post-change show/telemetry read-back.
Expected interpretationAutomation 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 boundaryPreserve 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

Confirmation

Confirm action

Continue?