Pcornel
Automation · NETCONF

NETCONF Fundamentals

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

Back to the Topic

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.

Remember

  • SSH port 830, XML RPCs.
  • Hello exchanges capabilities.
  • YANG defines payloads.

First 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

Verify in this order

connect → hello → RPCs → close

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=5604

Confirmation

Confirm action

Continue?