New Documentation

   

Control-M Automation API Documentation has moved to a new location, with a new design to enhance ease of use.

Provision service

For Helix Control-M to run and monitor jobs on your application host, you must have an Agent installed. The Provision service allows you access to the full cycle of Agent setup when provisioning a new Agent. In addition, you can use the Provision service to deploy application plug-ins or integration plug-ins to the Agent during provisioning. A group of images is provided in the repository, including two types of images — Agent images (for the various operating systems), and plug-in images (for various Control-M plug-ins).

Note

To use the Provision service, ensure that you successfully installed the Control-M Automation CLI on the same machine where you plan to install the Agent. See Setting up the API.

The following commands are available for Agent provisioning:

  • Image: Prepares the file system installation of the Agent
  • Setup: Registers an Agent and connects it with a Control-M environment
  • Install: Runs all phases of image installation (including both image and setup)

Note

Before you perform setup or install for the first time, you must set the Java environment variable which points to an external Java installation. See Setting the Java Environment Variable.

Separating the Image and Setup phases can help in a situation in which installing and setting up agents dynamically is required by your architecture. In this scenario, you can prepare your image (whether it is a VM image, a Docker image, AWS AMI, etc.) with the Agent inside it. Then when required, use the setup command to dynamically perform a Control-M/Agent setup and register it to the Control-M/Server.

For a more static architecture, where there is no distinction between building an image and instantiation, you can use the provision install command, which allows you to install in a single step.

To provision a plug-in, run just the image command.

To prepare for provisioning, you must obtain the installation packages (for the Agent, application plug-ins, or integration plug-ins) that are referenced within the images.

Additional commands are available for removing an image and for uninstalling a Control-M/Agent from the application host.

Note

If the host on which you want to provision an Agent uses a proxy server, ensure that the HTTP_PROXY and HTTPS_PROXY environment variables are defined. Values for these variables are in the format {protocol}://{host}:{port}. For example, http://172.19.0.169:3128 or https://server.com:3128. For authentication to the proxy, include logon credentials, as in the following example: HTTP_PROXY= http://username:password@proxy.example.com:1234
If you want to opt out of proxying on specific hosts or particular destination ports, you can use the NO_PROXY environment variable, set with a comma-separated list of hosts. For example, NO_PROXY=hostname.example.com,10.1.0.0/16,172.30.0.0/16:443

provision images

Get a list of the images that are available on the server for a specific OS. Returns a list of image names.

CLI Syntax

CLI
ctm provision images <os> [-s version=all|latest|<numeric_string>]

Where:

Parameter

Description

<os>

OS can be one of the following:

  • Linux (for Linux 64-bit)
  • Windows (for Windows 64-bit)
-s version

Filters the returned list of images by version.

You can set this filter to one of the following values:

  • all — all images in the repository
  • latest — only images of the latest version
  • numeric_string — only images that contain the specified numeric string as part of their version number

The default is latest.

Here is an example of a request for a list of the latest available images and a typical response:

> ctm provision images Linux 
[
   "AWS_plugin.Linux",
   "Agent_Amazon.Linux",
   "Agent_CentOs.Linux",
   "Agent_Oracle.Linux",
   "Agent_RedHat.Linux",
   "Agent_Suse.Linux",
   "Agent_Ubuntu.Linux",
   "Application_Integrator_plugin.Linux",
   "Azure_plugin.Linux",
   "Databases_plugin.Linux",
   "Hadoop_plugin.Linux",
   "Informatica_plugin.Linux",
   "MFT_plugin.Linux",
   "SAP_plugin.Linux"
]

REST API Syntax

Example using  curl:

os=Linux
curl -H "x-api-key: $token" $endpoint/provision/images/$os?version=9.0.20.080

provision image

Downloads an image and installs it into the current user account.

For a plug-in, use just this command.

For an agent, after running this command you must still register the agent on the server using the setup command.

Note: This functionality is supported only through the CLI, and cannot be called through a REST API command.

CLI Syntax

CLI
ctm provision image <image>

Where:

Parameter

Description

<image>

The image that you want to provision, one of the images returned by the provision images command.

You do not need to include the OS extension in the name of the image. For example, you can specify Agent, rather than Agent.Linux. The operating system is detected automatically.

To verify that plug-in provisioning was successful, ensure that the relevant product code was added to the installed-versions.txt file located in the Agent home directory:

Plug-inProduct code
Application IntegratorDRAIT.9.0.20.080
AWSDRAMZ.9.0.20.080
AzureDRAZR.9.0.20.080
DatabasesDRMQL.9.0.20.080
HadoopDRCBD.9.0.20.080
InformaticaDRINF.9.0.20.080
Managed File Transfer (MFT)DRAFP.9.0.20.080
SAPDRRMC.9.0.20.080

provision saas:agent::setup  

Registers an agent and connects it with a Control-M environment.

Note: This functionality is supported only through the CLI, and cannot be called through a REST API command.

CLI Syntax

CLI
ctm provision saas:agent::setup <agentTag> [name]

Where:

Parameter

Description

<agentTag>

The agent tag associated with the agent authorization token.

[name]

A name or alias for the agent, for display in the list of agents in the Helix Control-M user interface.

The default (if not specified) is hostname-user.

To verify that the agent was registered successfully, ensure that the relevant product code, DRKAI.9.0.20.080, was added to the installed-versions.txt file located in the Agent home directory.

provision saas::install

Performs all phases of image installation. For an agent, this includes both image and setup.

Note: This functionality is supported only through the CLI, and cannot be called through a REST API command.

CLI Syntax

ctm provision saas::install <image> <agentTag> [name]

Where:

Parameter

Description

<image>

The image that you want to install (one of the images returned by the provision images command)

<agentTag>

The agent tag associated with the agent authorization token.

For information about generating a token, see Generating an Agent Token in the Helix Control-M documentation.

[name]

A name or alias for the agent, for display in the list of agents in the Helix Control-M user interface.

The default (if not specified) is hostname-user.

To verify that an agent was installed successfully, ensure that the relevant product code, DRKAI.9.0.20.080, was added to the installed-versions.txt file located in the Agent home directory.

provision agent::update

Downloads and installs the latest version of Control-M/Agent and any installed plug-ins to the agent machine that runs the command.

Note: 

  • This functionality is supported only through the CLI, and cannot be called through a REST API command. 
  • To run this command, the current version of Control-M/Agent must be 9.0.20.280 or higher.
  • If Control-M MFT or Control-M for SAP is installed on the Agent, you must stop the Agent before running this API command and start it afterwards. To avoid Agent downtime, you can create a host group and include multiple Agents with the same plug-in within the host group. After you shut down one Agent, jobs are routed to another Agent in the host group.

CLI Syntax

CLI
ctm provision agent::update [instanceName]

To skip confirmation messages during installation, add  -y  after the command.

Parameter

Description

[instanceName]

(Windows only) Specifies which Agent instance to update.

If not specified, the Default installation is updated.

Use this parameter if your environment has multiple Agents.

provision image::remove

Uninstalls an image from this user account without unregistering it in Control-M.

Note: This functionality is supported only through the CLI, and cannot be called through a REST API command.

CLI Syntax

CLI
ctm provision image::remove

provision agent::uninstall

Uninstalls an image from this user account and unregisters it from the server.

Note: This functionality is supported only through the CLI, and cannot be called through a REST API command.

CLI Syntax

ctm provision agent::uninstall


Back to top


Was this page helpful? Yes No Submitting... Thank you

Comments