One of the fundamental OEJMX queries is to request agents for an ABL application. This query provides you with information about the multi-session agents running in your application. You can add these queries to build out a multi-line query file to get information about your PAS for OpenEdge instance.

Get agents from an ABL application

When to use: To identify agents in the ABL application.

Query:
# Tokens: APP_NAME
# Get agents in an ABL application
{"O":"PASOE:type=OEManager,name=AgentManager","M":["getAgents","oepas1"]}
Note: In this example, the token APP_NAME is replaced with oepas1.
Result:

The output provides details about the agents including agent ID, PID, and state information. The agent ID can be used in other OEJMX queries such as to refresh an agent in an ABL application.

{
  "getAgents": {
    "agents": [
      {
        "agentId": "LMufO6dzRiSguShJOsJ53Q",
        "pid": "13992",
        "state": "AVAILABLE"
      }
    ]
  }
}

Additional queries

Additional OEJMX queries can be found in OEJMX Query Reference, including: