Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

Configuration Deployment · Cisco Automation

Direct answer

Configuration deployment pushes changes to Cisco devices from templates and variables, with pre-checks, diff, commit or copy run start and post-checks, one batch of devices at a time.

When to use this

Use this when pushing configuration to Cisco devices.

First 30 seconds

1. Deploy with diff.

2. configure replace for full intent (with archive and revert timer).

3. Merge mode for small changes.

4. Save config (write memory) after verification.

5. Batch.

Operational verification

rendered config → diff → apply → verify → save

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco network automation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco network automation · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior. · Cisco IOS / IOS XE
Key commandshow archive config differences nvram:startup-config system:running-config
Scope / prerequisiteUse this when pushing configuration to Cisco devices.
Show · 1
What next?3 suggested next steps
Catalog command links1
Evidence0
On this pageJump to a specific section
Verification

Show Commands

Read-only and diagnostic commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

6 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verify Cisco running state, feature state and rollback readiness Verify boundary

Read the relevant Cisco running configuration or modeled datastore from the target itself after the task completes, not only from the controller cache. Compare the exact feature state with a known-good expectation using appropriate show output, operational YANG data or counters, then repeat the original traffic or management test. Preserve the transaction/task ID and pre-change state needed for rollback. Controller success shows orchestration progress; device configuration read-back shows persistence; neither alone shows the changed protocol, interface or policy is operational.

Step 2 Known-good, broken and when it is fixed Verify boundary

Verification for Cisco Automation → Configuration Deployment must discriminate known-good from broken/suspicious state. With show archive config differences nvram:startup-config system:running-config, known-good is: differences match the intentional change set or no unintended drift exists. Broken/suspicious is: unexpected deltas indicate uncommitted/unreviewed device configuration drift. Read back the same target after the minimal approved change, then compare controller/source-of-truth intent and verify operational state before any save/rollback.

Step 3 Follow Cisco task status until direct device read-back Narrow the fault

If a Cisco deployment request is rejected immediately, separate credentials/RBAC, malformed payload or unsupported command/resource before retrying. If a controller returns a task ID, poll the child device result and inspect device-side error text; HTTP 2xx or queued status is not device completion. For direct CLI, identify the first rejected command and whether the session was in the expected configuration context. If the running configuration changes but the feature remains down, move from deployment troubleshooting into the responsible routing, switching, security or service state rather than resending the same configuration.

Step 4 Common mistakes Narrow the fault
  • Pushing full configs where incremental changes are safer.
Step 5 Observation-driven troubleshooting tree Narrow the fault

Troubleshoot Cisco Automation → Configuration Deployment from one exact failing target, revision/input and timestamp. Capture show archive config differences nvram:startup-config system:running-config before mutation, then branch by the first divergent observation: rendered diff contains unexpected lines, stop before device change; parser/AAA rejects a command, preserve the first rejection; running config differs from intended after apply, treat deployment as incomplete; startup/running divergence is unintended, resolve persistence; config matches but service fails, move to operational state. Typical failure signatures include wrong target, wrong config mode, unsupported syntax, partial command set, controller retry duplicating non-idempotent action, unintended startup/running divergence, or correct text with failed protocol state.

Step 6 Failure signatures, dependencies and operational guardrails Narrow the fault

Failure-signature and guardrail reference for Cisco Automation → Configuration Deployment: Wrong target, wrong config mode, unsupported syntax, partial command set, controller retry duplicating non-idempotent action, unintended startup/running divergence, or correct text with failed protocol state. Operational guardrail: show archive config differences nvram:startup-config system:running-config only compares startup and running state; it does not compare either with the approved source-of-truth or show service recovery. Dependencies that can mimic the same symptom are device model/software, feature licensing, AAA command authorization, controller transaction semantics, config replace/archive support, line-order dependencies and routing/switching adjacencies.

Key points
  • Render configs from templates and variables.
  • Push to a small batch first.
  • Verify and save after each batch.
Key checks
  • ansible <dev> -m cisco.ios.ios_config -a 'src=rendered.cfg' --check --diff — preview
  • configure replace flash:<file> list — replace with diff
  • configure replace … revert trigger timer — safety
ReferenceWhy it matters1 section · depth on demand

Cisco deployment crosses controller, session and device config boundaries

Cisco Automation configuration deployment can use direct IOS/IOS XE CLI, NETCONF/RESTCONF or a controller workflow, and those paths have different acceptance semantics. An API request may create a task before any device is touched, while direct CLI can alter running configuration command by command. Candidate and commit datastores are not universal across Cisco platforms, so the automation must know which transaction model it is using. Device identity, privilege/configuration mode, platform release, intended diff and rollback mechanism are part of the deployment state and should be captured before execution.

ReferenceHow it works1 section · depth on demand

How it works

Cisco Automation → Configuration Deployment owns intended configuration delta, target device/context, parser and authorization, candidate/running state, commit/apply behavior, startup persistence and operational verification. Execution mechanics: Safe deployment computes a reviewable delta against the correct baseline, applies only the approved lines in the intended configuration context, reads running state back, confirms persistence policy and then validates the affected protocol/service path. Keep adjacent dependencies separate: device model/software, feature licensing, AAA command authorization, controller transaction semantics, config replace/archive support, line-order dependencies and routing/switching adjacencies. The mapped read surface show archive config differences nvram:startup-config system:running-config exposes configuration differences between startup and running state.

ReferenceImportant terms & boundaries2 sections · depth on demand

Platform, version and operating-envelope scope

Configuration deployment methods differ by platform: IOS XE supports configure replace from an archived file and an optional NETCONF candidate datastore, NX-OS has checkpoints and rollback, and IOS XR uses commit-based configuration with commit confirmed.

Method

Configuration deployment to Cisco devices follows a fixed method that limits risk.

1. Render the configuration and validate it (syntax, policy, Batfish where possible).

2. Take a backup or archive point on each device.

3. Deploy to a canary device; prefer atomic methods: configure replace, NETCONF candidate/commit, or IOS XR commit confirmed.

4. Verify state (interfaces, neighbors, reachability) on the canary.

5. Roll out in batches, verifying each batch.

6. On failure, roll back the affected devices and stop the rollout.

copy scp://deploy@10.0.0.5/rendered/sw01.cfg flash:candidate.cfg
configure replace flash:candidate.cfg list time 300
configure confirm

Documented example, not captured output.

time 300 makes IOS XE revert automatically unless configure confirm is entered — a safety net if the change cuts off management access.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco network automation current

Authoritative/upstream documentation reviewed for bounded claims in Cisco Automation > Configuration Deployment. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://developer.cisco.com/docs/yangsuite/ · confidence 94%
Confirmation

Confirm action

Continue?