Automation · Cisco Automation
Cisco Automation Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=5649
Answer
Troubleshoot Cisco automation by checking SSH or API reachability and credentials, the device prompt and timeouts in Netmiko, NETCONF or RESTCONF being enabled, YANG model support and the device's logs.
Remember
- SSH prompt and timing issues break CLI automation.
- NETCONF/RESTCONF must be enabled.
- Unsupported YANG paths give errors.
First checks
show logging | include NETCONF|RESTCONF|SSH— device logsansible-playbook play.yml -vvvv --limit <dev>— verboseshow users— sessions
Commands
show logging- Logging configuration, buffer and recent messages.
Verify in this order
automation → transport → AAA → API/CLI → error
Where it usually breaks
Commit/input → runner/job → build/test artifact → deployment request → target rollout/reconcile → effective version/config → health/readiness → workload.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5649