300-610 practice question 5 of 35
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…
Full set: 277 questionsThe Cisco NX-SDK allows developers to create custom applications that run natively on NX-OS. When creating custom CLI commands for these applications, the developer must define a command handler class. This class inherits from the nxsdkpy.CmdHandler base class. The pyCmdhandler is the specific class instance within the application's code that is responsible for parsing the custom CLI command, executing the associated logic, and returning output to the console. It is the entry point for CLI interactions originating from an NX-SDK application.
A. clicmd.printConsole: This is a method used within a command handler to print output to the user's console, not the class that handles the command itself.
B. postCliCb: This refers to a post-CLI callback, a function that is executed after a CLI command has been processed, typically for logging or verification, not for handling the command's primary execution.
D. nxsdkpy.Validtoint: This is a utility function provided by the NX-SDK library to safely convert a value to an integer, not a class for handling CLI commands.
1. Cisco, "Cisco Nexus 9000 Series NX-OS Programmability Guide, Release 10.2(x)". In the chapter "Cisco NX-SDK," the section "Creating a Custom CLI Command" provides example code showing the definition of a command handler class: class pyCmdHandler(nxsdkpy.CmdHandler):. This demonstrates pyCmdHandler is the user-defined class for this purpose.
2. Cisco DevNet, "NX-SDK Tutorial". The tutorial's sample code for creating a CLI command consistently shows the implementation of a pyCmdHandler class that inherits from nxsdkpy.CmdHandler to process CLI input.
Keep practicing
Take the free 300-610 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 300-610 practice questions
- Question 3An architect must automate routine tasks within a data center The data center exclusively…
- Question 4A network consultant must design a high availability interconnection of a clustered Cisco…
- Question 6Refer to the exhibit. Refer to the exhibit. An engineer is creating a new data center des…
- Question 7A small company hosts several critical applications on bare-metal servers connected via i…
- Question 8A network engineer needs to configure a high availability feature for a data center that …
- Question 9A large financial institution hosts all customer data in a critical data center with a si…
