C H A P T E R 6 EEM Python Module Embedded Event Manager (EEM) policies support Python scripts. Python scripts can be executed as part of EEM actions in EEM applets. Prerequisites for the EEM Python Module, on page 143 Information About EEM Python Module, on page 143 How to Configure the EEM Python Policy, on page 146 Additional References EEM Python Module, on page 151 Feature Information for EEM Python Module, on page 152 Prerequisites for the EEM Python Module Guest Shell must be working within the container. Guest Shell is not enabled by default. For more information see the Guest Shell feature.
Information About EEM Python Module Python Scripting in EEM Embedded Event Manager (EEM) policies support Python scripts. You can register Python scripts as EEM policies, and execute the registered Python scripts when a corresponding event occurs. The EEM Python script has the same event specification syntax as the EEM TCL policy. Configured EEM policies run within the Guest Shell. Guest Shell is a virtualized Linux-based environment, designed to run custom Linux applications, including Python for automated control and management of Cisco devices. The Guest Shell container provides a Python interpreter.
EEM Python Package The EEM Python package can be imported to Python scripts for running EEM-specific extensions. Programmability Configuration Guide, Cisco IOS XE 17.16.x 143