Agentless Host Configuration
The following API commands enable you to configure an Agentless Host:
config server:agentlesshost::addLink copied to clipboard
The config server:agentlesshost::add command enables you to add an Agentless Host to a Control-M/Server.
CLI Syntax
ctm config server:agentlesshost::add <server> <agentlesshost> [port] [-f <configuration file>]
The following table describes the config server:agentlesshost::add command parameters.
Parameter |
Description |
---|---|
server |
Defines the Control-M/Server name. |
agentlesshost |
Defines the hostname or alias of the Agentless Host. |
port |
(Optional) Defines the SSH port number. Default: 22 |
configuration file |
(Optional) Defines a JSON file with additional parameters. |
If annotation is enabled for the Configuration Management category in the Configuration domain, you must also provide an annotation to justify your action. For more information, see Annotation Input.
The following table describes additional config server:agentlesshost::add parameters that you can use in the configuration file.
Parameter |
Description |
---|---|
agents |
Defines the Agents that manage the Agentless Host. If not defined, the Agent that is installed with Control-M/Server (<Local>) is used. Default: local |
port |
Default: 22 |
encryptAlgorithm |
Determines which algorithm encrypts the data that is exchanged between the Agent and Agentless Host. Valid Values:
Default: AES |
compression |
Determines whether to compress the encrypted communication, which increases data rates over slower networks. Valid Values:
Default: false |
authorize |
Determines whether to add the machine to the SSH Agentless Host authorization list. If you type true, you are not prompted to connect at each attempted connection. Valid Values:
Default: true |
ConnectionType |
Determines the connection type between the Agent and Agentless Host. Valid Values:
Default: SSH |
WMISysoutDirectory |
Defines the WMI directory for WMI-based connections. |
tag |
Defines the tag |
converExistingAgent |
(Optional) Determines whether to convert an Agent to an Agentless Host. Valid Values:
Default: false |
REST API Syntax
cURL:
server=IN01
agentlesshost=myhost
agent=realAgent
curl -H "x-api-key: $token" -H "Content-Type: application/json" -X GET
"%endpoint%/config/server/$server/agentlesshost"
config server:agentlesshost:authorize::authorizeLink copied to clipboard
The config server:agentlesshost:authorize::authorize command enables you to add an Agentless Host to the SSH Agentless Host authorization list if this was not done when it was added to the Control-M/Server.
CLI Syntax
ctm config server:agentlesshost:authorize::authorize <server> <agentlesshost>
The following table describes the config server:agentlesshost:authorize::authorize command parameters.
Parameter |
Description |
---|---|
server |
Defines the Control-M/Server name. |
agentlesshost |
Defines the hostname or alias of the Agentless Host. |
If annotation is enabled for the Configuration Management category in the Configuration domain, you must also provide an annotation to justify your action. For more information, see Annotation Input.
REST API Syntax
cURL:
server=IN01
agentlesshost=myhost
curl -H "x-api-key: $token" -H "Content-Type: application/json" -X GET
"%endpoint%/config/server/$server/agentlesshost/$agentlesshost/authorize"
config server:agentlesshost::deleteLink copied to clipboard
The config server:agentlesshost::delete command enables you to delete an Agentless Host from the Control-M/Server.
CLI Syntax
ctm config server:agentlesshost::delete <server> <agentlesshost>
The following table describes the config server:agentlesshost::delete command parameters.
Parameter |
Description |
---|---|
server |
Defines the Control-M/Server name. |
agentlesshost |
Defines the hostname or alias of the Agentless Host. |
If annotation is enabled for the Configuration Management category in the Configuration domain, you must also provide an annotation to justify your action. For more information, see Annotation Input.
REST API Syntax
cURL:
server=IN01
agentlesshost=myhost
curl -H "x-api-key: $token" -H "Content-Type: application/json" -X DELETE
"%endpoint%/config/server/$server/agentlesshost/$agentlesshost"
config server:agentlesshosts::getLink copied to clipboard
The config server:agentlesshosts::get command enables you to get a list of all Agentless Hosts registered on the Control-M/Server.
CLI Syntax
ctm config server:agentlesshosts::get <server>
where the server parameter is the Control-M/Server name.
REST API Syntax
cURL:
server=IN01
agentlesshosts=myhost
curl -H "x-api-key: $token" -H "Content-Type: application/json" -X GET
"%endpoint%/config/server/$server/agentlesshosts"
config server:agentlesshost::getLink copied to clipboard
The config server:agentlesshost::get command enables you to get the Agentless Host configuration properties from the Control-M/Server.
CLI Syntax
ctm config server:agentlesshost::get <server> <agentlesshost>
The following table describes the config server:agentlesshost::get command parameters.
Parameter |
Description |
---|---|
server |
Defines the Control-M/Server name. |
agentlesshost |
Defines the hostname or alias of the Agentless Host. |
REST API Syntax
cURL:
server=IN01
agentlesshost=myhost
curl -H "x-api-key: $token" -H "Content-Type: application/json" -X GET
"%endpoint%/config/server/$server/agentlesshost/$agentlesshost"
config server:agentlesshost::updateLink copied to clipboard
The config server:agentlesshost::update command enables you to update the Default Agentless Host configuration properties and the Agentless Host properties for a specific Agentless Host on the Control-M/Server.
CLI Syntax
ctm config server:agentlesshost::update <server> <agentlesshost> [-f <configuration file>]
The following table describes the config server:agentlesshost::update command parameters.
Parameter |
Description |
---|---|
server |
Defines the Control-M/Server name. |
agentlesshost |
Defines the hostname or alias of the specific Agentless Host. To define the default Agentless Host Settings, type <Default>. |
configuration file |
(Optional) Defines a JSON file with additional parameters. |
The following table describes additional config server:agentlesshost::update parameters to use in the configuration file.
Parameter |
Description |
---|---|
agents |
Defines the Agents that manage the Agentless Host. If not defined, the Agent that is installed with Control-M/Server (<Local>) is used. Default: local |
port |
Default: 22 |
encryptAlgorithm |
Determines which algorithm encrypts the data that is exchanged between the Agent and Agentless Host. Valid Values:
Default: AES |
compression |
Determines whether to compress the encrypted communication, which increases data rates over slower networks. Valid Values:
Default: false |
ConnectionType |
Determines the connection type between the Agent and Agentless Host. Valid Values:
Default: SSH |
WMISysoutDirectory |
Defines the WMI directory for WMI-based connections. |
tag |
Defines the tag |
REST API Syntax
cURL:
server=IN01
agentlesshost=myhost
agent=realAgent
curl -H "x-api-key: $token" -H "Content-Type: application/json" -X POST
"%endpoint%/config/server/$server/agentlesshost/$agentlesshost/update"
config server:agentlesshost:test::testLink copied to clipboard
The config server:agentlesshost:test::test command enables you to test the Agentless Host on the Control-M/Server.
CLI Syntax
ctm config server:agentlesshost:test::test <server> <agentlesshost> [-f <configuration file>]
The following table describes the config server:agentlesshost:test::test command parameters.
Parameter |
Description |
---|---|
server |
Defines the Control-M/Server name. |
agentlesshost |
Defines the hostname or alias of the Agentless Host. |
configuration file |
(Optional) Defines a JSON file with additional parameters. |
The following table describes additional config server:agentlesshost:test::test command parameters to use in the configuration file.
Parameter |
Description |
---|---|
agents |
Defines the Agents that manage the Agentless Host. If not defined, the Agent that is installed with Control-M/Server (<Local>) is used. Default: local |
port |
Default: 22 |
encryptAlgorithm |
Determines which algorithm encrypts the data that is exchanged between the Agent and Agentless Host. Valid Values:
Default: AES |
compression |
Determines whether to compress the encrypted communication, which increases data rates over slower networks. Valid Values:
Default: false |
ConnectionType |
Determines the connection type between the Agent and Agentless Host. Valid Values:
Default: SSH |
WMISysoutDirectory |
Defines the WMI directory for WMI-based connections. |
tag |
Defines the tag |
REST API Syntax
cURL:
server=IN01
agentlesshost=myhost
agent=realAgent
curl -H "x-api-key: $token" -H "Content-Type: application/json" -X POST
"%endpoint%/config/server/$server/agentlesshost/$agentlesshost/test"
config server:agentlesshost:disable::disableLink copied to clipboard
The config server:agentlesshost:disable::disable command enables you to disable an Agentless Host on the Control-M/Server, which prevents new jobs from running on the Agentless Host.
CLI Syntax
ctm config server:agentlesshost:disable::disable <server> <agentlesshost>
The following table describes the config server:agentlesshost:disable::disable command parameters.
Parameter |
Description |
---|---|
server |
Defines the Control-M/Server name. |
agentlesshost |
Defines the hostname or alias of the Agentless Host. |
If annotation is enabled for the Configuration Management category in the Configuration domain, you must also provide an annotation to justify your action. For more information, see Annotation Input.
REST API Syntax
cURL:
server=IN01
agentlesshost=myhost
agent=realAgent
curl -H "x-api-key: $token" -H "Content-Type: application/json" -X POST
"%endpoint%/config/server/$server/agentlesshost/$agentlesshost/disable"
config server:agentlesshost:enable::enableLink copied to clipboard
The config server:agentlesshost:enable::enable command enables you to enable an Agentless Host on the Control-M/Server.
CLI Syntax
ctm config server:agentlesshost:enable::enable <server> <agentlesshost>
The following table describes the config server:agentlesshost:enable::enable command parameters.
Parameter |
Description |
---|---|
server |
Defines the Control-M/Server name. |
agentlesshost |
Defines the hostname or alias of the Agentless Host. |
If annotation is enabled for the Configuration Management category in the Configuration domain, you must also provide an annotation to justify your action. For more information, see Annotation Input.
REST API Syntax
cURL:
server=IN01
agentlesshost=myhost
agent=realAgent
curl -H "x-api-key: $token" -H "Content-Type: application/json" -X POST
"%endpoint%/config/server/$server/agentlesshost/$agentlesshost/enable"
config server:agentlesshost:ping::pingLink copied to clipboard
The config server:agentlesshost:ping::ping command enables you to check if the Agentless Host is available.
CLI Syntax
ctm config server:agentlesshost:ping::ping <server> <agentlesshost> [-f <configuration file>]
The following table describes the config server:agentlesshost:ping::ping command parameters.
Parameter |
Description |
---|---|
server |
Defines the Control-M/Server name. |
agentlesshost |
Defines the hostname or alias of the Agentless Host. |
configuration file |
(Optional) Defines a JSON file with additional parameters. |
REST API Syntax
cURL:
server=IN01
agentlesshost=myhost
agent=realAgent
curl -H "x-api-key: $token" -H "Content-Type: application/json" -X POST
"%endpoint%/config/server/$server/agentlesshost/$agentlesshost/ping"