nerdexam
Cisco

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…

Automation

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

350-601 question #694 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)
  • B
    2% (1)
  • C
    93% (39)
  • D
    5% (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

#Python CLI#Nexus 9000#BGP Configuration#On-box Automation

Community Discussion

No community discussion yet for this question.

Full 350-601 Practice