The pysros.esm module provides functionality obtain data from the specific event that triggered the execution of a Python application from the SR OS subscriber management system.

Note

This module is available when executing on SR OS only. On a remote machine, subscriber management functionality is not supported.

pysros.esm.get_event()

The subscriber management event that triggered the execution of the Python application.

Returns

The Event object or None.

Return type

pysros.esm.Event or None

class pysros.esm.Event

The ESM pysros.esm.Event Class for the event that triggered the execution of the Python application.

eventparameters

The additional parameters specific to the event that caused the Python application to execute.

Type

pysros.ehs.EventParams

class pysros.esm.EventParams

The additional parameters of the specific pysros.esm.Event. This class is read-only. Specific additional parameters may be accessed using standard Python subscript syntax.

keys()

Obtain the additional parameters names.

Returns

Additional parameters names for the Event.

Return type

tuple(str)

params[key]

Return the value of the parameter key. If the parameter does not exist, a KeyError is raised.