300-435 Question 198
Single answerYou are working on automating network operations for your organization using Cisco DNA Center. You need to execute a series of CLI commands on multiple devices and retrieve the output programmatically. Which Cisco DNA Center API should you use in this scenario?
- A
Command Runner API
- B
Device Configuration API
- C
Topology API
- D
Event Management API
Show answer and explanation
Correct answer: A
Explanation
The Command Runner API in Cisco DNA Center allows users to execute CLI commands on network devices programmatically and retrieve the output. This API is ideal for scenarios where you need to automate and standardize the execution of CLI commands across devices. Other APIs, such as Device Configuration, Topology, or Event Management, are designed for specific purposes unrelated to executing CLI commands.
- A. Correct.
The Command Runner API is specifically designed to execute CLI commands on devices and retrieve the output, making it the correct choice for this scenario.
- B. Incorrect.
The Device Configuration API is used to manage device configurations, such as pushing new configurations or managing configuration templates. It is not used for running arbitrary CLI commands.
- C. Incorrect.
The Topology API is used for retrieving network topology information, such as device and link details. It is unrelated to executing CLI commands.
- D. Incorrect.
The Event Management API is used for monitoring and managing events and notifications in the network. It does not facilitate executing CLI commands on devices.