Agent Setup and Testing
  • 28 Aug 2023
  • 3 Minutes to read
  • Dark
    Light

Agent Setup and Testing

  • Dark
    Light

Article Summary

Admins must install the ASP. Net core Bundle on the agent server.
The ASP. Net core version should be similar to the Decisions using the .NET core version. Refer to the Installation Guide for more details. Without this, the Agent will fail to communicate or connect with the server by not responding in a timely manner. Other Core Runtime versions do not contain the required DLLs. Please check the server has this installed before proceeding.

Configuration requires adding and registering an Agent, installing it to a machine, and implementing it into the Decisions environment. Protocol Agents are directly affiliated with network security as well as other aspects. 

Prerequisites

  • Users should have, at minimum, Can Use permissions on a Designer element to use its function with Agents.
  • When registering an Agent, the Decisions instance Portal Base URL can not be localhost. To adjust the Portal Base URL, refer to Changing the Portal Base URL.

Setup

  1. Navigate to System > Designers > Agents and click ADD/REGISTER AGENT.
  2. Provide a Title and optionally a Description, then click REGISTER AGENT.
  3. Right-click the newly added Agent from the Agents Folder and select Download Agent.
  4. Extract the contents of the .zip file. 
  5. From the extracted folder, install the DecisionsAgent.msi file. The agent will create all its files under C:\Program Files (x86)\Decisions Agent.
  6. After the Agent installs, from the extracted folder, copy over AgentSettings.xml and PortalPublicKey.key to C:\Program Files (x86)\Decisions Agent.
  7. On the local machine, search for and open Services.
  8. Locate the Decisions Agent Service, right-click, and select Start.
  9. If the agent does not start with a pop-up dialog Message, "Error-1064 Windows could not start the Decisions Agent service on Local Computer". Navigate to the C:\Program Files (x86)\Decisions Agent. Open the AgentSettings.xml file and check the PortalBaseURL. Enter the IPv4 address with the port number on which the Decisions is installed.
  10. Start the Decisions Agent Service.

Testing 

The Agent Dashboard at System > Designers > Agents displays all Deployed Agents and Recent Agent Actions. The Any Unknown Client entity suggests the client is not yet identified.

  1. Navigate to System > Designers > Agents > Test Agent. Ensure that the STATE of the Agent is Complete. A Complete status indicates the client has been identified and is ready for communication.
  2. Under Deployed Agents, right-click the Agent and select Ping Agent. Pinging the Agent checks to see if the Agent is available.

  3. After the notification displays, refresh the Recent Agent Actions to ensure the Ping action is executed.
  4. Right-click the Ping Action and click View Results. If applicable, the resulting data from the Agent Action will display.


Agent Instructions Status

To check the agent activity, users can navigate to the agent folder to view the Agent Activity Dashboard. The following table describes all the states of Agent.

StateDescription
Queued
The Instructions are queued for delivery to the Agent.
Sent to AgentThe Instructions have been received by the Agent.
Complete
The agent has completed the request, and the results have been posted to the server.
Failed
Agent encountered an error when processing the instruction.
Forwarded
Agent Sent result for specific server {0}, but was received by this node instead and had to be forwarded to another node.



Confirming if an Agent is in Polling Mode

Agents can enter polling mode if no ports are available, leading to performance issues.

  1. Right-click on a Deployed Agent and select View Last Status. If the agent is properly configured, View Last Status will display Live Connection: True. The Agent is currently in polling mode if this message is not shown.

Uninstalling and Removing an Agent 

If a user needs to remove an Agent or the Agent needs to be updated and replaced with a new version, Agents in Decisions can be uninstalled from the File System.

  1.  From the File System, open the Control Panel. Under Programs, select Uninstall a Program.
  2.  From the Programs and Features window, locate Decisions Agent, select it, then click Uninstall.
  3. Confirm the uninstall by selecting Yes. This will remove the Decisions Agent from the windows.
  4. To remove the agent from the Decisions, navigate to Settings > Designers > Agents. Navigate to the Agent, Right-click > Manage > Delete Folder. This will remove the agent from the Decisions server permanently.

For further information on Integrations, visit the Decisions Forum.

Was this article helpful?