Designing Cisco Data Center Infrastructure (DCID) — Question 184
A Cisco engineer is developing a custom application that can run natively in Cisco NX-OS on Nexus 9000 and Nexus 3000 platforms. For the NX-SDK application to run, the engineer enables the NX-SDK feature on the device. Then the NX-SDK is imported into the application via an import nx_sdk_py statement. The engineer creates custom CLI commands and defines custom CLI command syntax within the sdkThread function. When CLI commands originate from an NX-SDK application, what class is this?
Answer options
- A. clicmd.printConsole()
- B. nx_sdk_py.void_to_int
- C. pyCmdHandler
- D. postCliCB
Correct answer: C
Explanation
The correct answer is C, pyCmdHandler, as this class is specifically designed to handle CLI commands originating from an NX-SDK application. The other options, while related to the NX-SDK or CLI, do not serve as the class for handling CLI commands from NX-SDK applications.