Network Assurance

A NETCONF client must retrieve interface configuration and operational counters in one request from an IOS XE device. Which operation should it use with a subtree filter?

Show the answer

Correct answerD. <get> with the interface subtree selected

AWhy not this: The running datastore contains configuration; <get-config> does not retrieve operational counters.

BWhy not this: The <edit-config> operation changes configuration; setting default-operation to none does not turn it into a retrieval operation.

CWhy not this: The candidate datastore holds staged configuration, not operational counters.

DWhy this is right: The <get> operation can return both configuration and operational state within the selected subtree.

The <get> operation retrieves configuration and operational state, with a filter limiting the returned data. The <get-config> operation retrieves configuration only, so selecting running does not include operational counters.