A running PAS for OpenEdge instance must be available. Review Write a custom OEJMX query to get agents to get then available agent.

To get agent information, complete the following steps:

  1. Change to the bin directory for the instance, instance-name /bin
  2. Execute the query using oejmx -Q Filepath/ getAgents.qry
    The default output location is CATALINA_TEMP_DIR / queryname -out- yyMMdd-HHmm .txt
  3. Review the output getAgents-out yyMMdd-HHmm .txt file to see the query response.
    Notice the output shows the original query on line 1 and the results on the next.
    
               Query: Line 1. Object: PASOE:type=OEManager,name=AgentManager, Method: getAgents(
               oepas1) Result: {"getAgents":{"agents":[{"agentId":"QqnRYSLuRjqu0kneMNXAcw","pid":"
               16952","state":"AVAILABLE"}]}}
              
    Note: Using oepas1 provides the agent pid, 16952 that can be used to gather session metrics.
For more details on the OEJMX utility, see the OEJMX utility.