nerdexam
Cisco

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…

Automation

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

350-601 question #658 exhibit

Options

  • Acli_conf
  • Bapplication/json
  • Ccli_show
  • Dbash

How the community answered

(23 responses)
  • B
    4% (1)
  • C
    91% (21)
  • D
    4% (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

#NX-API#Python scripting#Network automation#CLI automation

Community Discussion

No community discussion yet for this question.

Full 350-601 Practice