Question

Can we run a script to get the current agent status -running or not, Pega 7.1.4

Hi All

There is a required for us to check if the agent processing is successful, if yes, we would need to do subsequent steps.

Just wondering if we can we run a script to get the current agent status -running or not, there is a chance to automate the steps. I went through Pega 7.3 and looks like there is a chance to get the status from DB script. But, we are using Pega 7.1.4, Could anyone please let me know if we can get the status from DB?

Regards

Dileep

Comments

Keep up to date on this post and subscribe to comments

November 21, 2019 - 2:24am

Pega exposes MBeans to query and manage the states of Pega managed objects like Agents, Listeners, Requestors etc. 

The PegaRULES MBean’s JMX API Javadoc is available and shipped under the following directory of the PRPC distribution media –

{PRPC_Distribution_Home}\Documentation\MBeanJMXJavadoc.zip. Unzip this to a temp location and refer to the Javadoc by opening the index.html. The API doc that you need to refer to for managing PRPC Listener’s state is under the com.pega.pegarules.management.AgentManagement class.

Referring to the API docs you can write your own custom code/script to query and manage the state of PRPC Agents, simply because it’s freely accessible using JMX client code.