Use this when editing or reading the active configuration.
running
The running datastore is the active configuration currently in effect on the device. On devices without a candidate datastore, edit-config changes it directly.
1. running holds the active configuration.
2. Direct writes apply immediately (if no candidate).
3. Lock to avoid conflicts.
4. Copy to startup if needed.
5. Back up before changes.
edit-config → running → active immediately
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
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 Verification path Verify boundary
The negative fixture should deliberately exercise risks such as capability mismatch, namespace drift, wrong datastore, lock contention, partial edit semantics and assuming <ok/> shows final device behavior, choosing the cases most relevant to running datastore as active configuration, lock/edit behavior, relationship to candidate/startup and proving configuration versus operational effect separately.
Step 2 Common mistakes Narrow the fault
- Assuming running is saved to startup.
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.
- running is the active configuration.
- Direct edits apply immediately.
- Save to startup separately.
- get-config source=running — read running
- edit-config target=running (no candidate) — direct writes
- Lock running during changes — concurrency
ReferenceWhy it matters1 section · depth on demand
In depth
The running datastore is the device's active configuration. Writing to it (<edit-config> with <target><running/>) changes the device immediately, element by element, like typing CLI commands. Reading it (<get-config>) returns the configuration as structured data.
from ncclient import manager
with manager.connect(host=dev, port=830, username=u, password=p, hostkey_verify=True) as m:
cfg = m.get_config(source="running", filter=("subtree", IF_FILTER))
Writing directly to running is fine for small, single-step changes. For multi-part changes, use candidate and commit (if supported), or lock running during the change to keep other sessions from interfering.
ReferenceImportant terms & boundaries1 section · depth on demand
Mechanics
Its durable intent is capability-aware XML RPC intent against explicit running/candidate/startup datastores; the stable identity contract is device, session/RPC message-id, datastore, YANG module/revision and target path.
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.
Authoritative/upstream documentation reviewed for bounded claims in NETCONF > running. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc6241 · confidence 94%Deep reference
Healthy vs suspicious evidence
Output interpretation
Report accepted/queued/running/completed/verified as distinct states when the technology is asynchronous; do not map every non-error return to 'success'. For running datastore as active configuration, lock/edit behavior, relationship to candidate/startup and proving configuration versus operational effect separately, prefer typed fields and stable IDs over human presentation text.