You can monitor and manage instances through scripts using the OpenEdge JMX (OEJMX) command-line utility to connect to a local PAS for OpenEdge instance. Based on Java Management Extensions (JMX) OEJMX connects to an instance using Java objects called Managed Beans (MBeans). One or more MBeans instrument a resource using attributes and operations. Direct access to the underlying MBeans provides you with the freedom to write scripts to monitor and manage applications in ways that may not be available using OpenEdge Management or JConsole.

For more information about OEJMX, see Use OEJMX to manage and monitor an instance.

  1. Use a proenv command prompt to change to the instance directory:
    proenv>cd instance-name
  2. Request the overall health score:
    proenv>bin\oehealth
  3. Display the detailed JSON for the server health:
    proenv>bin\oehealth -D 
    Note: These commands can be included in scripts to monitor your server.