nerdexam
Cisco

300-435 · Question #11

A Cisco DNA Center script must be written to retrieve a list of interfaces on a switch. Drag and drop the API calls that are needed to return the list of interfaces using the Command Running APIs…

This question tests knowledge of Cisco DNA Center's Command Runner API workflow, which uses an asynchronous three-step process to execute CLI commands on network devices and retrieve their output.

Controller-Based Network Automation

Question

A Cisco DNA Center script must be written to retrieve a list of interfaces on a switch. Drag and drop the API calls that are needed to return the list of interfaces using the Command Running APIs from the left into the correct sequence on the right.

Explanation

This question tests knowledge of Cisco DNA Center's Command Runner API workflow, which uses an asynchronous three-step process to execute CLI commands on network devices and retrieve their output.

Approach. The correct sequence is: (1) POST to /dna/intent/api/v1/network-device-poller/cli/read-request - submits the command (e.g., 'show interfaces') along with the target device ID, returning a taskId. (2) GET /dna/intent/api/v1/task/{taskId} - polls the task status until it completes, at which point the response contains a fileId in the progress field. (3) GET /dna/intent/api/v1/file/{fileId} - retrieves the actual command output containing the interface list. This three-step pattern is required because DNAC command execution is asynchronous; the result is not returned immediately from the initial POST.

Concept tested. Cisco DNA Center Command Runner API asynchronous workflow: understanding that CLI command execution follows a submit-poll-retrieve pattern (POST read-request → GET task → GET file) rather than a synchronous single-call response.

Reference. Cisco DNA Center Platform API Guide - Command Runner / Network Device Poller APIs (DEVASC 200-901 exam topic: 4.5 Construct a Python script using Cisco DNA Center APIs to retrieve and display wireless client details)

Topics

#Cisco DNA Center#REST API#Command Runner#Network Automation

Community Discussion

No community discussion yet for this question.

Full 300-435 Practice