Hitachi

JP1 Version 11 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
  • When you enable the automatic service stop feature in CentOS 7, Linux 7, Oracle Linux 7, or SUSE Linux 12, you must also enable the automatic start feature. For details, see 1.2.2(3) Enabling or disabling the automatic service start feature for the monitoring console server (UNIX).

  • When the automatic service start and stop features are enabled in a CentOS 7, Linux 7, Oracle Linux 7, or SUSE Linux 12 environment and the jpcwstart command is used to start services, the services will not stop automatically when the OS shuts down. 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. Register the automatic stop script file for AIX (in AIX only).

    Register the script file for stopping services automatically for PFM - Web Console set in step 3 into the automatic stop script file for AIX.

    • Name of the automatic stop script file: /etc/rc.shutdown

    Add the lines shown below to the automatic stop script file. You do not need to take the sequence into consideration when stopping services.

    if [ -x /opt/jp1pcwebcon/jpcw_stop ]; then
            /opt/jp1pcwebcon/jpcw_stop
    fi

    Create a new file if there is no /etc/rc.shutdown file. After that, set the attributes of the file as follows:

    chmod 550 /etc/rc.shutdown
    chown root /etc/rc.shutdown
    chgrp shutdown /etc/rc.shutdown

    The added lines and the /etc/rc.shutdown file are not deleted upon uninstallation. Delete the added lines, if necessary, when performing uninstallation.

  5. To apply the settings, execute the following command to start the PFM - Web Console service (in CentOS 7, Linux 7, Oracle Linux 7, or SUSE Linux 12 only):

    systemctl start jp1_webcon

    If you do not execute this command, automatic stop processing will fail for the first service that is run after the settings were specified.