Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 Configuration Guide


B.2 For UNIX

If you have set the environment setting parameter incorrectly, use the following recovery procedure.

The following shows an example of an environment setting parameter that has been set incorrectly, and then shows a correct environment setting parameter:

Incorrect environment settings parameter
[JP1_DEFAULT\JP1NBQAGENT\Variable]
"USSER-ENVIRONMENT1"="ENVIRONMENT-VALUE1"
Correct environment setting parameter
[JP1_DEFAULT\JP1NBQAGENT\Variable]
"USER-ENVIRONMENT1"="ENVIRONMENT-VALUE1"

To delete an environment setting parameter that has been set incorrectly, as indicated above, and to set a correct environment setting parameter:

  1. Execute the following command to save the definition.

    • For a physical host:

      jbsgetcnf > backup-file-name
    • For a logical host:

      jbsgetcnf -h logical-host-name > backup-file-name

    The path of the jbsgetcnf command is /opt/jp1base/bin/jbsgetcnf. For details on this command, see the JP1/Base User's Guide.

  2. Execute the following command to delete the Variable subkey:

    • For a physical host:

      jbsunsetcnf -h JP1_DEFAULT -c JP1NBQAGENT -n Variable
    • For a logical host:

      jbsunsetcnf -h logical-host-name -c JP1NBQAGENT -n Variable

    The path of the jbsunsetcnf command is /opt/jp1base/bin/jbsunsetcnf. For details on this command, see the JP1/Base User's Guide.

  3. Edit the backup file saved in step 1:

    Before the change

    [JP1_DEFAULT\JP1NBQAGENT\Variable]
    "JP1AJS2_JPOEXEPATH"="/opt/jp1ajs2/bin"
    "JP1AJS2_JPQNOP"="/opt/jp1ajs2/bin/jpqnop"
    "JP1AJS2_JPWDEXEPATH"="/usr/bin/jp1_aom"
    "USSER-ENVIRONMENT1"="ENVIRONMENT-VALUE1"

    After the change

    [JP1_DEFAULT\JP1NBQAGENT\Variable]
    "JP1AJS2_JPOEXEPATH"="/opt/jp1ajs2/bin"
    "JP1AJS2_JPQNOP"="/opt/jp1ajs2/bin/jpqnop"
    "JP1AJS2_JPWDEXEPATH"="/usr/bin/jp1_aom"
    Note:

    Delete the incorrectly added portions, taking care not to delete any existing environment setting parameters.

    To change the logical host environment, specify JP1_DEFAULT in the logical host name.

  4. Save the file and execute the following command to recover the definition:

    jbssetcnf name-of-the-backup-file-created-in-step-1

    The path of the jbssetcnf command is /opt/jp1base/bin/jbssetcnf. For details on this command, see the JP1/Base User's Guide.

    This returns you to the state that existed before the environment configuration parameter was added.

  5. Using a text editor such as vi, create a configuration file that contains the following definition:

    [JP1_DEFAULT\JP1NBQAGENT\Variable]
    "USER-ENVIRONMENT1"="ENVIRONMENT-VALUE1"
  6. Save the file and execute the following command:

    jbssetcnf configuration-file-name
  7. Restart JP1/AJS3.

    The contents of the configuration file are applied to the system.