Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Advanced Shell Description, User's Guide, Reference, and Operator's Guide


2.8.3 Setting up the user-reply functionality after JP1/Advanced Shell has been installed (UNIX only)

This subsection explains the settings to be specified after JP1/Advanced Shell has been installed to use the user-reply functionality.

After you have set up JP1/Advanced Shell, you must enable the function for reply-waiting events in JP1/IM - Manager. For details, see 2.8.4 Specifying environment information in JP1/IM - Manager.

Organization of this subsection

(1) Starting and terminating the user-reply functionality's management daemon automatically

This subsection explains how to have the user-reply functionality's management daemon start and terminate automatically when the system starts up and shuts down.

(a) In AIX

  • Setting up the automatic start function at system startup

    You use the mkitab command to have the user-reply functionality's management daemon start automatically at the time of system startup. The specified setting takes effect the next time the system starts.

    The following shows an example of the mkitab command:

    mkitab "adshmd:2:wait:/opt/jp1as/sbin/adshmdctl start"

    Set the user-reply functionality's management daemon to start after the services of linked JP1-series products have started. For example, to have JP1/Base, JP1/IM - Manager, and JP1/Advanced Shell start automatically in this order, execute the mkitab commands as follows:

    mkitab -i hntr2mon "jp1base:2:wait:/etc/opt/jp1base/jbs_start"
    mkitab -i jp1base "jp1cons:2:wait:/etc/opt/jp1cons/jco_start"
    mkitab -i jp1cons "adshmd:2:wait:/opt/jp1as/sbin/adshmdctl start"

    After you have specified the settings, execute the following lsitab command to check the settings:

    lsitab -a

    The following shows an example of the output after command execution:

    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
    jp1cons:2:wait:/etc/opt/jp1cons/jco_start
    adshmd:2:wait:/opt/jp1as/sbin/adshmdctl start
  • Setting up the automatic termination function at system shutdown

    To have the user-reply functionality's management daemon terminate automatically at the time of system shutdown, you must edit /etc/rc.shutdown to add the following code so that the user-reply functionality's management daemon is terminated before the services of linked JP1-series products are stopped:

    test -x /opt/jp1as/sbin/adshmdctl && /opt/jp1as/sbin/adshmdctl stop
        :
    termination processing for services of linked JP1-series products
        :

(b) In Linux

In JP1/Advanced Shell, the script file jp1_as_md for automatically starting and terminating the user-reply functionality's management daemon is stored in the /opt/jp1as/sample directory. The procedure for using this script file to set the user-reply functionality's management daemon to start and terminate automatically is described below.

  • Adding to the /etc/rc.d/init.d directory

    Add jp1_as_md stored in the /opt/jp1as/sample directory to /etc/rc.d/init.d. To add jp1_as_md, specify as follows:

    cp /opt/jp1as/sample/jp1_as_md /etc/rc.d/init.d
    chmod u=rwx,go=rx /etc/rc.d/init.d/jp1_as_md
    chown root:root /etc/rc.d/init.d/jp1_as_md
  • Creating a symbolic link for automatic startup

    Create a symbolic link to /etc/rc.d/init.d/jp1_as_md in the /etc/rc.d/rcN.d directory (N indicates the execution level at startup). You must name the symbolic link in such a manner that the user-reply functionality's management daemon is started after the services of linked JP1-series products have been started.

    For example, if the name of the symbolic link for JP1/Base's automatic start script provided in the /etc/rc.d/rc3.d and /etc/rc.d/rc5.d directories is S99_JP1_10_BASE and the name of the symbolic link for JP1/IM - Manager's automatic start script is S99_JP1_20_CONS, the user-reply functionality's management daemon will be started after JP1/Base and JP1/IM - Manager if you specify as follows, using S99_JP1_70_AS as the name of the symbolic link so that it falls after S99_JP1_20_CONS:

    ln -s /etc/rc.d/init.d/jp1_as_md /etc/rc.d/rc3.d/S99_JP1_70_AS
    ln -s /etc/rc.d/init.d/jp1_as_md /etc/rc.d/rc5.d/S99_JP1_70_AS
    chown -h root:root /etc/rc.d/rc3.d/S99_JP1_70_AS
    chown -h root:root /etc/rc.d/rc5.d/S99_JP1_70_AS
  • Creating a symbolic link for automatic termination

    Create a symbolic link to /etc/rc.d/init.d/jp1_as_md in the /etc/rc.d/rcN.d directory (N indicates the execution level at termination). You must name the symbolic link in such a manner that the user-reply functionality's management daemon is terminated before the services of the linked JP1-series products are stopped.

    For example, if the name of the symbolic link for JP1/Base's automatic termination script provided in the /etc/rc.d/rc0.d and /etc/rc.d/rc6.d directories is K01_JP1_90_BASE and the name of the symbolic link for JP1/IM - Manager's automatic termination script is K01_JP1_80_CONS, the user-reply functionality's management daemon will be terminated before JP1/Base and JP1/IM - Manager if you specify as follows, using K01_JP1_30_AS as the name of symbolic link so that it falls before K01_JP1_80_CONS:

    ln -s /etc/rc.d/init.d/jp1_as_md /etc/rc.d/rc0.d/K01_JP1_30_AS
    ln -s /etc/rc.d/init.d/jp1_as_md /etc/rc.d/rc6.d/K01_JP1_30_AS
    chown -h root:root /etc/rc.d/rc0.d/K01_JP1_30_AS
    chown -h root:root /etc/rc.d/rc6.d/K01_JP1_30_AS

    If you change the _JP1_30_AS part in the name of symbolic link K01_JP1_30_AS, you must also change _JP1_30_AS on the following lines in the jp1_as_md script file:

    touch /var/lock/subsys/_JP1_30_AS
    rm -f /var/lock/subsys/_JP1_30_AS

(c) In HP-UX

In JP1/Advanced Shell, the script file jp1_as_md for automatically starting and terminating the user-reply functionality's management daemon is stored in the /opt/jp1as/sample directory. The procedure for using this script file to set the user-reply functionality's management daemon to start and terminate automatically is described below.

  • Adding to the /sbin/init.d directory

    Add jp1_as_md stored in the /opt/jp1as/sample directory to /sbin/init.d. To add jp1_as_md, specify as follows:

    cp /opt/jp1as/sample/jp1_as_md /sbin/init.d
    chmod u=rx,go=r /sbin/init.d/jp1_as_md
    chown root:sys /sbin/init.d/jp1_as_md
  • Creating a symbolic link for automatic startup

    Create a symbolic link to /sbin/init.d/jp1_as_md in the /sbin/rc2.d directory. You must name the symbolic link in such a manner that the user-reply functionality's management daemon is started after the services of the linked JP1-series products have been started.

    For example, if the name of the symbolic link for JP1/Base's automatic start script provided in the /sbin/rc2.d directory is S900jp1_base and the name of the symbolic link for JP1/IM - Manager's automatic start script is S901jp1_cons, the user-reply functionality's management daemon will be started after JP1/Base and JP1/IM - Manager if you specify as follows, using S905jp1_as_md as the name of the symbolic link so that 905 falls after 901:

    ln -s /sbin/init.d/jp1_as_md /sbin/rc2.d/S905jp1_as_md
    chown -h root:sys /sbin/rc2.d/S905jp1_as_md
  • Creating a symbolic link for automatic termination

    Create a symbolic link to /sbin/init.d/jp1_as_md in the /sbin/rc1.d directory. You must name the symbolic link in such a manner that the user-reply functionality's management daemon is terminated before the services of linked JP1-series products are stopped.

    For example, if the name of the symbolic link for JP1/Base's automatic termination script provided in the /sbin/rc1.d directory is K100jp1_base and the name of the symbolic link for JP1/IM - Manager's automatic termination script is K099jp1_cons, the user-reply functionality's management daemon will be terminated before JP1/Base and JP1/IM - Manager if you specify as follows, using K095jp1_as_md as the name of symbolic link so that 095 falls before 099:

    ln -s /sbin/init.d/jp1_as_md /sbin/rc1.d/K095jp1_as_md
    chown -h root:sys /sbin/rc1.d/K095jp1_as_md

(d) In Solaris

In JP1/Advanced Shell, the script file jp1_as_md for automatically starting and terminating the user-reply functionality's management daemon is stored in the /opt/jp1as/sample directory. The procedure for using this script file to set the user-reply functionality's management daemon to start and terminate automatically is described below.

  • Adding to the /etc/init.d directory

    Add jp1_as_md stored in the /opt/jp1as/sample directory to /etc/init.d. To add jp1_as_md, specify as follows:

    cp /opt/jp1as/sample/jp1_as_md /etc/init.d
    chmod u=rwx,go=r /etc/init.d/jp1_as_md
    chown root:sys /etc/init.d/jp1_as_md
  • Creating a symbolic link for automatic startup

    Create a symbolic link to /etc/init.d/jp1_as_md in the /etc/rc2.d directory (N indicates the execution level at startup). You must name the symbolic link in such a manner that the user-reply functionality's management daemon is started after the services of the linked JP1-series products have been started.

    For example, if the name of the symbolic link for JP1/Base's automatic start script provided in the /etc/rc2.d directory is S99_JP1_10_BASE and the name of the symbolic link for JP1/IM - Manager's automatic start script is S99_JP1_20_CONS, the user-reply functionality's management daemon will be started after JP1/Base and JP1/IM - Manager if you specify as follows, using S99_JP1_70_AS as the name of the symbolic link so that it falls after S99_JP1_20_CONS:

    ln -s /etc/init.d/jp1_as_md /etc/rc2.d/S99_JP1_70_AS
    chown -h root:sys /etc/rc2.d/S99_JP1_70_AS
  • Creating a symbolic link for automatic termination

    Create a symbolic link to /etc/init.d/jp1_as_md in the /etc/rc0.d directory. You must name the symbolic link in such a manner that the user-reply functionality's management daemon is terminated before the services of linked JP1-series products are stopped.

    For example, if the name of the symbolic link for JP1/Base's automatic termination script provided in the /etc/rc0.d directory is K01_JP1_90_BASE and the name of the symbolic link for JP1/IM - Manager's automatic termination script is K01_JP1_80_CONS, the user-reply functionality's management daemon will be terminated before JP1/Base and JP1/IM - Manager if you specify as follows, using K01_JP1_30_AS as the name of symbolic link so that it falls before K01_JP1_80_CONS:

    ln -s /etc/init.d/jp1_as_md /etc/rc0.d/K01_JP1_30_AS
    chown -h root:sys /etc/rc0.d/K01_JP1_30_AS

(2) Setting up JP1/Base

To use the user-reply functionality, you must have first copied the adapter command configuration file that is provided by JP1/Advanced Shell and used for the user-reply functionality to the corresponding directory in JP1/Base. Copy the following adapter command configuration file used for the user-reply functionality to the corresponding directory in JP1/Base:

Perform this setup only once after you have installed JP1/Advanced Shell. However, if you have re-installed JP1/Base, you must perform this setup again.