Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

NETCONF Fundamentals

Direct answer

NETCONF fundamentals: a client opens an SSH session to port 830, exchanges hello messages with capabilities, then sends XML RPCs such as get-config and edit-config that follow YANG models.

When to use this

Use this when starting with NETCONF automation.

First 30 seconds

1. NETCONF (RFC 6241): SSH transport, RPC messages, operations, YANG content.

2. Capabilities negotiated in hello.

3. Candidate and confirmed-commit are optional.

4. Use hostkey verification.

5. Session per task.

Operational verification

connect → hello → RPCs → close

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
NETCONF / YANG datastore 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.

PlatformNETCONF / YANG datastore automation · Automation implementations are tool and platform specific. Use the adjacent Domain for the technology being automated and this Domain for automation behavior.
Scope / prerequisiteUse this when starting with NETCONF automation.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

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

3 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 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 capability exchange, framing/session, RPC request/reply, datastores, errors and read-versus-write transaction boundaries. For NETCONF → NETCONF Fundamentals, the evidence must connect the control-plane result to the selected configuration or operational subtree on the network device and explain any gap between desired, controller-reported and consumer-visible state.

Step 2 Common mistakes Narrow the fault
  • Using NETCONF without checking capabilities first.
Step 3 Where it fails Narrow the fault

Failure analysis for NETCONF → NETCONF Fundamentals should follow the path through the components: client model → SSH/TLS transport → NETCONF RPC → datastore validation/lock → commit/apply → datastore read-back.

Evidence references

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.

observation · 1
Key points
  • SSH port 830, XML RPCs.
  • Hello exchanges capabilities.
  • YANG defines payloads.
Key checks
  • Hello exchange with capabilities — supported features
  • Layers: transport, messages, operations, content — architecture
  • python3 -c "from ncclient import manager;m=manager.connect(host='<dev>',port=830,username='<u>',password='<p>',hostkey_verify=True);print(len(m.server_capabilities))" — connect
ReferenceWhy it matters1 section · depth on demand

In depth

NETCONF is the IETF standard protocol (RFC 6241) for managing network device configuration as structured, model-driven data. It runs over SSH (port 830), uses XML-encoded RPCs, and is designed for automation: transactions, validation, locking and confirmed commits that CLI scripting cannot offer reliably.

CLI automationNETCONF
Text commands, screen scrapingStructured XML defined by YANG
Line by line, partial failuresTransactional (with candidate)
No built-in validationValidate before commit
Output format varies by versionModel-defined data

Getting started: enable it on the device, check capabilities in the <hello>, explore models with pyang or YANG Suite, and use ncclient (Python) or Ansible's netconf connection.

ReferenceImportant terms & boundaries1 section · depth on demand

Mechanics

NETCONF → NETCONF Fundamentals is owned at runtime by the NETCONF client/server session and the network device datastore implementation. Follow the chain of components client model → SSH/TLS transport → NETCONF RPC → datastore validation/lock → commit/apply → datastore read-back and record which layer currently owns truth. The linked authority for bounded mechanics is RFC 6241 — Network Configuration Protocol (NETCONF); documentation support is separate from observed lab/production Evidence.

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 docNETCONF / YANG datastore automation current

Authoritative/upstream documentation reviewed for bounded claims in NETCONF > NETCONF Fundamentals. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc6241 · confidence 94%
Depth when you need it

Deep reference

Healthy vs suspicious evidence

Output interpretation

For capability exchange, framing/session, RPC request/reply, datastores, errors and read-versus-write transaction boundaries, prefer typed fields and stable IDs over human presentation text.

Confirmation

Confirm action

Continue?