Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Using Monit and Other Commands

 

Process management is performed by Monit, an open source utility for managing and monitoring processes, files, directories, and file systems. During the installation of PSM, the configuration files for monit are updated to monitor the PSM server process. The monit configuration can be re-read after installing the PSM by entering the command “monit reload”, or by rebooting the machine.

You can obtain the status of the PSM and other important services via the monit web interface at http:// <server ip address>:2812 or on the command line.

When using the command line, you have access to a number of monit commands but it is recommended that you use the supplied aliases instead of invoking the monit commands directly. Some aliases are provided for convenience while others issue the monit command coupled with a 'monit summary' under the Linux watch command. You can then watch the command progress and complete before proceeding. In many situations, you should not proceed until the command has completed successfully. To exit from the Linux watch command window, type <ctrl> c.

  • psm-start - Starts the OS processes needed for the PSM server application and displays the monit status summary within the Linux watch command.

  • psm-stop - Stops the OS processes needed for the PSM server application and displays the monit status summary within the Linux watch command.

  • psm-restart - Restarts the OS processes needed for the PSM server application and displays the monit status summary within the Linux watch command.

  • psm-status - Displays the monit status summary within the Linux watch command. The PSM server processes are identified by the 'Ems-' prefix. The processes are in the "Running" state when the server is up and running, and in the "Not monitored" state when the server is stopped. For example:

  • psm-cd - Changes directory to /usr/local/ems9001.

  • psm-cd-bin - Changes directory to /usr/local/ems9001/bin.

  • psm-cd-conf - Changes directory to /usr/local/ems9001/conf.

  • psm-cd-logs - Changes directory to /usr/local/ems9001/logs.

  • psm-tail-audit - Performs the Linux 'tail' command on the audit.log file.

  • psm-tail-discovery - Performs the Linux 'tail' command on the EMS_SERVER-discovery.log file.

  • psm-tail-ems - Performs the Linux 'tail' command on both the EMS_SERVER-masters.log and the EMS_SERVER-workers.log files.

  • psm-tail-masters - Performs the Linux 'tail' command on the EMS_SERVER-masters.log file.

  • psm-tail-workers - Performs the Linux 'tail' command on the EMS_SERVER-workers.log file.

  • getVersionInfo - Displays version information on the Linux kernel and operating system.