Automation · NETCONF
NETCONF Troubleshooting
Cheat sheet · https://pcornel.dk/topic.php?topic=5616
Answer
Troubleshoot NETCONF by checking it is enabled (netconf-yang on IOS XE) and port 830 reachable, the capabilities in the hello, rpc-error messages, namespaces in the XML payload and the device's YANG model support.
Remember
- netconf-yang must be enabled on IOS XE.
- rpc-error explains failures.
- Namespaces must match models.
First checks
- rpc-error details (error-tag, error-path, error-message) — cause
show netconf-yang sessions / device logs— device sidepython3 -c 'import logging;logging.basicConfig(level=logging.DEBUG)' (ncclient debug)— trace
Commands
nc -vz <host> 830- Read-only/validation observation for TCP reachability to the standard NETCONF-over-SSH port on the intended network dev…
Verify in this order
connect → hello → rpc → rpc-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=5616