QuestionQ93

Cisco Platforms and Development

Refer to the exhibits.

Question Image

Question Image

The Python interpreter and Cisco Python SDK are available by default in Cisco NX-OS Software. The SDK documentation demonstrates how the clid() API may be used with JSON and XML. Which two effects result from running the script?

Choose two
  • A configure interface loopback 5
  • B show details for the TABLE interface
  • C issue shutdown on interface loopback 5
  • D show only the interfaces in the up status
  • E show only the interfaces in admin shut status
Explanation

The cli() command enters configuration mode for interface loopback 5 and applies no shut, which enables the interface. The JSON returned by clid('show interface brief') is iterated interface by interface, and the script prints a name only when that entry’s state value is up.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!