EasyManua.ls Logo

Kentrox RMX-3200 - Job Configuration Overview; Script Package Components

Kentrox RMX-3200
388 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Remote RMX-3200 Version 5.2x Configuration Guide
Configuring Jobs: Job Configuration Overview
23-2
Job Configuration Overview
A job contains the specifications for running an instance of a script. It refers to a script
defined within a package and specifies the parameters for execution on Remote
RMX-3200. Scripts are defined in packages and specify the parameters for execution
when the associated jobs run.
Figure 23-1 on page 23-3 illustrates how scripting
operates in Remote RMX-3200.
Note: All job configuration examples in this document are set up in the CLI; however,
similar functions can also be performed from the Remote Web interface. See
Accessing the Web Interface on page 2-9 for details.
Script Package Components
Before you configure a job on Remote RMX-3200, you must first create a script
package. A script package (.pkg file) contains two basic components:
Python modules
A package manifest file
Python Modules
A script package can contain one or more Python modules (.py or .pyc files). Each
Python module can contain one or more scripts or it can be empty. A script is a
Python class that defines a run and stop method, which implements the scripting
interface on Remote RMX-3200. A script can define job properties, which pass
runtime parameters and/or settings (such as, connection information for a network
element, baud rates, TID’s, phone numbers, software version and user name and
password information) to Remote RMX-3200 when a job is executed. In addition, a
script can define job tasks and the properties required to request IP configuration for a
device or open a server socket connection to receive and transmit data.
In addition to Python modules, the script package can also contain Python packages.
A Python package is a way to store Python modules in a hierarchical directory
structure. For example, a Python package named PkgA will be created when you
create a directory named PkgA. This directory will store additional modules or
subpackages. In order for Python to recognize the directory as a Python package, the
directory needs to include a file named __init__.py. However, the file can be empty.
Package Manifest File
A Package Manifest file is an XML file that acts as a table of contents for the script
package. The package manifest lists which scripts the package contains, what tasks
must be configured to use the scripts and any supported properties for the script.

Table of Contents

Related product manuals