350-901 practice question 30 of 35

What are two features of On-Box Python for hosting an application on a network device? (Choose two.)

Full set: 430 questions

Domain Using APIs

Answer options
A: It has direct access to Cisco IOS XE CLI commands. Correct answer
B: It is a Python interpreter installed inside the guest shell. Correct answer
C: It enables execution of XML scripts on a Cisco IOS XE router or switch.
D: It supports Qt for graphical interfaces and dashboards.
E: It has access to Cisco IOS XE web UI through a controller.
Correct Answer:
A. It has direct access to Cisco IOS XE CLI commands.; B. It is a Python interpreter installed inside the guest shell.
Explanation

On-Box Python on Cisco IOS XE devices operates within a secure, containerized Linux environment known as the Guest Shell. This architecture provides a platform to run custom Python scripts directly on the network device. A key feature of this environment is the inclusion of a Cisco-provided Python cli module. This module grants scripts direct access to the device's Command-Line Interface (CLI), allowing them to execute commands (e.g., show version) and process the output. This enables powerful on-box automation for tasks like monitoring, configuration, and troubleshooting without needing an external controller.

Why Incorrect

C. Python is a scripting language; it executes Python (.py) scripts. While Python can process XML data, it does not natively "execute" XML scripts.
D. The Guest Shell is a command-line Linux environment. It does not have a graphical subsystem to support GUI toolkits like Qt for building graphical interfaces.
E. On-Box Python runs locally on the device. It interacts directly with the device's internal systems (like the CLI), not through an external controller to access the web UI.

References

1. Cisco Systems, Inc. (2023). Programmability Configuration Guide, Cisco IOS XE Bengaluru 17.6.x. "On-Box Python" chapter, "Python CLI Module" section. This section explicitly states, "The Python CLI module provides a simple way to run CLI commands from a Python script," and provides the example cli.execute("show version").

2. Cisco Systems, Inc. (2023). Programmability Configuration Guide, Cisco IOS XE Bengaluru 17.6.x. "On-Box Python" chapter, "Guest Shell" section. This section describes the Guest Shell: "The Guest Shell is a containerized Linux environment that is isolated from the host operating system... The Python scripts that are created on the device can be executed using the Guest Shell."

3. Cisco DevNet (2022). Introduction to Guest Shell - IOS XE. This official learning lab documentation states, "Guest Shell is a containerized architecture that provides a virtualized Linux-based environment on the switch... Guest Shell provides a platform to install and run Linux applications and Python scripts."

Scroll to Top