Use it as the entry point when something on Network Automation fails and you need to find the failing layer.
Network Automation Troubleshooting
Network Automation Troubleshooting isolates failures across source data, target selection, transport/API/model, generated operations, device responses, parsing, persistence and network acceptance without changing unrelated layers.
1. Failures: connection (SSH/API, credentials), wrong platform/network_os, prompts/paging, timeouts, config errors.
2. Run verbose on one device.
3. Check device logs.
4. Test manually with same credentials.
5. Fix and rerun.
controller → transport → device → command/API → error
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ip interface briefShow Commands
Read-only and diagnostic commands for confirming state, narrowing a fault and interpreting the current boundary.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
symptom/time → workflow/source revision → inventory/selection → transport/auth → capability/model → generated operation → device response → parser/state → persistence/convergence → original network test → regression
Healthy evidence: the failure is reproducible and localized, raw evidence is preserved, the correction is minimal and both automation and network acceptance checks pass.
Step 2 Command read-back and what it shows Verify boundary
Known-good is the intended device is reached, expected interfaces report the required operational state and the original network service/traffic test succeeds without unintended neighbor or path regressions; broken state is management/auth failure, wrong/missing interface state, administratively/operationally down interfaces or healthy local interface state with persistent end-to-end failure. show ip interface brief shows local interface addressing/admin/protocol state only, but it does not show routing adjacency, policy, forwarding path or application reachability.
Step 3 Common mistakes Verify boundary
- Not isolating whether the problem is transport, auth or data.
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: operators retry broadly, edit devices manually out-of-band or stop at a green automation summary without explaining the original failure.
Step 5 Observation-driven branch and next-check logic Narrow the fault
If the device cannot be reached/authenticated, inspect inventory and management path; if management succeeds but expected interface/state is absent, compare platform/config/read-back; if local state is correct but service fails, inspect peers, routing/policy and the original traffic path.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Last red task ≠ root cause boundary.
- Retry success ≠ cause understood.
- Automation failure ≠ network failure, and network failure ≠ automation failure.
- Changed symptom ≠ original requirement restored.
ansible-playbook play.yml -vvvv --limit <dev>— verbosessh -vvv <dev>— transport debug- Device logs (show logging) — device side
ReferenceWhat it is1 section · depth on demand
Core model
Reproduce the exact failed workflow and first failed device/step, preserve raw inputs and outputs, then walk from automation intent to actual network behavior one boundary at a time.
ReferenceHow it works2 sections · depth on demand
How it works
Network Automation Troubleshooting is governed by automation inventory/transport, device configuration/state and the network service being changed or validated. Network automation selects a device, opens a management session, issues commands or API calls and then reads operational state; the controller owns intent while each network device owns running state and forwarding/service behavior. AAA, management VRF/routing, platform syntax, commit semantics, topology peers and downstream traffic paths are independent things to check. The important state separation is that a command session can succeed while the wrong device/interface is targeted, and an interface that is up/up does not show routing, policy or end-to-end reachability.
Method
Network automation troubleshooting separates inventory, connectivity, authentication, platform driver, data and device behaviour.
1. Confirm the target from inventory (IP, platform, credentials group).
2. Test reachability and SSH/API manually from the automation host.
3. Check the driver/platform matches the device (cisco_ios vs cisco_xe, network_os).
4. Run the single task with debug logging and capture the raw session.
5. Compare rendered configuration with what the device accepted.
6. Verify device state after the run.
| Symptom | Likely cause |
|---|---|
| Timeouts on long commands | Read timeout too short, paging |
| Prompt not detected | Custom prompt/banner |
| Command rejected | Wrong OS version or syntax for platform |
| Works on some devices | Inventory platform mismatch |
ReferenceImportant terms & boundaries1 section · depth on demand
What this shows and what it does not
Troubleshooting is resolved only when the first failing step is explained and the original automation plus network acceptance test passes after a controlled correction.
ReferenceConfiguration & state1 section · depth on demand
Concrete configuration contract
Concrete configuration/input contract for Network Automation → Network Automation Troubleshooting.
device_identity: explicit
platform_version: captured
transport_model: capability-checked
change: bounded diff
verify: independent operational show/telemetry/API read-back
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Lowest-Good remediation source for Network Automation → Network Automation Troubleshooting. Documentation authority supports bounded reference claims only; it is not observed lab/production Evidence.
Basis: https://developer.cisco.com/docs/network-automation-delivery-model/network-automation-delivery-model/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Network Automation Troubleshooting Network Automation proof-boundary map
Fast intent/scope, management-operation, device-state and network-acceptance boundaries for Network Automation Troubleshooting.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Intent / scope | Source revision and exact targets are explicit | Stale inventory, hidden selector or wrong variables change scope |
| Management operation | Transport/model/payload and per-device response are traceable | Auth/capability/parser differences hide partial or wrong execution |
| Device state | Effective and persistent state are read back | Accepted config/API result is mistaken for convergence |
| Network proof | Original control/data-plane or service test passes | Automation summary substitutes for actual network acceptance |
Deep reference
Healthy vs suspicious evidence
Concrete output contract
Concrete output contract for Network Automation → Network Automation Troubleshooting. The minimum retained result is: device_id, platform_version, transport, model_or_command, request_id, diff, first_error_boundary, task_state, operational_readback.