JAMS Agents
There are many different Agents available for JAMS, and each one is designed and configured for a specific platform and purpose.
Most JAMS Agents have installers on the JAMS Server along with the JAMS Scheduler (C:\Program Files\MVPSI\JAMS\Scheduler\Agents). The JAMS Client can be used to deploy and upgrade Agents, after those Agents have been defined.
For more information on working with specific JAMS Agents, refer to the Agent topics.
Agents in JAMS are initially defined using four fundamental properties:
-
Agent Name – The reference name for the Agent definition in JAMS.
-
Description – An optional description of the defined JAMS Agent.
-
Type of Agent – The type of Agent to be created, based on the Agent's intended use. The type defines the protocol and direction of communication between the Agent and JAMS Scheduler. The default Agent Type is Outgoing. JAMS has the following types of Agents:
- Local – This Agent type is used for the JAMS Scheduler machine because the Scheduler acts as its own Agent.
- Incoming – This Agent type is used by the JAMS Agent Interactive. The Agent initiates communication with the JAMS Scheduler. To stop an Agent from connecting, the connection needs to be disabled at the Agent.
- Outgoing – This Agent type is the most common type and is used for most Agents. The JAMS Scheduler initiates communication with the Agent. This is used for Windows and AgentD. Windows Agents can maintain the connection between Jobs and run multiple Jobs simultaneously without a new connection.
- SSH - This Agent type can connect to a remote system through the SSH protocol. You can enter one command at a time just like typing at a terminal.
- SSHAgentX- This Agent type is used only for when the remote machine has the SSHAgentX Agent installed.
- Passive – This Agent type is mainly used for the z/OS integration. For Passive Agents, the Execution Method handles the communication.
-
Type of Platform – The operating system platform for the Agent. Options include Windows, Linux, UNIX, OpenVMS, and more.
Agent Definitions screen
The Agent Definitions screen lists all Agents that have been defined. The following information is displayed:
- Agent Name – The name assigned to the Agent. The name of a JAMS Agent is a friendly name for the Agent in JAMS. The JAMS name of an Agent is not required to match the system name of the Agent machine. If it does not match, enter the host name of the Agent machine in the Agent Host Name property so that JAMS can use Kerberos authentication.
- Description – An optional description of the Agent.
- Platform – The operating system platform for the Agent. Options include Windows, Linux, UNIX, OpenVMS, and more.
- Agent Type – The type of Agent based on its intended use.
- Enabled – An Agent can run Jobs when it is enabled. If it is disabled, the Agent will not run Jobs.
- Agent State – The current state of the Agent, as reported by the Scheduler.
- Job Count – The number of Jobs currently running on the Agent, as reported by the Scheduler.
- Job Limit – The maximum number of Jobs that can run at one time on the Agent. You can adjust this to optimize performance.
- License Allocated – Yes or No, indicating if JAMS has allocated a license to the Agent. The license is allocated the first time a Job is submitted to the Agent, if a license is available.
- Port – The network port that JAMS is using to communicate with the Agent. The default for outgoing Agents is 77.
- Version – The version of JAMS the Agent is running, as reported by the Scheduler.
- Time Offset – The difference between the clock on the Agent machine and the clock on the Scheduler.
Agent State, Job Count, License Allocated, Version, and Time Offset are Scheduler properties. They show the Agent's live state rather than its saved definition, and they cannot be edited.
To change the row density, or to see which list settings JAMS remembers, see Working with List Views.
Defining an Agent in JAMS
- Click Environment in the left sidebar.
- Click Agents.
- Click Add.
- In the Agent Name field, enter a name for the Agent. The name of a JAMS Agent is a friendly name for the Agent in JAMS. The JAMS name of an Agent is not required to match the system name of the Agent machine. You can enter the host name or IP address in the Address property of the Agent definition, if it is different from the Agent Name. If the Agent Name is not the host name of the Agent machine, also enter the host name in the Agent Host Name property. JAMS uses Agent Host Name, not Address, to request the Kerberos ticket, and falls back to NTLM authentication without it.
- In the Agent Type field, select the type of Agent.
- In the Platform Type field, select the platform for the Agent.
- Click Save & Return.
Configuring an Agent in JAMS
After an Agent has been defined in JAMS, you can configure its properties, including the Job Count/Limit, connection settings, security, and access controls.
- Click Environment in the left sidebar.
- Click Agents.
- Click an Agent, and select Properties.
- Select the State tab to enable or disable the Agent, view its Scheduler properties, or set a Job Limit for the Agent.
- In the Properties tab, you will see the Agent Properties tailored to the Type and Platform of the Agent, grouped into category panels.
- Use the available Agent Properties to configure the Agent. For example, on an Outgoing Windows Agent, the Address and Agent Host Name would be defined in the Agent panel.
- Select the Security tab to modify group permissions to the Agent.
Ensure the Submit permission is selected for user accounts that will use this Agent.
- Click Save.
After the Agent is created, it is recommended that you set up TLS communication if SSPI is not available. See Setting up Secure Communication with Outgoing JAMS Agents. This will be required for communication to occur. You will see the Agent state listed as Unauthenticated or Misconfigured until this security is configured.
If you change the security settings for Allow No Remote Host Security or Allow SSPI Remote Host Security, the changes will be applied when the Agent has a new connection. This may occur when the Agent is restarted or when the next connection is made, if the Connect on Demand option is used.
Configuring the Connection for Outgoing Agents
For an Outgoing Agent, you can control when the Agent is connected to the JAMS Scheduler by using the Connect On Demand option. This is useful if you want to limit the number of open and active connections to Agents that are rarely used.
By default, this option is disabled so the Agent connection remains open if no Jobs are running on it. If you enable this option, the Agent connects to the JAMS Scheduler only when a Job is running on the Agent. The Agent state changes to Idle when a Job is not running on the Agent. The version may also be Unknown if the JAMS Scheduler has not yet been connected to the Agent.
- Click Environment in the left sidebar.
- Click Agents.
- Click an Agent and select Properties.
- Click the Properties tab.
- In the Agent panel, select or clear the Connect On Demand checkbox.
- Click Save.
Scheduler Properties
Most Agent properties are part of the Agent definition: JAMS saves them, and they keep their values until someone changes them. Scheduler properties are different. They are live values that the Web Client reads from the JAMS Scheduler each time it loads the Agents list or an Agent's State tab, and they reflect what the Agent is doing at that moment. They are read-only and are not saved with the Agent.
| Scheduler property | Where it appears |
|---|---|
| Agent State | Agents list, State tab |
| Job Count | Agents list, State tab |
| License Allocated | Agents list, State tab |
| Time Offset | Agents list, State tab |
| Version | Agents list |
For example, Job Limit is part of the definition and sets how many Jobs the Agent may run. Job Count is a Scheduler property and shows how many Jobs it is running now.
If the Web Client cannot get a value from the Scheduler, for example because the Scheduler is offline, the property shows a dash (—) instead of a value. A dash means the value is unknown. It does not mean the Agent has no Jobs or no license.
Agents in Batch Queues
Selecting an Agent in a Batch Queue is optional. If no Agent is specified in the Batch Queue and the Job Definition does not have/inherit an Agent, the Job executes locally on the Scheduler. If multiple Agent Names are specified, Jobs are distributed (load balanced) between the available Agent Names.
See the Batch Queues article for information on adding an Agent to a Queue or deleting an Agent from a Queue.
Enabling or Disabling an Agent
By default, new Agents are set to Enabled so they can run Jobs. If you need to prevent new Jobs from running for a period of time, you can disable the Agent. Any Jobs that are currently running will continue, but no other Jobs will be submitted to run on that Agent.
- Click Environment in the left sidebar.
- Click Agents.
- Click an Agent and select Properties.
- Click the State tab.
- Select or clear the Enabled checkbox.
- Click Save.
Deleting an Agent in JAMS
Any JAMS Agent can be deleted from the Agents screen. Deleting the Agent from the JAMS Client will not remove the JAMS Agent software from the Agent machine. Before deleting an Agent, ensure all Job and Folders that currently use it have been updated to remove references to it. To view where it is referenced, click the Agent and select the References tab.
- Click Environment in the left sidebar.
- Click Agents.
- Click the Agent to be deleted and click Delete.
- When prompted to confirm the deletion, click Delete.
Agent Tabs
The Last Change UTC timestamp on the right side of the breadcrumb bar, at the top of the page, shows the date and time in UTC that the Agent was last changed.
The Properties tab displays different options based on the type of Agent and platform. The properties below are available for most Agents.
| Summary Tab | Description |
|---|---|
| Agent Name | This property displays the unique identifier for the Agent. |
| Agent Type | This property displays the type of Agent that was specified. |
| Platform Type | This property displays the operating system that the Agent will run on. |
| Description | This property displays an optional description of the Agent. |
| State Tab | Description |
|---|---|
| Enabled | Select or clear the Enabled checkbox to enable or disable the Agent. This will allow or prevent the Agent from running Jobs. |
| Agent State | This read-only Scheduler property displays the current state of the Agent, such as Online. |
| Job Count | This read-only Scheduler property displays the number of Jobs that are currently running on this Agent. |
| Time Offset | This read-only Scheduler property displays the difference between the clock on the Agent machine and the clock on the Scheduler. |
| License Allocated | This read-only Scheduler property displays Yes if JAMS has allocated a license to the Agent, or No if it has not. |
| Job Limit | This property specifies the maximum number of Jobs that the Agent can run at one time. |
The State tab groups these properties into three sections: Status (Enabled), Scheduler Properties (Agent State, Job Count, Time Offset, and License Allocated), and Job Count/Limit (Job Limit). If the Scheduler is offline, each Scheduler property shows a dash (—). See Scheduler Properties.
Properties Tab
The Properties tab opens with a blue header bar titled Properties, flush with the tab row in the same way as the header bar on the Summary tab. Below it, the properties are grouped into category panels laid out in two columns. Each panel is expanded by default. Click a panel's title to collapse or expand it. Click Save at the bottom of the tab to save your changes.
Most Agents show the Agent and Jobs panels described below. SSH, SSHAgentX, and other Agent types also show panels for their own settings, such as SSH, File Transfer, SSL, Compliance, and Execute.
| Agent | Description |
|---|---|
| Address | This property displays the IP address or host name for connecting to this Agent. |
| Agent Host Name | This property specifies the actual host name of the Agent machine, if different than the Agent Name. JAMS uses it for Kerberos authentication over SSPI. If it is empty, JAMS uses the Agent Name. An Agent whose name is not the host name of its machine, and whose Agent Host Name is empty, falls back to NTLM authentication and is rejected in a Kerberos-only domain. |
| Allow No Remote Host Security | This property specifies that no encryption for the connection to the Agent will be used. It is recommended that you configure a secure communication. |
| Allow SSPI Remote Host Security | This property specifies that an encrypted connection will be used to the Agent. This option cannot be used across domains. |
| Connect On Demand | This property specifies the Agent will attempt to connect only when running a Job. The live Agent status may not be available in this mode. |
| Connection Timeout | This property specifies the time to wait before disconnecting from the Agent. |
| Deploy Credential | This property specifies the JAMS Credential that is used to deploy the Agent from JAMS. |
| Deploy Job | This property specifies the Job in JAMS that is used to deploy the Agent. |
| Platform | This property is a read-only view of the operating system type that was selected for the Agent. |
| Port | This property specifies the port that is used to connect to the Agent. |
| Thumbprint | This property displays the thumbprint of the certificate that is used for the secure connection using TLS. |
| Type | This property displays the type of Agent that was specified for this Agent. |
| Jobs | Description |
|---|---|
| File Watch Job | This property displays the Job that is submitted when JAMS will watch for a file on an Agent. |
| Security Tab | Description |
|---|---|
| Security | The Security tab defines the level of access for this Agent. This is an Access Control List with one-to-many Access Control Entries (ACE). You can add or delete an ACE. Each ACE can specify the following rights:
|
| References Tab | Description |
|---|---|
| References | The References tab lets you view where the Agent is used within JAMS. |
Connections are stored as Agents, so a Connection's Security tab uses these same permissions, and its References tab works the same way. See Controlling Access to a Connection and Viewing Where a Connection Is Used.