Hitachi

JP1 Version 12 JP1/Integrated Management 2 - Manager Configuration Guide


2.17.2 Setting automatic startup and automatic stop (for UNIX)

This subsection describes the procedure for implementing automatic startup and stopping of JP1/IM - Manager at the time the host is started and stopped.

In the automatic startup and automatic stop scripts, C is set for the LANG environment variable by default. If you want to change the language for the output messages when the scripts are executed, edit the line of the LANG environment variable in the scripts.

Organization of this subsection

(1) In Linux

To set automatic startup and automatic stop:

  1. Copy the automatic startup and automatic stop scripts.

    # cd /etc/opt/jp1cons

    # cp -p jco_start.model jco_start

    # cp -p jco_stop.model jco_stop

(a) Notes about automatic startup of services

In a Linux environment, when the automatic startup and automatic stop of JP1/IM - Manager are enabled but you want to start or stop JP1/IM - Manager manually, execute the commands listed below. To check the status (started or stopped) of JP1/IM - Manager processes, you can use the jco_spmd_status command. When the IM database is used, you can use the jimdbstatus command to check the operation status of the IM database.

  • Starting JP1/IM - Manager

    Physical hosts:

    systemctl start jp1_cons.service

    Logical hosts:

    systemctl start jp1_cons_logical-host-name.service

  • Stopping JP1/IM - Manager

    Physical hosts:

    systemctl stop jp1_cons.service

    Logical hosts:

    systemctl stop jp1_cons_logical-host-name.service

Even when automatic startup and stop is set to enabled, JP1/IM - Manager does not stop automatically after it is started or stopped by using a command other than the systemctl command, for example, by using the jco_start or jco_start.cluster command to start, or the jco_stop or jco_stop.cluster command to stop. (In such a case, automatic startup and stop remains enabled although the stop script does not start when the system stops.)

To allow JP1/IM - Manager to stop automatically when the system stops, start it again by using the systemctl command. To know whether JP1/IM - Manager will stop automatically, execute the following commands to check whether active is returned.

Physical hosts:

systemctl is-active jp1_cons.service

Logical hosts:

systemctl is-active jp1_cons_logical-host-name.service

(b) Notes about syslog

If automatic startup and automatic stop have not been configured#1 in a Linux system on which the systemd package has been installed and an attempt is made to start or stop the system, the message shown below is output to syslog.

Even though this message is output, automatic startup and automatic stop are not performed, because they have not been configured. You can use the jco_spmd_status command to check the status of JP1/IM-Manager Service.

  • Message that is output to syslog#2

    At startup: systemd: Started JP1/Integrated Management 2 - Manager Service.

#1

Automatic startup and automatic stop have not been configured means that the following files do not exist:

/etc/opt/jp1cons/jco_start

/etc/opt/jp1cons/jco_stop

#2

When automatic startup and automatic stop are performed on a logical host in a non-cluster system, the service name specified in Description in the automated startup script and the automated stop script that has been created for the logical host are displayed in the message.

Example:

At startup: systemd: Started JP1/Integrated Management 2 - Manager logical-host-name Service.

(c) Notes about automatic stop of services

If JP1/IM - Manager is configured to stop automatically, make sure that you note the following:

  • JP1/IM - Manager automatically stops only when the run level is set to 0. Thus, it does not automatically stop even if the run level is changed to single-user mode.

  • To change the run level of JP1/IM - Manager, you must first stop JP1/IM - Manager, if it is running. To stop JP1/IM - Manager, you can also execute the following command to set the JP1/IM - Manager automatic stop script:

    ln -s /etc/rc.d/init.d/jp1_cons /etc/rc.d/rc<run-level>.d/K01_JP1_80_CONS