Server Configuration
The following API commands enable you to configure a Server:
config server::delete
The config server::delete command enables you to delete a Control-M/Server from Control-M/EM.
CLI Syntax
ctm config server::delete <server>
where server defines the Control-M/Server hostname.
If annotation is enabled for the Configuration Management category in the
REST API Syntax
The following example describes the REST API syntax in cURL:
curl -X DELETE -H "x-api-key: $token" "$endpoint/config/server/$server"
config servers::get
The config servers::get command enables you to get a list of Server.
CLI Syntax
ctm config servers::get
REST API Syntax
The following example describes the REST API syntax in cURL:
curl -H "x-api-key: $token" "$endpoint/config/servers"
Response
The following example shows the config servers::get response parameters when the operational state of the Server up and connected.
{
"name": "IN01",
"host": "myhost",
"state": "Up",
"message": "Connected",
"version": "9.0.21.080"
}
The following table describes the config servers::get command parameters that are shown in the above response.
Parameter |
Description |
---|---|
name |
Defines the name of the Server, which enables you to assign it a descriptive name. |
host |
Defines the Server hostname. |
state |
Determines the state of the Server. Valid Values:
|
message |
Describes the server status message. Valid Values:
|
version |
Defines the Server version. |
Determines one of the following desired states of the Control-M/Server:
|
|
status |
Determines one of the following statuses of the Control-M/Server, as described in desiredState.
|
OSType |
Determines one of the following platforms that this Control-M/Server is installed on:
|
config server:notification:list::setactive
The config server:notification:list::setactive command enables you to activate a notification destination list.
CLI Syntax
ctm config server:notification:list::setactive <server> <listname>
The following table describes the config server:notification:list::setactive command parameters.
Parameter |
Description |
---|---|
server |
Defines the name of the Server, which enables you to assign it a descriptive name. |
listname |
Defines the name of the notification destination list to activate. |
If annotation is enabled for the Configuration Management category in the
REST API Syntax
The following example describes the REST API syntax in cURL:
server=IN01
listname=myList
curl -X POST -H "x-api-key: $token" "$endpoint/config/server/$server/notification/list/$listname/setactive"
config server:definition::get
The config server:definition::get command enables you retrieve details for a specific Control-M/Server.
CLI Syntax
ctm config server:definition::get <server>
where server defines the Control-M/Server hostname.
REST API Syntax
The following example describes the REST API syntax in cURL:
server=IN01
curl -X GET -H "x-api-key: $token" "$endpoint/config/server/$server/definiton"
Response
The following example shows the config server:definition::get response for a Distributed
{
"code": "017",
"name": "controlm",
"host": "myhost",
"type": "Distributed",
"desiredState": "Up",
"state": "Up",
"message": "Connected",
"version": "9.0.21.000",
"configurationAgentPort": 2369,
"description": "London Control-M/Server",
"contact": "Jane Roe",
"isEnabled": true,
"isManaged": true,
"gatewayListenHost": "",
"gatewayListenPort": "",
"protocol": "SSL",
"ctmToEMPort": 2370,
"timeZone": "Africa/Kinshasa",
"newDayTime": "",
"weekStartDay": "Monday",
"dayLightSavingStartDate": "",
"dayLightSavingEndDate": ""
}
The following example shows the config server:definition::get response for a Helix Control-M/Server:
{
"name": "IN01",
"host": "myhost",
"state": "Up",
"message": "Connected",
"version": "9.0.21.080"
}
The following table describes the config server:definition::get details that are shown in the above response
Parameter |
Description |
---|---|
code |
Defines a unique 3-character ID, such as 999 or NYC, which Control-M/EM uses to identify each Control-M/Server. |
name |
Defines the name of the Control-M/Server, which enables you to assign it a descriptive name. |
host |
Defines the Server hostname. |
type |
Determines one of the following platforms that this Control-M/Server is installed on:
|
desiredState |
Determines one of the following desired states of the Control-M/Server:
|
state |
Determines the current state of the Control-M/Server. For the description of the available states, see the desiredState parameter. |
message |
Displays a message returned by the Control-M/Server. |
version |
Determines one of the following Control-M/Server versions:
|
configurationAgentPort |
Defines the port number that the Configuration Agent uses to communicate with Control-M/EM, as described in Infrastructure Components. Default: 2369 |
description |
Defines a free-text description of the Control-M/Server. |
contact |
Defines the name of the contact person who is responsible for the maintenance of this Control-M/Server. |
isEnabled |
Determines whether you can monitor or manage the Control-M/Server and its components and define new jobs or resources on the Control-M/Server:
|
isManaged |
Determines whether the Control-M/Server is managed, which enables you to perform administrative actions on the self-hosted Control-M/Server from Control-M/EM:
|
gatewayListenHost |
Defines the ... hostname... |
gatewayListenPort |
Defines the port number that... |
protocol |
Determines one of the following protocols that Control-M/Server uses to communicate with Control-M/EM:
|
ctmToEMPort |
Defines the port number that Control-M/Server uses to communicate with Control-M/EM. Default: 2370 |
timeZone |
Determines the time zone where the Control-M/Server is located. For more information, see Time Zones. |
newDayTime |
Defines when the New Day A Control-M process that begins every day at midnight, adds jobs and folders to the Run Queue for the day that is about to begin, and removes jobs and folders from previous days. procedure begins, as described in New Day Procedure. |
weekStartDay |
Determines the first day of the business week, as follows:
|
dayLightSavingStartDate |
Determines the calendar date that Daylight Savings Time begins. |
dayLightSavingEndDate |
Determines the calendar date that Daylight Savings Time ends. |
isUppercaseOnly |
Determines whether user input is restricted to uppercase letters only in job attributes. |
isControlMRestartInstalled |
Determines whether Control-M/Restart is installed. |
isControlMAnalyzerInstalled |
Determines whether Control-M/Analyzer is installed. |
isControlMTapeInstalled |
Determines whether Control-M/Tape is installed. |
config server::define
The config server:discover command enables you to define a
CLI Syntax
ctm config server::define <host> <server> <id> [port] [-f <configuration file>]
The following table describes the config server::define command parameters.
Parameter |
Description |
---|---|
host |
Defines the |
server |
Defines the logical name of the Control-M/Server. |
id |
Defines a unique 3-character ID, such as 999 or NYC, which Control-M/EM uses to identify each |
port |
(Optional) Defines the port number that the Configuration Agent uses to communicate with Control-M/EM, as described in Infrastructure Components. Default: 2369 Valid Range:
|
configuration file |
Defines a JSON file that contains additional parameters. This file can also contain the parameters described above. |
If annotation is enabled for the Configuration Management category in the
The following JSON example and table show and describe the additional server parameters that you can include in the configuration file.
{
"host": "dba-tlv-wjrtok",
"name": "Melbourne_1",
"id": "444",
"ctmToEMPort": 2369,
"type": "Distributed",
"version": "921",
"description": "Melbourne Control-M/Server 1",
"contact": "George Miller",
"statisticsAlg": "Job Name",
"syncMode": "Update Control-M/Server and Control-M/EM",
"gatewayDesiredState": "Up",
"gatewayCheckInterval": "20",
"gatewayStartupFlags": "",
"protocol": "SSL",
"timeZone": "MEL (GMT+10:00)",
"newDayTime": "+12:00 AM",
"weekStartDay": "Monday",
"dayLightSavingStartDate": "10012023",
"dayLightSavingEndDate": "04072024",
"isUppercaseOnly": true
}
type |
Determines one of the following platforms that this Control-M/Server is installed on:
|
version |
Determines one of the following Control-M/Server versions:
|
description |
Defines a free-text description of the Control-M/Server. |
contact |
Defines the name of the contact person who is responsible for the maintenance of this Control-M/Server. |
statisticsAlg |
Determines one of the following job attributes that is used as the key that collects statistics information:
The settings on the Control-M/Server computer must match these settings. |
syncMode |
Determines when data is synchronized between the Control-M/Server and Control-M/EM, as follows:
|
ctm2EMPort |
Defines the port number that Control-M/Server uses to communicate with Control-M/EM. Default: 2370 |
protocol |
Determines one of the following protocols that Control-M/Server uses to communicate with Control-M/EM:
|
gatewayDesiredState |
Determines one of the following desired states of the Control-M/Server:
|
gatewayCheckInterval |
Determines the number of seconds to wait before Control-M/EM checks the status of the Control-M/Server. Default: 20 |
gatewayStartupFlags |
Defines alternative parameters to deliver via the command line that start up the Control-M/Server. There is no need to change this value unless directed by BMC Software. |
timeZone |
Determines the time zone where the Control-M/Server is located. For more information, see Time Zones. |
newDayTime |
Defines when the New Day A Control-M process that begins every day at midnight, adds jobs and folders to the Run Queue for the day that is about to begin, and removes jobs and folders from previous days. procedure begins, as described in New Day Procedure. |
weekStartDay |
Determines the first day of the business week, as follows:
|
dayLightSavingStartDate |
Determines the calendar date that Daylight Savings Time begins. |
dayLightSavingEndDate |
Determines the calendar date that Daylight Savings Time ends. |
isUppercaseOnly |
Determines whether to restrict user input to uppercase letters only in job attributes. If you select this option, you cannot change it without fixing all the job attributes.
|
REST API Syntax
The following example describes the REST API syntax in cURL:
server=controlm
curl -X POST -H "x-api-key: $token" -d "@c:\tmp\configFile.json" \
"$endpoint/config/server/define"
config server::desiredState
The config server::desiredState command enables you determine the desired states of the
CLI Syntax
ctm config server::desiredState <server> <state>
The following table describes the config server::desiredState command parameters.
Parameter |
Description |
---|---|
server |
Defines the |
state |
Determines one of the following desired states of the Control-M/Server:
|
If annotation is enabled for the Configuration Management category in the
REST API Syntax
The following example describes the REST API syntax in cURL:
server=controlm
state=Up
curl -X POST -H "x-api-key: $token" "$endpoint/config/server/$server/desiredState/$state"
config server::disable
The config server::disable command removes the ability to monitor or manage the
CLI Syntax
ctm config server::disable <server>
where server defines the
If annotation is enabled for the Configuration Management category in the
REST API Syntax
The following example describes the REST API syntax in cURL:
server=controlm
curl -X POST -H "x-api-key: $token" "$endpoint/config/server/$server/disable"
config server::enable
The config server::enable command restores the ability to monitor or manage the
CLI Syntax
ctm config server::enable <server>
where server defines the
If annotation is enabled for the Configuration Management category in the
REST API Syntax
The following example describes the REST API syntax in cURL:
server=controlm
curl -X POST -H "x-api-key: $token" "$endpoint/config/server/$server/enable"
config server::pause
The config server::pause command pauses a
CLI Syntax
ctm config server::pause <server>
where server defines the Control-M/Server name.
If annotation is enabled for the Configuration Management category in the
REST API Syntax
The following example describes the REST API syntax in cURL:
server=controlm
curl -X POST -H "x-api-key: $token" "$endpoint/config/server/$server/pause"
config server::resume
The config server::resume command resumes a
CLI Syntax
ctm config server::resume <server>
where server defines the Control-M/Server name.
If annotation is enabled for the Configuration Management category in the
REST API Syntax
The following example describes the REST API syntax in cURL:
server=controlm
curl -X POST -H "x-api-key: $token" "$endpoint/config/server/$server/resume"
config server::update
The config server::update command enables you to edit
CLI Syntax
ctm config server::update <server> -f <details_file>
The following table describes the config server::update command parameters.
Parameter |
Description |
---|---|
server |
Defines the Control-M/Server hostname. |
details_file |
Defines a JSON file that contains the update parameters. |
The following table describes the parameters in the details_file.
Parameter |
Description |
---|---|
host |
Defines the Control-M/Server hostname. |
version |
Determines one of the following Control-M/Server versions:
|
configurationAgentPort |
(Optional) Defines the port number that the Configuration Agent uses to communicate with Control-M/EM, as described in Infrastructure Components. Default: 2369 Valid Range:
|
description |
Defines a free-text description of the Control-M/Server. |
contact |
Defines the name of the contact person who is responsible for the maintenance of this Control-M/Server. |
gatewayListenHost |
Defines the hostname of the gateway component. Gateways handle communication between Control-M/EM Servers (GSR and GCS) and Control-M/Servers. |
gatewayListenPort |
Defines the port number of the gateway component. |
protocol |
Determines one of the following protocols that Control-M/Server uses to communicate with Control-M/EM:
|
ctmToEMPort |
Defines the port number that Control-M/Server uses to communicate with Control-M/EM. Default: 2370 |
timeZone |
Determines the time zone where the Control-M/Server is located. For more information, see Time Zones. |
newDayTime |
Defines when the New Day A Control-M process that begins every day at midnight, adds jobs and folders to the Run Queue for the day that is about to begin, and removes jobs and folders from previous days. procedure begins, as described in New Day Procedure. |
weekStartDay |
Determines the first day of the business week, as follows:
|
dayLightSavingStartDate |
Determines the calendar date that Daylight Savings Time begins. |
dayLightSavingEndDate |
Determines the calendar date that Daylight Savings Time ends. |
isUppercaseOnly |
Determines whether to restrict user input to uppercase letters only in job attributes. If you select this option, you cannot change it without fixing all the job attributes. |
isControlMRestartInstalled |
Determines whether Control-M/Restart is installed. |
isControlMAnalyzerInstalled |
Determines whether Control-M/Analyzer is installed. |
isControlMTapeInstalled |
Determines whether Control-M/Tape is installed. |
If annotation is enabled for the Configuration Management category in the
REST API Syntax
The following example describes the REST API syntax in cURL:
server=controlm
curl -X POST -H "x-api-key: $token" -d "@c:\tmp\detailsFile.json" \
"$endpoint/config/server/$server"