Try OpenEdge Now
skip to main content
New Information
Progress Application Server for OpenEdge : Manage and monitor an instance : Use OEJMX to manage and monitor an instance : OEJMX utility
 
OEJMX utility
OEJMX is a command-line utility you can use to:
*List all the MBeans, including their attributes and their operations for a PAS for OpenEdge instance running on a local machine.
*Run MBean queries.
Output from OEJMX is written to a text file. The script for OEJMX is located in the CATALINA_BASE/bin directory. This directory is typically included in your PATH environment variable.

Syntax

oejmx[ [-C ] | [ -Q queryfile ] [ -R ] ] [-O outputfile]

Parameters

-C
Write Mbean information, including attributes and their operations, to the output file specified by the -O parameter.
-Q queryfile
Run queries from a file located in queryfile and write results to the output file specified by the -O parameter. If no query file is supplied, a default file located in CATALINA_BASE/bin/jmxqueries/default.qry is used.
Each MBean query is a JSON string having an MBean identifier and attribute or operation information. A query file may have multiple queries, with one query per line.
Attribute query:
{"O":"MBean-identifier","A":"Attribute-name"}
Operation (java method):{"O":"<MBean identifier>","M":["Operation",<parameter1 value>,<parameter2 value>…]}
There are a few tokens which could be used instead of PASOE parameter values:
*APP_NAMEAGENT_ID
*AGENT_PID
*SESSION_ID
*ABL_SESSION_ID
When the query processes, the token is replaced with its current value. If there are multiple values of a token a separate query is processed for each one of them.
-R
Specifies that only query results are written to a results file.
-O outputfile
Specifies the results file path, which is where MBean information or query information is written.
The default value for Mbean information is CATALINA_TEMP_DIR/beanInfo-TIMESTAMP:yyMMdd-HHmm.txt.
The default value for queries is CATALINA_TEMP_DIR/queryname-out-TIMESTAMP:yyMMdd-HHmm.txt