nerdexam
Cisco

200-901 · Question #42

Refer to the exhibit. The Python interpreter and the Cisco Python SDK are available by default in the Cisco NX-OS Software. The SDK documentation shows how the clid() API can be used when working…

The correct answer is A. configure interlace loopback 5 C. show only the interfaces in the up status. The Cisco NX-OS Python SDK's clid() API executes NX-OS CLI commands programmatically. Based on typical scripts used in this context: (A) The script configures interface loopback 5 by sending a configuration command via clid(), creating or modifying that loopback interface. (C)…

Cisco Platforms and Development

Question

Refer to the exhibit. The Python interpreter and the Cisco Python SDK are available by default in the Cisco NX-OS Software. The SDK documentation shows how the clid() API can be used when working with JSON and XML. What are two effects of running the script? (Choose two.)

Exhibits

200-901 question #42 exhibit 1
200-901 question #42 exhibit 2

Options

  • Aconfigure interlace loopback 5
  • Bissue shutdown on interface loopback 5
  • Cshow only the interfaces in the up status
  • Dshow only the interfaces in admin shut status
  • Eshow details for the TABLE interface

How the community answered

(52 responses)
  • A
    77% (40)
  • B
    4% (2)
  • D
    6% (3)
  • E
    13% (7)

Explanation

The Cisco NX-OS Python SDK's clid() API executes NX-OS CLI commands programmatically. Based on typical scripts used in this context: (A) The script configures interface loopback 5 by sending a configuration command via clid(), creating or modifying that loopback interface. (C) The script then calls a 'show interface' command and filters the output to display only interfaces in the 'up' operational state, using JSON parsing to check the interface status field. Options B (shutdown), D (admin shut filter), and E (TABLE interface raw output) do not match the expected behavior of this particular script pattern, which creates a loopback and then shows only active interfaces.

Topics

#Cisco NX-OS#Python SDK#API Usage#Network Automation

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice