Setting Up Agentless Job Execution

This procedure describes how to set up a UNIX-based agentless host outside the Kubernetes cluster for execution of OS jobs. It involves the following actions:

  1. Select the UNIX-based hosts where you want to run OS jobs.

  2. For each host, select the user account responsible for running jobs.

  3. Define a Run as User for each account, and select its authentication method (either password or SSH key).

  4. Deploy the Agents that are in the Kubernetes cluster by installing a Helm chart.

  5. Associate the Agents in the Kubernetes cluster to the agentless hosts, so that each Agent can run jobs on any of the agentless hosts.

For more information about agentless hosts, see Agentless Hosts.

Preparing Run as Users

This procedure describes how to prepare Run as Users to run your jobs on the agentless hosts.

Begin

Associating Agents with Agentless Hosts

This procedure describes how to associate Agents with the agentless hosts.

You perform this procedure after you have installed the Helm chart that deploys the Agents that are in the Kubernetes cluster (as described in Deploying Agents Using a Helm Chart).

Begin

  1. Get the names of all agents in the host group that will manage the agentless host by running the config server:hostgroup:agents::get

  2. ctm config server:hostgroup:agents::get <server> <hostgroup>

  3. Create a JSON-format configuration file named agentless_config.json with details of the agentless host that you plan to add:

    Copy
    {
       "agentlesshost": "<agentless_host>",
       "port": 22,
       "agents": [
          "<hostgroup_agent1>",
          "<hostgroup_agent2>"
       ],
       "encryptAlgorithm": "AES",
       "compression": "false",
       "authorize": "true"
    }

    where

    • <agentless_host> is the hostname for the new agentless host.

    • <hostgroup_agent1> ... <hostgroup_agentn> are the names of the agents in the hostgroup, as obtained in the previous step.

  4. Ensure that all Agents that will manage the agentless host already have the correct Operating System property value:

    1. Run the following ctm config server:agents::get command:

      ctm config server:agents::get <server>

    2. Identify the relevant Agents in the returned list of Agents and ensure that they have a valid operatingSystem value.

  5. Add the agentless host by running the config server:agentlesshost::add command:

    ctm config server:agentlesshost::add <server> <agentless_host> -f agentless_config.json

  6. If you want to run agent utilities on the agentless host, use the agent.uploadRemoteUtils Helm parameter during Agent deployment in the Kubernetes cluster (described in Deploying Agents Using a Helm Chart).