Automation · NETCONF
get-config
Cheat sheet · https://pcornel.dk/topic.php?topic=5612
Answer
get-config retrieves configuration only, from a chosen datastore such as running or candidate, optionally filtered to part of the YANG tree.
Remember
- get-config returns configuration only.
- Choose the source datastore.
- Filter to the part you need.
First checks
- <get-config source=running filter> — config only
- with-defaults handling — defaults shown
- Save as backup — structured backup
Verify in this order
<get-config> → config data
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=5612