Skip to main content

Installation

This page describes how to install the SMA OpCon Unikix Connector and configure its INI file.

What is it?​

The SMA OpCon Unikix Connector is a Java-based connector delivered as a stand-alone JAR file. It runs on the Unix or Linux system that hosts Unikix BPE and integrates OpCon with Unikix BPE for job submission and return code management. For a broader description of what the connector does, see Overview.

Installation overview​

To install the Unikix Connector, complete the following steps:

  1. Confirm the prerequisites are met.
  2. Install the OpCon Unix Agent on the same system as Unikix BPE.
  3. Configure the INI file for the connector.

Before you begin​

Confirm the following before starting the installation:

RequirementDetail
Operating systemSupported Unix or Linux system that hosts Unikix BPE.
Unikix BPEInstalled and running on the target system.
OpCon Unix AgentInstalled on the same system as Unikix BPE.
Java runtimeCompatible Java distribution. As of release 21.0, the connector is compiled with Java 1.8, so an OpenJDK 1.8 distribution is required.
note

The connector and the OpCon Unix Agent must run on the same system as Unikix BPE.

Step 1: Install the OpCon Unix Agent​

The Unikix Connector relies on the OpCon Unix Agent to communicate with the OpCon server. The Unix Agent installation procedure is documented in the OpCon Unix Agent documentation.

Step 2: Configure the INI file​

The connector reads its configuration from an INI file in the same directory as the JAR file. The INI file groups parameters into the following categories:

CategoryPurpose
Workspace directoriesLocations for the daily JCL, run-time copy, and procedures.
Unikix log directoryLocation of the Unikix BPE job log files.
Unikix history directoryLocations where the connector archives job log files by class.
LanguageOutput language for connector log messages.
LoggerTwo parameters that appear in the file but have no effect.
File name and location

The INI file is named unikix_connector.properties. Place it in the same directory as the connector JAR file.

Workspace directories​

The workspace section defines where the connector reads daily JCL files, where it copies them to run, and where it looks for procedures referenced from those JCL files.

DAILY_DIR, EXEC_DIR, and PROC_DIR are relative to WORKSPACE. For example, if WORKSPACE is /appl/unikix and DAILY_DIR is daily, the daily JCL scripts are located in /appl/unikix/daily.

All four parameters in this section are required. If any is missing, the connector reports which ones and stops before running the job.

ParameterMeaningRequiredDefault value
WORKSPACEWorkspace directory. All other folders are relative to this one.Yes-
DAILY_DIRDirectory where the daily JCL scripts are located.Yes-
EXEC_DIRDirectory where the daily JCL files are copied so they can be run.Yes-
PROC_DIRDirectory where the procedures called from the JCL files are located.Yes-

Unikix log directory​

The Unikix log directory tells the connector where Unikix BPE writes its raw job log files. The connector reads from this location after each job and copies the matching file into the history directory.

ParameterMeaningDefault value
UNIKIX_LOG_DIRDirectory where Unikix writes the job log file.-

Unikix history directory​

The history section defines where the connector archives Unikix log files for completed jobs, organized into one subdirectory per JCL class.

The class subdirectories are relative to HISTORY_DIR. For example, if HISTORY_DIR is /opt/Sched and CLASSE_A is historyA, the log files for class A jobs are stored in /opt/Sched/historyA.

ParameterMeaningDefault value
HISTORY_DIRDirectory where the log files are copied.-
CLASSE_ALog directory for class A jobs.-
CLASSE_BLog directory for class B jobs.-
CLASSE_CLog directory for class C jobs.-
CLASSE_FLog directory for class F jobs.-
CLASSE_ILog directory for class I jobs.-
CLASSE_TLog directory for class T jobs.-
note

The connector looks up the entry for a job's class in upper case, so a job run with -c a reads CLASSE_A. A job whose class has no matching entry in the file is rejected.

Language​

The connector can output log messages in English or in Italian.

note

Most log messages are not translated into Italian. Debug messages are not translated and are always written in English.

ParameterMeaningDefault value
LANGLanguage for output messages. Values: en or it.en

Logger​

These two parameters have no effect

LOG_LEVEL and LOG_FILE appear in the shipped configuration file, but the connector does not read either of them. Changing them does not change the log level, and the connector does not write a file named unikix_connector.log. Logging behavior is fixed by the logging configuration bundled inside the connector JAR.

Leave both as they are. They are documented here only so that their presence in the file is not mistaken for a working setting.

Example INI file​

The example below shows a complete INI file with one value for every parameter. Use it as a starting point for your own configuration.

# execution options
WORKSPACE=/etc/prod/
DAILY_DIR=daily
EXEC_DIR=eshell
PROC_DIR=procshp

# directory where Unikix logs are
UNIKIX_LOG_DIR=/etc/log/batch

# directory where this connector stores the history files
HISTORY_DIR=/etc/sched
CLASSE_A=histA
CLASSE_B=histB
CLASSE_C=histC
CLASSE_F=histF
CLASSE_I=histD
CLASSE_T=histE

# language
LANG=en

FAQs​

Where does the INI file need to be placed?​

The INI file is named unikix_connector.properties and must be placed in the same directory as the connector JAR file.

Are the workspace subdirectories absolute or relative paths?​

DAILY_DIR, EXEC_DIR, and PROC_DIR are relative to WORKSPACE. The class subdirectories (CLASSE_A through CLASSE_T) are relative to HISTORY_DIR.

Can I change the connector's logging level?​

Not through the configuration file. The LOG_LEVEL and LOG_FILE parameters in that file are not read by the connector, and logging behavior is fixed by the configuration bundled inside the JAR.

Where are the Unikix job log files written?​

Unikix BPE writes them to UNIKIX_LOG_DIR. After each job the connector moves the matching file into the subdirectory for the job's class under HISTORY_DIR.

Glossary​

TermDefinition
Unikix BPEThe Batch Processing Environment within the Unikix solution that runs JCL files.
ClassAlso called Unikix activity class. Identifies the class of a Unikix job. The connector accepts only a, b, c, f, i, and t. Class names are case sensitive.
Master repositoryThe folder on the Unikix server that holds the source JCL files.
Daily repositoryA dated copy of the master repository that the connector uses for the day's runs. The folder name is the DAILY_DIR value followed by an underscore and the run date in yy-MM-dd form — for example daily_26-09-21.
INI fileThe connector's configuration file (unikix_connector.properties), placed alongside the JAR.

Related topics: