Pcornel
Browse topics
Options
Recent
Favorites
Automation · Technical reference

RPC

Direct answer

An RPC is a NETCONF request in an <rpc> element with a message-id, answered by <rpc-reply> containing data, <ok/> or <rpc-error> with the error type, tag and message.

When to use this

Use this when sending NETCONF RPCs and reading rpc-reply or rpc-error responses.

First 30 seconds

1. RPCs carry operations; replies contain data, ok or rpc-error.

2. Check every reply for errors.

3. message-id correlates replies.

4. Vendor RPCs for actions.

5. Log errors with details.

Operational verification

<rpc> → device → <rpc-reply> (ok/data/error)

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 sending NETCONF RPCs and reading rpc-reply or rpc-error responses.
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

Record device, session/RPC message-id, datastore, YANG module/revision and target path; inspect the runtime/control-plane result; then query the selected configuration or operational subtree on the network device through an independent read path and compare it with the versioned intent.

Step 2 Common mistakes Narrow the fault
  • Ignoring rpc-error details.
Step 3 Where it fails Narrow the fault

Failure analysis for NETCONF → RPC should follow the path through the components: client model → SSH/TLS transport → NETCONF RPC → datastore validation/lock → commit/apply → datastore read-back. Before retrying a mutating operation, read current target state using the stable identity device, session/RPC message-id, datastore, YANG module/revision and target path; if state is unknown, stop broad retries.

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
  • Each RPC has a message-id.
  • rpc-reply contains data, ok or rpc-error.
  • rpc-error has type, tag and message.
Key checks
  • <rpc message-id> / <rpc-reply> — message format
  • rpc-error handling — errors
  • Custom RPCs (actions) — operations
ReferenceWhy it matters1 section · depth on demand

In depth

NETCONF is built on remote procedure calls (RPCs): every operation is an <rpc> message with a message-id, and the device answers with an <rpc-reply> containing <ok/>, data or <rpc-error>. Besides the standard operations, YANG models can define custom RPCs, such as saving the configuration or clearing counters.

<rpc message-id="101" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
  <get-config><source><running/></source></get-config>
</rpc>

An <rpc-error> includes error-type, error-tag, error-severity, error-path and error-message — the path points at the element that caused the problem, which is the fastest route to fixing a rejected change.

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. The operating invariants are that server capabilities are discovered, namespaces and datastores are explicit, locks/transactions are honored, and RPC success is followed by datastore read-back. 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.

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 > RPC. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc6241 · confidence 94%
Confirmation

Confirm action

Continue?