Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Integrated Management - Manager Configuration Guide


2.18.2 Setting automatic startup and automatic stop

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 Solaris and 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

    Note:

    In Linux, to have JP1/IM - Manager automatically stop, you need to use automatic startup to start JP1/IM - Manager.

    If you do not use automatic startup, JP1/IM - Manager does not stop automatically when the host is stopped.

(2) In AIX

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

  2. Specify the automatic startup settings.

    Use the mkitab command to add the startup entries for JP1/Base and JP1/IM - Manager to the /etc/inittab file. Set up the IM database and then use mkitab to add entries in the following order:

    # mkitab -i hntr2mon "jp1base:2:wait:/etc/opt/jp1base/jbs_start"

    # mkitab -i jp1base "jp1cons:2:wait:/etc/opt/jp1cons/jco_start"

    After you have added the above settings, use the lsitab command to check the settings.

    # lsitab -a

    init:2:initdefault:

    brc::sysinit:/sbin/rc.boot 3 >/dev/console 2>&1 # Phase 3 of system boot

    :

    :

    hntr2mon:2:once:/opt/hitachi/HNTRLib2/etc/D002start

    jp1base:2:wait:/etc/opt/jp1base/jbs_start

    pe01:234:wait:/var/opt/jp1imm/dbms/JM0/etc/pdpwon_e

    pd01:234:respawn:env LIBPATH=/var/opt/jp1imm/dbms/JM0/lib LC_MESSAGES=C

    var/opt/jp1imm/dbms/JM0/lib/servers/pdprcd /var/opt/jp1imm/dbms/JM0

    jp1cons:2:wait:/etc/opt/jp1cons/jco_start

    #

    The settings are correct if the added entries are specified in the order of hntr2mon (Hitachi Network Objectplaza Trace Library (HNTRLib2)), jp1base, pe01, pd01, and jp1cons.

    Note that the order of the entries in the /etc/inittab file changes when you execute the jimdbupdate command. If you specify the automatic startup settings before setting up the IM database and execute the jimdbupdate command, the entries must be specified in the order of hntr2mon (Hitachi Network Objectplaza Trace Library (HNTRLib2)), jp1base, pe01, pd01, and jp1cons.

  3. Specify the automatic stop settings.

    Use a text editor to add the stop entries for JP1/Base and JP1/IM - Manager to the /etc/rc.shutdown file.

    Perform this step in the following order:

    File name: /etc/rc.shutdown

    :

    test[Figure]-x[Figure]/etc/opt/jp1cons/jco_stop[Figure]&&[Figure]/etc/opt/jp1cons/jco_stop

    test[Figure]-x[Figure]/etc/opt/jp1base/jbs_stop[Figure]&&[Figure]/etc/opt/jp1base/jbs_stop

    :

    Note:

    The /etc/rc.shutdown script detects an error and cancels shutdown processing when the termination code of the last command executed is anything other than zero. Therefore, we recommend that you add a code such as the following at the end of the /etc/rc.shutdown script:

    exit 0

The automatic startup and stop scripts are now enabled.