[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: OEJMX - Chained Queries

Status
Not open for further replies.
I

Irfan

Guest
Hi Steve, Every query is different and having them in a file just runs the bunch of queries and dumps them to the same output. As you have noticed we have different tokens APP_NAME,AGENT_ID,SESSION_ID which are tokens that will be picked-up while running the queries dynamically. Currently the oejmx ability is to run only one given query, but not to execute a bunch of queries which parses the output from one query to another. As they are just commands with parsable JSON as output, one can easily write a script based on platform to run multiple queries. For your question, if you want to terminate agent then you would run this query(if stored in stopAgent.qry) {"O":"PASOE:type=OEManager,name=AgentManager","M":["stopAgent","AGENT_ID",0,0]} So to execute that I would do something like this ./oejmx.sh -R -Q stopAgent.qry -O There is also a command to terminate all the sessions of an agent for the given ABLApp. Its basically like restarting the PASOE server as there are no sessions in the agent available(until unless you have to change the database or changes in the spring layer). ./tcman.sh jmx refreshagents -appname If the ABLAppName is "oepas1" then it would be ./tcman.sh jmx refreshagents -appname oepas1

Continue reading...
 
Status
Not open for further replies.
Top