Pcornel
Networking · Automation and Artificial Intelligence

NETCONF (CCNA)

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

Back to the Topic

Answer

NETCONF is a model-driven configuration protocol: XML RPCs over SSH (TCP 830) read and change YANG-modelled data in datastores (running, candidate, startup), with operations like get, get-config, edit-config, lock and commit.

Remember

Enable on IOS XE with netconf-yang (and a privilege 15 user). The client and device exchange capabilities in hello messages — they list supported YANG models. The candidate datastore plus commit gives all-or-nothing changes where supported. Errors come back as <rpc-error> with a path and message.

First checks

  • show netconf-yang status — agent enabled and port.
  • show netconf-yang sessions — active sessions.
  • show platform software yang-management process — YANG processes running.
  • ssh -p 830 <user>@<device> -s netconf — raw session showing the capabilities hello.
  • Python ncclient: m.server_capabilities — supported models.

Verify in this order

netconf-yang enabled → SSH on TCP 830 → hello exchanges capabilities → RPC with YANG-modelled XML → device validates and applies → get-config reads back

Where it usually breaks

physical/link dependency → local object state → peer/control state → policy → forwarding/adjacency → end-to-end result

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

Confirmation

Confirm action

Continue?