300-435 Question 197
Select 3You are tasked with troubleshooting a network issue involving multiple Cisco devices. You decide to use the Command Runner API in Cisco DNA Center to execute a series of show commands across these devices. Which of the following steps are necessary to successfully execute this task using the Command Runner API?
- A
Obtain an authentication token from Cisco DNA Center to authorize API calls.
- B
Ensure all devices are added to Cisco DNA Center and are reachable.
- C
Use the API endpoint '/dna/intent/api/v1/network-device' to send the show command payload.
- D
Specify the device IDs and the CLI commands in the request payload when making the API call.
- E
Schedule the command execution for a later time using the 'schedule' parameter.
Show answer and explanation
Correct answers: A, B, D
Explanation
To use the Command Runner API, you must first authenticate with Cisco DNA Center to obtain an API token. The devices must also be properly onboarded and reachable in Cisco DNA Center. The API call requires a payload that specifies the device IDs and CLI commands to execute. The option to schedule commands is not mandatory for immediate execution, and the correct API endpoint must be used for the Command Runner functionality.
- A. Correct.
Correct. An authentication token is required to authorize any API calls made to Cisco DNA Center, including Command Runner API calls.
- B. Correct.
Correct. The Command Runner API can only interact with devices that are known to Cisco DNA Center and are reachable.
- C. Incorrect.
Incorrect. The provided endpoint is incorrect. The Command Runner API uses a different endpoint such as '/dna/intent/api/v1/network-device-poller/cli/read-request'.
- D. Correct.
Correct. The request payload must explicitly specify the device IDs you wish to operate on and the CLI commands to be executed.
- E. Incorrect.
Incorrect. While scheduling is possible for certain operations, it is not mandatory to schedule the execution of commands using the Command Runner API in this context.