350-601 · Question #658
Refer to the exhibit. An engineer must create a Python script using the Cisco NX-API CLI to retrieve BGP information from a Cisco Nexus 9000 Series Switch. Which code snippet completes the script?
The correct answer is C. cli_show. In the context of the Cisco NX-API CLI, the type field specifies the type of command being sent to the device. For retrieving information using a "show" command, the correct type is cli_show. The script is executing the command show bgp paths, which is a read operation, so…
Question
Refer to the exhibit. An engineer must create a Python script using the Cisco NX-API CLI to retrieve BGP information from a Cisco Nexus 9000 Series Switch. Which code snippet completes the script?
Exhibit
Options
- Acli_conf
- Bapplication/json
- Ccli_show
- Dbash
How the community answered
(23 responses)- B4% (1)
- C91% (21)
- D4% (1)
Explanation
In the context of the Cisco NX-API CLI, the type field specifies the type of command being sent to the device. For retrieving information using a "show" command, the correct type is cli_show. The script is executing the command show bgp paths, which is a read operation, so cli_show is the appropriate value for the type field.
Topics
Community Discussion
No community discussion yet for this question.
