Installation
This topic discusses the tasks that you must perform to install and set up Control-M Automation API.
Tip
The following video demonstrates the setup tasks described on this page:
https://youtu.be/7QAuMDym9cw
Components and requirements
The following are the Control-M Automation API components and their requirements:
Component | Function and requirements | Further information |
---|---|---|
Control-M REST API | A set of commands that enables you to test, run and deploy job definitions and packages to Control-M. The REST API also enables you to provision a Control-M/Agent, manage environments, and more. The Control-M REST API is compatible with a variety of Control-M 9.x versions, starting with Control-M 9 Fix Pack 5 (that is, Control-M 9.0.00.500 and above). Note:
| The Control-M REST API is provided through the following Control-M components. For your work with the Control-M Automation API, you can choose to use one or both of these components. |
Control-M Workbench | A personal Control-M development environment that enables you to build, run, and test your job flows, without the need for a Control-M installation. To install a Control-M Workbench on your personal computer, you use a Docker. Control-M Workbench was tested on Docker version 19.03.1. Ports 8443 and 7005 must be free for use by the Control-M Workbench. Port 7005 is used by the Provision service. For a workbench on a docker platform, ensure that the container has at least 4GB of memory allocated. | Installing the Control-M Workbench |
Control-M instance | For your work with the Control-M Automation API, you can choose to use an installed instance of Control-M instead of the Control-M Workbench. | For information about installing Control-M, see the Installation Guide. For information about configuration of the Control-M Automation API in a Control-M installation, see the Control-M Administrator Guide. |
Control-M Automation Command Line Interface (CLI) | A Node.js package that exposes the Control-M REST API as a Command Line Interface (CLI). Software requirements:
| For installation instructions, see Installing the Control-M Automation CLI. For additional setup steps that you must perform after installing the CLI, see Setting up a Control-M environment for the CLI. |
Installing the Control-M Workbench
This section describes how to install the Control-M Workbench on your personal computer using a Docker. Installation of the Workbench enables you to have your own Control-M working environment without the need for a Control-M installation.
- Download the compressed Docker image.
- Load the image using the following command:
docker load -i controlm-workbench-9.20.000.xz
The image is loaded under the name controlm-workbench:9.20.000. Run the image using the following command:
docker run -dt --hostname=workbench -p 8443:8443 -p 7005:7005 controlm-workbench:9.20.000After the container is up and ready for use (this typically takes about one minute), get started by going to:
https://<WorkbenchIP>:8443/automation-api/startHere.html
Installing the Control-M Automation CLI
As of version 9.0.19 of Control-M, the Control-M Automation Command Line Interface (CLI) is installed on the Control-M/EM on Windows and Linux platforms during installation of Control-M, and it can be run from the bin directory. For such platforms, you can skip to Step 4 - Test the CLI Installation.
To manually install the CLI, ensure that the platform supports the installation of Node.js version 4.x or later and Java version 8. Installation instructions for the CLI are provided separately for each of the following platforms:
CLI installation for Windows
Use the following instructions to install the CLI on a Windows machine.
Step 1 - Install or Upgrade Node.js
- Download the Node.js Windows Installer from https://nodejs.org/en/download/. The Node.js installer includes the npm (Node Package Manager) utility.
- Run the installer and follow the instructions on screen.
To verify that you have the required version of Node.js (4.x or later) and npm (3.x or later), enter the following commands into a command prompt. (The following responses are examples.)
>node -v v6.2.0 >npm -v 3.8.9
Step 2 - Download Command Line Interface (CLI)
Download a ctm-cli.tgz node package from the following location:
Environment | Address |
---|---|
Control-M instance | https://<controlmEndPointHost>:8443/automation-api/ctm-cli.tgz An endpoint is the URI for Control-M Automation API. |
Control-M Workbench | https://localhost:8443/automation-api/ctm-cli.tgz or Click Download from https://localhost:8443/automation-api/startHere.html |
Step 3 - Install the CLI
To install the ctm-cli.tgz node package, run cmd
, and then type the following command from the directory where you saved the ctm-cli.tgz file:
>npm -g install ctm-cli.tgz
Step 4 - Test the CLI Installation
Run the following command through a command prompt:
>ctm
help:
help: Display help for a given command
help: help [command]
help:
help: Commands:
help: archive Control-M Workload Archiving operations
help: build Compile definitions to verify they are valid for Control-M
help: config Configure the Control-M environment
help: deploy Submit definitions to Control-M
help: documentation Get documentation
help: environment Define and select the Control-M environment
help: package Package a directory of definition files into a deployable archive
help: provision Install Control-M components
help: reporting Generate Control-M reports
help: run Run and track Control-M jobs
help: samples Manage data samples
help: session Manually maintain Control-M user sessions
help:
help: Options:
help: -h, --help output usage information
help: -v, --version output the application version
Step 5 - Install Java for the provision service
- Download the OpenJDK installer for Windows from https://developers.redhat.com/products/openjdk/download. Ensure that you obtain version 8 for 64-bit Windows.
- Run the installer and follow the instructions on screen.
To verify that you have the required version of Java, enter the following command into a command prompt. (The following response is an example.)
>java -version openjdk version "1.8.0_222-4-redhat" OpenJDK Runtime Environment (build 1.8.0_222-4-redhat-b10) OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
Where to go from here
Perform the setup steps described in Setting up a Control-M environment for the CLI.
CLI installation for Linux or UNIX
Use the following instructions to install the CLI on a Linux or UNIX machine.
Step 1 - Install or Upgrade Node.js
- Follow the download instructions in https://nodejs.org/en/download/ for your flavor of Linux or UNIX. It is recommended to install the latest stable Node.js . The Node.js installer includes the npm (Node Package Manager) utility.
- Run the installer and follow the instructions on screen.
To verify that you have the required version of Node.js (4.x or later) and npm (3.x or later), enter the following commands into a command prompt. (The following responses are examples.)
>node -v v6.2.0 >npm -v 3.8.9
Step 2 - Download Command Line Interface (CLI)
Download a ctm-cli.tgz node package from the following location:
Environment | Address |
---|---|
Control-M instance | https://<controlmEndPointHost>:8443/automation-api/ctm-cli.tgz An endpoint is the URI for Control-M Automation API. |
Control-M Workbench | https://localhost:8443/automation-api/ctm-cli.tgz or Click Download from https://localhost:8443/automation-api/startHere.html |
For example, you can use a command such as the following:
>wget https://vm-ctm-ep1:8443/automation-api/ctm-cli.tgz
Step 3 - Install the Command Line Interface (CLI)
Use the following command to install the ctm-cli.tgz node package:
>sudo npm -g install ctm-cli.tgz
Step 4 - Test the CLI Installation
Run the following command:
>ctm
help:
help: Display help for a given command
help: help [command]
help:
help: Commands:
help: archive Control-M Workload Archiving operations
help: build Compile definitions to verify they are valid for Control-M
help: config Configure the Control-M environment
help: deploy Submit definitions to Control-M
help: documentation Get documentation
help: environment Define and select the Control-M environment
help: package Package a directory of definition files into a deployable archive
help: provision Install Control-M components
help: reporting Generate Control-M reports
help: run Run and track Control-M jobs
help: samples Manage data samples
help: session Manually maintain Control-M user sessions
help:
help: Options:
help: -h, --help output usage information
help: -v, --version output the application version
Step 5 - Install Java to use the provision service
- Download the relevant OpenJDK package, as discussed in http://openjdk.java.net/install/. Ensure that you obtain version 8 for 64-bit.
- Run the installer and follow the instructions on screen.
To verify that you have the required version of Java, enter the following command into a command prompt. (The following response is an example.)
>java -version openjdk version "1.8.0_222-4-redhat" OpenJDK Runtime Environment (build 1.8.0_222-4-redhat-b10) OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode)
Where to go from here
Perform the setup steps described in Setting up a Control-M environment for the CLI.
CLI installation for macOS
Use the following instructions to install the CLI on a Mac OS.
Step 1 - Install or Upgrade Node.js
- Download the Node.js Mac OS X installer from https://nodejs.org/en/download/. The Node.js installer includes the npm (Node Package Manager) utility.
- Run the installer and follow the instructions on screen.
To verify that you have the required version of Node.js (4.x or later) and npm (3.x or later), enter the following commands into a command prompt. (The following responses are examples.)
>node -v v6.2.0 >npm -v 3.8.9
Step 2 - Download Command Line Interface (CLI)
Download a ctm-cli.tgz node package from the following location:
Environment | Address |
---|---|
Control-M instance | https://<controlmEndPointHost>:8443/automation-api/ctm-cli.tgz An endpoint is the URI for Control-M Automation API. |
Control-M Workbench | https://localhost:8443/automation-api/ctm-cli.tgz or Click Download from https://localhost:8443/automation-api/startHere.html |
For example, you can use a command such as the following:
>curl --insecure --output ~/ctm-cli.tgz \
https://vm-ctm-ep1:8443/automation-api/ctm-cli.tgz
Step 3 - Install the Command Line Interface (CLI)
Use the following command to install the ctm-cli.tgz node package:
>sudo npm -g install ctm-cli.tgz
Step 4 - Test the CLI Installation
Run the following command:
>ctm
help:
help: Display help for a given command
help: help [command]
help:
help: Commands:
help: archive Control-M Workload Archiving operations
help: build Compile definitions to verify they are valid for Control-M
help: config Configure the Control-M environment
help: deploy Submit definitions to Control-M
help: documentation Get documentation
help: environment Define and select the Control-M environment
help: package Package a directory of definition files into a deployable archive
help: provision Install Control-M components
help: reporting Generate Control-M reports
help: run Run and track Control-M jobs
help: samples Manage data samples
help: session Manually maintain Control-M user sessions
help:
help: Options:
help: -h, --help output usage information
help: -v, --version output the application version
Where to go from here
Perform the setup steps described in Setting up a Control-M environment for the CLI.
Setting up a Control-M environment for the CLI
After all the required components are installed, you must set up the default Control-M environment for use by the CLI and verify that the CLI can successfully establish a session. See the following sections for the necessary steps:
- Setting up a Control-M environment
- Setting the environment as default
- Verifying the setup by logging in to a session
- Accessing the documentation from the API
Advanced Automation API Server configuration
Advanced tasks for the configuration of the Automation API server are described in the Control-M Administrator Guide in the Control-M Online Help, including the following tasks:
- Changing the Automation API server port
- Limiting incoming traffic through an API gateway
- Limiting API connections to a specific GUI server
- Configuring Automation API session timeout
- Allowing session tokens to display in responses to API commands
- Configuring Control-M Web Server to HTTPS
- Setting annotations as optional in API commands
- Configuring maximum number of run IDs saved in the Control-M/EM database
Related information
For more information about Control-M, use the following resources:
Comments
Log in or register to comment.