AAI Integration for Control-M

Automic Automation Intelligence (AAI) for Control-M allows you to put the runtime information of executions from different Clients in multiple Control-M systems into a single view. This means that you can see running executions (and possible failed ones) of more than one Control-M system in a single interface, without having to switch from one Control-M interface to another.

This page includes the following:

Overview

Click the image to expand it.

Graphic overview of the connection between AAI and Control-M

The Control-M Connector establishes the communication between Control-M and Automic Automation Intelligence. It is a stand-alone component. As such, it runs in its own process space, has its own installer and writes its own log files. It consists of two main parts:

  1. The universal connector framework, which handles the communication between the Control-M Connector and AAI. It also triggers, or determines, when the Connector fetches job definitions and events (executions) from Control-M.
  2. A mapper, which extracts job definitions and events (executions) from Control-M and translates them into a format that Automic Automation Intelligence can process.

Therefore, it is recommended to install the Control-M Connector near the Control-M installation.

The Connector connects with the Control-M database to periodically extract job definitions and executions (current and historical runs) and import them into AAI.

The Control-M Connector has different settings that can be modified at any time. For example, you can define the following behaviors:

  • The interval in which the job definitions and events (executions) are fetched. You can set the interval for fetching both individually.
  • Upon starting, how far back should the Connector look the first time it fetches information.
  • How far forward should the Connector look, thus gathering information on planned start times.

Once the Connector is installed and running for the first time, it reaches to Automic Automation Intelligence and registers itself. The user sets up the Control-M configuration in the Automic Automation Intelligence client. Once Automic Automation Intelligence has configured the Connector to talk to Control-M, the Connector schedules retrieving the job definitions and events (executions) from Control-M, translates them into the relevant format and passes the information to Automic Automation Intelligence.

Each Control-M datacenter that you want to add to your AAI environment requires its own Control-M scheduler configuration. Several schedulers can be linked to one Connector. However, only one Connector can be linked to an Automic Automation Intelligence environment.

Setup and Configuration

Before adding a Control-M instance to your Automic Automation Intelligence system, you must have Automic Automation Intelligence up and running. For more information, seeInstallation and Upgrade.

The Control-M Connector has to be installed as well. You can find the relevant installation files (Windows or UNIX) at https://downloads.automic.com/. If you need help with the installation, please contact our support team at https://support.broadcom.com/.

The naming conventions for Control-M connectors (mainframe and distributed) .zip files are the following:

  • AAI.Control.M.Connector.<product_version>.zip

  • AAI.Control.M.Connector.Z<product_version>.zip

Important !

For performance reasons, it is recommended to install the Control-M Connector near the Control-M installation, not near Automic Automation Intelligence.

Also, you can secure your Connectors using TLS 1.2 based secure connections. For more information, see Securing Automic Automation Intelligence.

Important !
  • Check the compatibility matrix (compatibility matrix) to find the relevant information on supported versions and possible dependencies. For more information, see Compatibility Information.

  • When upgrading AAI and connectors, make sure you take down the relevant connectors, upgrade and start AAI, and then upgrade and start each connector.

Installing the Control-M Connector on Windows

To install the Control-M Connector on Windows:

  1. Go to https://downloads.automic.com/ and log in with your Broadcom account.

  2. On the Downloads page, select Automic Automation Intelligence and download the relevant version of the Control-M Connector.

  3. Run the connector.control-m.exe file to setup the installer.

  4. Follow the instructions in the setup wizard.

    You can define a destination directory, if you want to create a Start Menu folder and / or shortcuts for all users.

    You are also prompted to define the log file location, max file size, and number of log files to retain.

    When you are done with the wizard, you can find the Control-M Connector folder in the directory that you defined.

    The Connector starts as a Service (connector.control-m).

    Note:

    You can use the services.msc to start and stop the service or to check its status.

Installing the Control-M Connector on UNIX

To install the Control-M Connector on UNIX:

  1. Go to https://downloads.automic.com/ and log in with your Broadcom account. .

  2. On the Downloads page, select Automic Automation Intelligence and download the relevant version of the Control-M Connector.

  3. Unzip the .zip file that you downloaded and unpack the .tar.gz file within to get the connector-install.sh and connector.control-m-<version>.rpm files.

  4. Run connector-install.sh to start the installation, for example:

    ./connector-install.sh install

    The Connector is installed using the .rpm file provided.

  5. Configure the Connector to point to your AAI installation. To do so, run the configure script:

    cd /opt/broadcom/connector.control-m

    sudo -u connector.control-m ./configure-connector.control-m.sh

    Follow the prompts to enter the AAI URI.

    Example

    This example shows the Connector installed on the AAI server, running HTTP and on the default port. The Connector name can be freely defined and shows up in the UI when adding the scheduler.

    [sudo -u connector.control-m ./configure-connector.control-m.sh
    *** CONFIGURING CONNECTOR ***
    
    Backing up configuration file to: application.yml.bak...
    ...Configuration file backed up to: application.yml.bak.
    
    Please enter the following configuration parameters.
    
    Enter AAI server URI (e.g., "https://localhost:4443"): http://localhost:8080
    Enter connector name: control-m
    Enter host name: localhost
    Enter connector key password (will not echo, required for HTTPS):
    Enter AAI server username (required for HTTP): admin
    Enter AAI server password (will not echo, required for HTTP): password
    Enter connector domain: JAWS

    If the installation ended successfully you see the following:

    Verifying AAI server connectivity (please stand by)...2020-12-08 23:54:55,708 INFO [ApiCallerUtil] Attempting HTTP connection to AAI
    
    ...AAI server connectivity verified.
    
    Saving connector configuration to: application.yml...
    ...connector configuration saved to: application.yml.
    
    *** CONNECTOR CONFIGURED ***

  6. Start the service using the following command:

    sudo systemctl start connector.control-m

  7. Verify the service by running the following command:

    sudo systemctl status connector.control-m

  8. Use the systemclt command to start the service:

    systemctl start connector.control-m

    You can also use the systemclt command to stop or to restart the connector, or to get its status. For example:

    systemctl stop connector.control-m

    systemctl restart connector.control-m

    systemctl status connector.control-m

  9. Use the systemctl command to enable the service:

    systemctl enable connector.control-m

    Tip:

    This step is recommended to have the Connector restart automatically as part of the server reboot process.

Upgrading, Uninstalling and Connector Status

You can also run the connector-install.sh to upgrade or uninstall the connector, or to get its status using the following commands:

./connector-install.sh upgrade

./connector-install.sh uninstall

./connector-install.sh status

If the current status of your system does not allow you to run a specific command, you get a corresponding error message. For example, you cannot upgrade a package that has not yet been installed.

./connector-install.sh upgrade

Can't upgrade the connector 'connector.control-m" isn't installed. Please 'install' instead.

Important !
  • During the upgrade, you are prompted to configure the Connector once more and you can choose to do so, if necessary. However, when upgrading, the system creates and saves a backup of the Connector's configuration and uses that setup for the installation of the upgraded version.

  • Running the uninstall command removes the Connector (including the service) from the system. It also gives you information on which files and directories are left behind, which can be relevant if you want to re-install the Connector. If not, you can delete them manually.

You also have to add Control-M schedulers to your Automic Automation Intelligence environment. To do so, go to System > Schedulers in your web interface and follow the steps in the dialog to add a Control-M scheduler. For more information, see Configuring Control-M / Control-M (z) Schedulers.

If the process was successful, the new schedulers are listed with all the schedulers available in your system.

You must add a new Control-M scheduler for each Control-M datacenter that you want to integrate into your AAI environment. You can add the Control-M schedulers in AAI before installing the Control-M Connector. However, you will not be able to use them until the Connector is up and running.

Supported Control-M Objects

The Control-M integration into Automic Automation Intelligence supports the following objects:

  • Jobs

    A Control-M Job is a definition of a command to run. This definition includes the conditions, execution frequency, and the target machine in which to run the command.

  • Events

    A Control-M Event is the definition of a Job's state change, error, or success. These are used to determine if jobs succeeded, failed, and/or were retried. Dependent jobs occasionally use these events as conditions.

  • Folders (Smart, Simple, Complex and so on)

    A Control-M Folder is a container definition for Jobs and subfolders. Folders enable you to configure various settings such as scheduling, event management, resources, or notifications. Folder-level definitions are inherited by the Jobs or subfolders within the folder.

  • Resources

    A Control-M Resource is something that a Control-M Job depends on and use. Control-M Resources can be Logical or Quantitative. Logical Resources include physical drives, tables, or databases. Quantitative Resources is a physical or logical entity that you can count, such as a CPU, or Table/Data set.

  • Node

    A Control-M Node is a host computer that a Job is sent to, to be executed. Each Node is running a Control-M Agent that orchestrates and monitors the Job and its result.

For more information, please refer to the Control-M documentation at documents.bmc.com.

You can use those Control-M objects to carry out the following actions in Automic Automation Intelligence :

  • Create (SLA) for different jobstream setups (simple, complex and/or with external dependencies)
  • Locate a possible bottleneck in a jobstream (critical path)
  • Create dashboards