350-601 · Question #694
Refer to the exhibit. A network engineer must use a Cisco on-box Python CLI to configure the BGP AS 65501 on Cisco Nexus 9000 Series Switch. The output from the command must be returned as raw…
The correct answer is C. >>> cli("conf t"). To run commands using the Cisco Nexus on-box Python CLI and receive raw (non-JSON) output, you must use the cli() function. The cli() method returns plain CLI output, while clid() returns structured JSON. cli("...") is used for raw CLI output. Chaining commands in one string…
Question
Refer to the exhibit. A network engineer must use a Cisco on-box Python CLI to configure the BGP AS 65501 on Cisco Nexus 9000 Series Switch. The output from the command must be returned as raw output instead of JSON format. Which command set must be used to complete the configuration?
Exhibit
Options
- A
clid("conf t ; feature bgp ; router bgp 65501")
- B
cli("conf t ; feature bgp ; router bgp 65501")
- C
cli("conf t")
- D
clid("conf t")
How the community answered
(42 responses)- B2% (1)
- C93% (39)
- D5% (2)
Explanation
To run commands using the Cisco Nexus on-box Python CLI and receive raw (non-JSON) output, you must use the cli() function. The cli() method returns plain CLI output, while clid() returns structured JSON. cli("...") is used for raw CLI output. Chaining commands in one string (like in options A and B) is not recommended and may fail depending on syntax and prompt state.
Topics
Community Discussion
No community discussion yet for this question.
