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.
LoggerConnector log level and log file behavior.
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.

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

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.-

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

The logger section controls the verbosity of the connector log and whether the connector writes a dedicated log file.

ParameterMeaningDefault value
LOG_LEVELLevel of the log messages.debug
LOG_FILEIf true, write a file called unikix_connector.log.true

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

# logging options
LOG_LEVEL=debug
LOG_FILE=true

# 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.

Which logging level should I use?

The default is debug. Adjust it based on the volume of detail you need in the connector log.

Where are the connector log files written?

When LOG_FILE is true, the connector writes a file named unikix_connector.log alongside the JAR file. Job-specific Unikix log files are written by Unikix BPE to UNIKIX_LOG_DIR and are then moved by the connector into the matching class subdirectory 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 ends with _YY_MM_DD.
INI fileThe connector's configuration file (unikix_connector.properties), placed alongside the JAR.

Related topics: