Automation · NETCONF
get
Cheat sheet · https://pcornel.dk/topic.php?topic=5611
Answer
get retrieves both configuration and operational state data, such as interface counters, optionally limited by a subtree or XPath filter.
Remember
- get returns config and operational state.
- Filters limit the output.
- Use subtree or XPath filters.
First checks
- <get> with subtree/XPath filter — state + config
- Filters to limit data — efficiency
- Parse reply with namespaces — extraction
Verify in this order
<get filter> → data (config + state)
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=5611