Hitachi

JP1 Version 12 JP1/Performance Management User's Guide


1.3.2 Stopping services on the monitoring console server

Organization of this subsection

(1) Manually stopping services on the monitoring console server

(a) Stopping services using a command

Use the jpcwstop command to stop services. You can use this command to stop the services only on the host to which you have logged on. You cannot stop the Performance Management program services on the remote host.

To stop services by using a command:

  1. Log on to the monitoring console server (the host that has PFM - Web Console installed).

  2. Open the Administrator Console.

  3. Execute the jpcwstop command.

    The jpcwstop command is stored in the following folder:

    • In Windows:

      PFM-Web-Console-installation-folder\tools\

    • In UNIX:

      /opt/jp1pcwebcon/tools/

    Execute the command to stop the PFM - Web Service and PFM - Web Console services.

(b) Stopping services from the Control Panel

  1. Choose Services in Windows.

  2. In the Services dialog box, right-click the PFM - Web Service, and from the pulldown menu choose Stop.

  3. Right-click the PFM - Web Console service, and from the pulldown menu choose Stop.

(2) Enabling or disabling the automatic stop feature for the monitoring console server (Windows)

No operation is necessary because services stop automatically when the system is stopped.

(3) Enabling or disabling the automatic service stop feature for the monitoring console server (UNIX)

With the default installation settings, services are not set to stop automatically when the system shuts down.

To stop services automatically at system shutdown, store in the PFM - Web Console installation folder the script file for stopping services automatically (jpcw_stop) for PFM - Web Console. To disable the automatic service stop feature, delete the jpcw_stop file.

The procedure for enabling the automatic service stop feature is described below.

Important
  • In the following environment you cannot configure the automatic service stop feature independently.

    - CentOS 7 or later

    - Linux 7 or later

    - Oracle Linux 7 or later

    - SUSE Linux 12 or later

    If you enable automatic service stop, you must also enable automatic service start. Similarly, you disable automatic service start, you must also disable automatic service stop.

  • When the automatic service start and stop features are enabled in the following environment and the jpcwstart command is used to start services, the services will not stop automatically when the OS shuts down.

    - CentOS 7 or later

    - Linux 7 or later

    - Oracle Linux 7 or later

    - SUSE Linux 12 or later

    If you want the services to stop automatically, use the systemctl command to restart all Performance Management services. Alternatively, use the jpcwstop command to manually stop the services that were started by the jpcwstart command.

    The following example uses the systemctl command to restart the services:

    > systemctl stop jp1_webcon

    > systemctl start jp1_webcon

  1. Log on to the host where you want to stop services automatically.

  2. Execute the following command to move to the /opt/jp1pcwebcon directory:

    cd /opt/jp1pcwebcon
  3. Set the script file for stopping services automatically for PFM - Web Console.

    • Name of the .model file of the service automatic stop script: jpcw_stop.model

    • Name of the script file for stopping services automatically: jpcw_stop

    Copy the .model file of the service automatic stop script as the script file for stopping services automatically, and add execution permission. Execute the commands as follows:

    cp -p jpcw_stop.model jpcw_stop
    chmod 555 jpcw_stop
  4. Enable automatic service start.

    In the following environment only, enable automatic service start by following the procedure described in 1.2.2(3) Enabling or disabling the automatic service start feature for the monitoring console server (UNIX).

    • CentOS 7 or later

    • Linux 7 or later

    • Oracle Linux 7 or later

    • SUSE Linux 12 or later

To disable automatic stop of services, perform the procedure below.

Important

Assume that automatic stop has been enabled in your environment and that you disable automatic stop and then want to go back to enabling it again. In this case, you have to carry out the automatic service stop setup procedure.

  1. Delete the jpcw_stop file that was stored when the automatic service stop feature was set.