Setting Up the ESP Connector

Before adding an ESP instance to your Automic Automation Intelligence system, you must have Automic Automation Intelligence up and running. For more information, see Installation and Upgrade.

You also need to install the ESP Connector. This section guides you through the necessary steps to install and configure it. The Connector submits data request to ESP and handles deliveries in return.

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 the ESP Connector .zip file are the following:

  • AAI.ESP_Connector_<product_version>.zip

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

See also Configuring the Connectors for TLS Authentication.

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.

This page includes the following:

Installing the ESP Connector on Windows

The configuration of the ESP connector starts automatically after the installation.

To install the ESP Connector on Windows:

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

  2. On the Downloads page, selectAutomic Automation Intelligence > Automic Automation Intelligence Engine MULTI-PLATFORM and download the relevant version of the ESP Connector.

    Put the .zip file in a temp location on the server where the connector will run and unzip the file to that location.

    The Connector is delivered as a mountable ISO file within the .zip file that you downloaded.

  3. Mount the ISO file. To do so, double-click the file, which is then mounted automatically as the new CD-ROM drive by default.

  4. Once the ISO file is mounted, run the esp-aai-connector-<version>.exe file to setup the installer.

  5. Follow the instructions in the setup wizard. You are prompted to configure the connector during the installation.

    Once the installation completes successfully, the ESP connector starts as a Service.

  6. If the connector configuration failed during the installation, or if you want to change the configuration, do the following:

    1. Go to the folder where the connector is installed.

    2. Execute setup.bat file. This will open the Command prompt window.

      Important!
      • Once setup.bat is started, the following message prompts you to obtain the Connector certificate: "If you are planning to make a TLS based connection to AAI then before proceeding please obtain the connector certificate package from the AAI server and copy it to C:\Program Files\esp-aai-connector\secure\"

      • If using the Connector certificate, generate it now. For more information, see Generating the AAI Server Key.

    3. Follow the instructions and enter the required information:

      • AAI server URI

        You must specify the protocol, domain host name or IP address, and a listening port number of the AAI server. This information should be captured during the AAI server installation.

        If you are using the Connector certificate, this URI may use HTTPS and port 4443. Otherwise, it will likely be the same port that is used to launch the AAI client from a browser, for example http{s}://hostname:port.

      • Connector name

        Name of your choice. This name will be selected from the web UI when adding a scheduler to AAI.

      • Host name

        Domain name or IP address of the host where the Connector runs

      • Connector key password

        This is only required if an HTTPS connection is used between the Connector and the AAI server. If HTTP is used, leave this empty and hit Enter.

      • AAI server user name

        Only required when using HTTP.

        Name of the user ID that will be used to establish a connection to the AAI server. The user must be authorized to add new schedulers.

      • AAI server password

        This is required only if a HTTP connection is used between the Connector and the AAI server. If HTTPS is used, this can be omitted.

      • Connector domain

        Typically this is JAWS. This is the login domain for the user/password provided and it can be any of the list of domains that have been set up in AAI. For more information about domains, see Domains.

    4. After you have entered the required information, the script continues with the connection to the AAI server to verify that the provided data is correct.

      If the connection is successful, the application.yml file is created in the folder where you have installed the Connector. This is a configuration file that contains the configuration values that you have just entered. At the same time, a backup copy of the application.yml is automatically created and renamed to application.yml.bak.

      In the case of a failure, the application.yml file is not populated with the values you entered. You would have to manually repeat the configuration process.

You also have to add ESP 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 ESP scheduler. For more information, see Configuring ESP Workload Automation Schedulers.

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

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

Starting, Stopping, Uninstalling and Connector Status - Windows

On Windows, you can start and stop the ESP connector and check its status as a Service.

You can also run the esp-aai-connector.exe to start it, stop it and check its status.

esp-aai-connector.exe /start

esp-aai-connector.exe /stop

esp-aai-connector.exe /status

Expected output if the service is running:

Running.

Auto-start.

Expected status if the service is not running:

Not running.

Auto-start.

For details, refer to the output.log file that is created in the folder where the Connector was installed.

Uninstalling the Connector

To uninstall the connector, do the following:

  1. Go to Apps & features.

  2. Select esp-aai-connector-(version).exe.

  3. Select the Uninstall button and follow the instructions.

Note:

The application.yml and application.yml.bak files, and the EspConnector directory remain in the C:\AAI connector\esp-aai-connector directory after uninstalling the Connector. You will have to delete those files and directories manually.

Installing the ESP Connector on UNIX (Linux or zLinux)

To install the ESP Connector on UNIX (Linux or zLinux):

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

  2. On the Downloads page, selectAutomic Automation Intelligence > Automic Automation Intelligence Engine MULTI-PLATFORM and download the relevant version of the ESP Connector.

  3. Unzip the .zip file that you downloaded.

    The Connector is delivered as a mountable ISO file within the .zip file that you downloaded.

  4. Mount the ISO file. To do so, create a mount point using the sudo mkdir -p /mnt/iso command. Then mount the ISO file using the mount -o loop <path_to_iso> /mnt/iso mount command .

    To verify if the file has been mounted correctly use the ls -al /mnt/iso command.

    Example

    [root@hostname ~]$ sudo mkdir -p /mnt/iso

    [root@hostname ~]$ sudo mount -o loop /home/root/esp-connector-1.0.2.iso /mnt/iso

    mount: /dev/loop0 is write-protected, mounting read-only

    [root@hostname ~]$ ls -al /mnt/iso/

    total 179663

    drwxr-xr-x. 2 root root 2048 Feb 8 11:35 .

    drwxr-xr-x. 3 root root 17 Mar 10 13:45 ..

    -rwxr-xr-x. 1 root root 48238080 Feb 8 11:35 esp-aai-connector-1.0.2.exe

    -rw-r--r--. 1 root root 45244443 Feb 8 11:35 esp-aai-connector-1.0.2.noarch.tar.gz

    -rw-r--r--. 1 root root 45244455 Feb 8 11:35 esp-aai-connector-1.0.2.s390x.tar.gz

    -rw-r--r--. 1 root root 45244451 Feb 8 11:35 esp-aai-connector-1.0.2.x86_64.tar.gz

    [root@hostname ~]$

  5. After mounting the ISO file, you can unpack the .tar.gz file within to get the connector-install.sh and esp-aai-connector~<version>.<architecture>.rpm files.

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

    ./connector-install.sh install

    The Connector is installed using the .rpm file provided.

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

    cd /opt/broadcom/esp-aai-connector

    sudo -u esp-aai-connector ./configure-esp-aai-connector.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 esp-aai-connector ./configure-esp-aai-connector.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: esp-aai
    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 ***

  8. Start the service using the following command:

    sudo systemctl start esp-aai-connector

  9. Verify the service by running the following command:

    sudo systemctl status esp-aai-connector

  10. Use the systemclt command to start the service:

    systemctl start esp-aai-connector

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

    systemctl stop esp-aai-connector

    systemctl restart esp-aai-connector

    systemctl status esp-aai-connector

  11. Use the systemctl command to enable the service:

    systemctl enable esp-aai-connector

    Tip:

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

You also have to add ESP 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 ESP scheduler. For more information, see Configuring ESP Workload Automation Schedulers.

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

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

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 'esp-aai-connector" isn't installed. Please 'install' instead.

Important !
  • Make sure you stop the Connector before upgrading or uninstalling it.

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

  • The application.yml and application.yml.bak files, and the EspConnector directory remain in the /opt/esp-aai-connector directory after uninstalling the Connector. You will have to delete those files and directories manually.

Setting the Connector to Request Definition Data at Start

Optionally, after installing and configuring the connector, you can verify that the JCL is submitted to ESP before starting the ESP connector:

  1. Obtain the ESP Connector ID.

    When the Connector starts, it prints out its ID in the log, for example *** Connector received (AXlmKbmkOnQ=).

    The string in brackets is the Connector ID. Keep this ID at hand because you will need it later.

  2. Retrieve the scheduler configuration using the following command:

    curl http://{host:port}/aai/api/v2/schedulers?fetch=all

    where you replace host and port with your installation data.

    The output contains the configuration data of all your schedulers.

  3. Use the Connector ID that you have just obtained to find the configuration that pertains to your Connector.

    The configuration data also provides the schedulerID. Keep this ID at hand because you will need it later.

  4. In your schedule's configuration, copy the entire json block that is called schedulerConnectionConfig and paste it to the conf.json file. Wrap that block in { }. This is what it should look like:

    {
      "schedulerConnectionConfig" : {
        ...    
      }  
    }
  5. To add the configuration that enables to retrieve jobs at start, copy and paste the following template at the end of the schedulerConnectionConfig block in your conf.json file:

    "default-trigger.publish-jobs-on-startup": true

    The content of the conf.json file should be similar to this now:

    {
      "schedulerConnectionConfig" : {
        ...
        "default-trigger.publish-jobs-on-startup": true
      }  
    }
  6. To update the configuration, run the following command:

    curl -v -H "Content-Type: application/json" -X PUT --data

    @conf.json -u your_username:your_password

    http://{host:port}/aai/api/v2/schedulers/{schedulerId}

    Where:

    • {schedulerId} is the scheduler ID that you have just got in the configuration data.

    • your_username and your_password are your AAI credentials

      Note:

      If you are running this command from a different folder then specify an absolute path to your conf.json file.

    • {host:port} are your installation data

  7. Once you have verified the connection, you can turn off the retrieval of jobs at start by modifying the conf.json and turning off the publish-jobs-on-startup flag. For this purpose, run again the following command:

    curl -v -H "Content-Type: application/json" -X PUT --data

    @conf.json -u your_username:your_password

    http://{host:port}/aai/api/v2/schedulers/{schedulerId}

    The content of the conf.json file should be similar to this now:

    {
      "schedulerConnectionConfig" : {
        ...
        "default-trigger.publish-jobs-on-startup": false
      }  
    }

Enabling Secure Connection Between the ESP Connector and Message Service Hub

  1. Obtain the ESP Connector ID.

    When the Connector starts, it prints out its ID in the log, for example *** Connector received (AXlmKbmkOnQ=).

    The string in brackets is the Connector ID. Keep this ID at hand because you will need it later.

  2. Retrieve the scheduler configuration using the following command:

    curl http://{host:port}/aai/api/v2/schedulers?fetch=all

    where you replace host and port with your installation data.

    The output contains the configuration data of all your schedulers.

  3. To configure a secure connection, copy and paste the following template at the end of the schedulerConnectionConfig block in your conf.json file:

    "esp-scheduler.mq-transport": "jks",

    "esp-scheduler.mq-jks-keyStore": "",

    "esp-scheduler.mq-jks-keyStorePassword": "",

    "esp-scheduler.mq-jks-trustStore": "",

    "esp-scheduler.mq-jks-trustStorePassword": ""

  4. The content of the conf.json file should be similar to this now:

    {
      "schedulerConnectionConfig": {
        ...
        "esp-scheduler.mq-transport": "jks",
        "esp-scheduler.mq-jks-keyStore": "",
        "esp-scheduler.mq-jks-keyStorePassword": ""
        "esp-scheduler.mq-jks-trustStore": "",
        "esp-scheduler.mq-jks-trustStorePassword": ""
      }  
    }
  5. Update the keyStore, the trustStore and their respective passwords.

    Update the properties according to your environment. Typically, the keyStore stores the private key of the ESP Connector and the trustStore stores the public key of the Message Hub server.

    The content of the config.json file should be similar to this:

    {
      "schedulerConnectionConfig": {
        ...
        "esp-scheduler.mq-transport": "jks",
        "esp-scheduler.mq-jks-keyStore": "/u/a/keystore.jks",
        "esp-scheduler.mq-jks-keyStorePassword": "123"
        "esp-scheduler.mq-jks-trustStore": 
    "/u/a/truststore.jks",
        "esp-scheduler.mq-jks-trustStorePassword": ""
      }  
    }
  6. To update the configuration, run the following command:

    curl -v -H "Content-Type: application/json" -X PUT --data

    @conf.json -u your_username:your_password

    http://{host:port}/aai/api/v2/schedulers/{schedulerId}

  7. Start the ESP connector.

See also: