Control-M (9.0.18)
Overview Copied
The Control-M plug-in allows you to monitor scheduled jobs that are running on a Control-M server.
This plug-in supports Control-M versions beginning 9.0.18, and is based on Control-M’s REST API. For more information on supported Control-M versions, see the Geneos Compatibility Matrix.
Intended audience Copied
This guide is directed towards Geneos users who want to set up a plug-in to monitor an existing Control-M solution.
As a user, you should be familiar with general administration of the Control-M solution, as well as its terminologies.
Prerequisites Copied
You need the following to set up the Control-M plug-in:
Java requirements Copied
- You must have Java installed on the machine running the Netprobe. For information on supported Java versions, see Java support in Geneos Compatibility Matrix.
- Once you have Java installed, configure the environment variables required by the Netprobe so that it can locate the required resource files. For guidance, see Configure the Java environment.
The Java installation and environment configuration is a common source of errors for users setting up Java-based components and plug-ins. It is recommended to read Configure the Java environment to help you understand your Java installation.
Control-M credentials Copied
- Control-M server host name or IP address
- Control-M server port
- Control-M username and password
The Netprobe does not allow plaintext connections to the Control-M server, as it enforces an SSL connection to the Control-M server API.
If you attempt to connect to a non-SSL port, this causes a connection timeout and displays this error message:
Failed to connect to Control-M server: Unrecognised SSL message, plaintext connection?
Set up Control-M monitoring Copied
Setup involves two main tasks:
- Create the Control-M sampler.
- Associate the Control-M sampler with a managed entity.
Create the Control-M sampler Copied
- In the Gateway Setup Editor, create a new sampler by right-clicking the Samplers folder and selecting New Sampler.
- Enter a name for this sampler. For example, enter the name “ctrl-m” in the Name field.
- Under the Plugin field, click the drop-down list and select
control-m
. - In the Basic tab below the Plugin field, enter the Control-M server information for the following fields:
- In the Host field, select either
name
oripAddress
, then enter the host name or IP address. - In the Port field, enter the port number.
- In the Username field, enter the username.
- In the Password field, select either
stdAES
to set your password directly in the sampler, orvar
to enter the password you set in the managed entity.Note
You can toggle betweendata
andvar
for the host Name, Port, and Username fields. This toggle option allows you to define either a text or numerical value (data
) or variable (var
) for these fields.
- Click Save current document
to apply your changes.
Success
The sampler can now be associated with a managed entity. This sampler provides the default JobView dataview, which shows all jobs running in the Control-M server.
The JobView dataview appears by default when you do not specify any Dataviews in the Control-M sampler. You can define your own dataviews based on filters of the Control-M parameters.
Associate the Control-M sampler with a managed entity Copied
- In the Gateway Setup Editor, create a new managed entity by right-clicking the Managed entities folder and selecting New Managed entity.
- Enter a name for this managed entity. For example, enter the name “ctrl-m” in the Name field.
- In the Options field, select the probe on which you want the sampler to run.
- Under the Sampler field, click
Add new
. - In the text field under Ref, select the sampler you just created from the drop-down list.
- Click Save current document to apply your changes.
Success
After you save your changes to the managed entity, the Control-Mdataview appears under the managed entity on the Active Console state tree.
Metrics and dataviews Copied
By default, the Control-M plug-in shows all metrics in its dataview. You can add custom dataviews by filtering jobs by certain parameters, and by arranging the metrics you want to see in columns. For more information on filtering, see Job view filters.
Show Waiting Info Copied
Beginning Control-M version 9.0.19.220, a parameter called Waiting Info
is available. This parameter displays the reason for why a job in waiting has not been executed yet.
You can look at the waiting info from the dataview for a job in waiting. Right-click the row and select Show Waiting Info:
The Output Dockable appears, displaying the applicable reason:
For more information, see Control-M plugin in Gateway Commands.
Field | Description |
---|---|
jobId
|
Unique ID that references a specific job. Each job in the run has a This metric serves as the primary key and is always the first column in the dataview. |
application
|
Application that a job falls under. Applications provide a common name to a set of related jobs. These jobs do not necessarily have to run at the same time. |
name
|
Name of the job. |
type
|
Indicates the type of job running. Possible values:
|
status
|
Job status. Possible values:
|
startTime
|
ISO 8601 date and timestamp of when the job starts running. Format: |
endTime
|
ISO 8601 date and timestamp of when the job is terminated. Format: |
estimatedStartTime
|
Estimated date and time when the next job runs are expected to begin. Up to 50 queued job runs can be estimated in advance. Estimations are based on run times of previous jobs runs, and are available only if the Batch Impact Manager or Control-M Forecast is active in your environment. Format: |
estimatedEndTime
|
Estimated date and time when the next job runs are expected to end. Up to 50 queued job runs can be estimated in advance. Estimations are based on run times of previous jobs runs, and are available only if Batch Impact Manager or Control-M Forecast is active in your environment. Format: |
elapsedTime
|
Time elapsed since the start time, measured in Unix time. Note: This field is calculated based on the local time of the Netprobe against the local time of the Control-M server. If the two components are not in the same time zone, then the elapsed time may display different values. |
description
|
Description of the job. |
ctm
|
Name of Control-M server where the job is running. |
deleted
|
Indicates if the job was deleted. Possible values:
|
folder
|
Folder that a job falls under. A folder is a container of jobs which share the same settings. |
folderId
|
Unique ID that references a specific folder. |
held
|
Indicates if the job was held. Possible values:
|
host
|
Host name of the Control-M server where the job is running. |
logUri
|
URI to the job log. |
numberOfRuns
|
Number of job runs. |
orderDate
|
Date on which the job is scheduled to run. Format: |
outputUri
|
URI to the job output. |
subApplication
|
Sub-application that a job falls under. Sub-applications provide a common name to a set of related jobs. These jobs do not necessarily have to run at the same time. |
Job view filters Copied
You can create custom dataviews which show jobs based on filters you specify. Filters can be specified for a dataview by adding pairs of parameters and their matching criteria to the Control-M sampler.
Note
When naming your dataviews on the Control-M plug-in, make sure that these have unique names. If multiple dataviews have the same name, then only one of the views will show on the state tree.
Filters are optional. If you do not specify a filter, then the Control-M plug-in displays all metrics.
Filter matching behaviour Copied
The Control-M plug-in can parse simple criteria with no operators required:
Control-M also natively supports a filtering language to help refine your criteria. For more information, see the section titled Pattern matching strings on the Control-M 9.0.18 User Guide.
Field | Description |
---|---|
limit
|
Number of job records to retrieve. |
jobname
|
Retrieves jobs whose name contains the string specified. |
type
|
Retrieves jobs whose type is specified. Note: In general, the Control-M API matches to jobs. Folders are not matched independently to most parameters. Instead, folders are matched based on the parameters of its child jobs. This parameter enables you to retrieve folders, in addition to other Control-M job types. |
ctm
|
Retrieves jobs falling under the Control-M server specified. |
jobId
|
Retrieves jobs whose ID contains the string specified. |
folder
|
Retrieves jobs falling under the folder specified. |
folderLibrary
|
Retrieves jobs whose folder is located in the folder library specified. |
application
|
Retrieves jobs falling under the specified application. |
subApplication
|
Retrieves jobs falling under the specified sub-application. |
host
|
Retrieves jobs based on their host. |
hostGroup
|
Retrieves jobs based on their host group. |
description
|
Retrieves jobs based on its description. |
runAs
|
Retrieves jobs run by the user specified. This parameter refers to the user on the operating system. |
command
|
Retrieves jobs that contain the command specified. This particularly applies to command-type jobs. |
filePath
|
Retrieves jobs based on its associated file path. This particularly applies to script-type jobs. |
fileName
|
Retrieves jobs based on its associated filename. This particularly applies to script-type jobs. |
workLoadPolicy
|
Retrieves jobs based on the workload policy that is linked to the resource. |
ruleBasedCalendar
|
Retrieves jobs based on rule-based calendars assigned. Format: { Included": ["calendar1"], "Excluded": ["calendar2"] }
|
resourceMutex
|
Retrieves jobs based on the mutex type. Possible values:
|
resourceSemaphore
|
Retrieves jobs based on the number of semaphores assigned. |
orderDateFrom
|
Retrieves jobs that are scheduled to run after the specified date. Format: |
orderDateTo
|
Retrieves jobs that are scheduled to run before the specified date. Format: |
fromTime
|
Retrieves jobs that started after the time specified. Format: |
toTime
|
Retrieves jobs that started before the time specified. Format: |
status
|
Job status to retrieve. For more information on Control-M job statuses, see Metrics and dataviews. |
neighborhood
|
Enables you to search for predecessor and dependent jobs. This parameters is used in conjunction with |
direction
|
Sets which relationship direction to look for when filtering related jobs. Possible values:
This parameter is used in conjunction with |
depth
|
Number of job levels from the specified job. This parameter is used in conjunction with |
Plugin configuration Copied
Caution: When you update the configuration of certain Java-based plug-ins, including this one, the Netprobe running it has to restart. Be aware of other potentially unrelated plug-ins that can be affected when you configure this particular plug-in.
Basic tab Copied
The Control-M plugin requires your organisation’s Control-M credentials to run successfully.
Field | Description |
---|---|
Host |
Control-M server host name or IP address. Choose the appropriate field on the drop-down list ( If you choose the name field, you can toggle between entering a text or numerical value ( |
Port |
Control-M server port. You can toggle between entering a numerical value ( |
Username |
Control-M username to log in with. You can toggle between entering a text or numerical value ( |
Password |
Control-M password to log in with. Choose the appropriate field when specifying the password:
|
Advanced tab Copied
The Control-M plug-in has a few more configuration options in the Advanced tab: