Pcornel
Automation · NETCONF

RPC

Cheat sheet · https://pcornel.dk/topic.php?topic=5606

Back to the Topic

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.

Remember

  • Each RPC has a message-id.
  • rpc-reply contains data, ok or rpc-error.
  • rpc-error has type, tag and message.

First checks

  • <rpc message-id> / <rpc-reply> — message format
  • rpc-error handling — errors
  • Custom RPCs (actions) — operations

Verify in this order

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

Where it usually breaks

Input/desired state → request accepted → job/task terminal status → target object read-back → effective runtime state → original workload → regression/rollback readiness.

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5606

Confirmation

Confirm action

Continue?