DevNet Associate (DEVASC) v1.0Infrastructure and AutomationEasy

A network engineer is using a Python script to interact with a Cisco IOS XE device. The script needs to retrieve specific operational state information, such as interface statistics or routing table entries, in a structured, machine-readable format. The device supports NETCONF. Which NETCONF operation should the engineer use to achieve this?

  1. A<get>
  2. B<edit-config>
  3. C<lock>
  4. D<commit>
Show answer & explanation

Correct answer: A. <get>

The NETCONF <get> operation is used to retrieve operational state information and configuration data from a device. This allows the engineer to fetch interface statistics or routing table entries in a structured format.

Why the other options are wrong

  • B. <edit-config> is used to modify the configuration of a device.
  • C. <lock> is used to lock a configuration datastore to prevent conflicts.
  • D. <commit> is used to apply changes from the candidate configuration to the running configuration.

NETCONF <get> operation

A NETCONF operation used to retrieve configuration data and operational state information from a device.

  • Retrieves data from the running configuration and operational state.
  • Returns data in a structured, machine-readable format (e.g., XML).
  • Does not modify the device configuration.

Memory trick: NETCONF is like a remote control for network devices; each button does something specific.

More Infrastructure and Automation questions