Hitachi

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


B.1 For Windows

If you have set the environment settings parameter incorrectly, use the following recovery procedure:

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

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

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

  1. Execute the following commands to save the definition information:

    • 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 JP1/Base-installation-folder\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 JP1/Base-installation-folder\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"="C:\Program Files\HITACHI\JP1AJS2\bin"
    "JP1AJS2_JPQNOP"="C:\Program Files\HITACHI\JP1AJS2\bin\jpqnop.exe"
    "JP1AJS2_JPWDEXEPATH"="C:\Program Files\HITACHI\JP1PowerMonitor\bin"
    "USSER-ENVIRONMENT1"="ENVIRONMENT-VALUE1"

    After the change

    [JP1_DEFAULT\JP1NBQAGENT\Variable]
    "JP1AJS2_JPOEXEPATH"="C:\Program Files\HITACHI\JP1AJS2\bin"
    "JP1AJS2_JPQNOP"="C:\Program Files\HITACHI\JP1AJS2\bin\jpqnop.exe"
    "JP1AJS2_JPWDEXEPATH"="C:\Program Files\HITACHI\JP1PowerMonitor\bin"
    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 JP1/Base-installation-folder\bin\jbssetcnf. For details on this command, see the JP1/Base User's Guide.

    This returns you to the state in which the environment settings parameter was added.

  5. Use a text editor such as Windows Notepad to 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.