Job Management Partner 1/Automatic Job Management System 3 Configuration Guide 1

[Contents][Glossary][Index][Back][Next]


6.1.1 Settings for starting multiple scheduler services

Job groups are managed by the scheduler service. If multiple scheduler services are started, the scheduler services can be used to manage the job groups.

To start multiple scheduler services, you must first set information such as the names of the scheduler services to be added.

This subsection describes how to specify the settings for starting multiple scheduler services, and shows how to delete scheduler services that have been added.

For details about how to add scheduler services to a logical host and how to delete scheduler services from a logical host, see 8.2.7 Setting startup of multiple scheduler services on a logical host.

Organization of this subsection
(1) Starting multiple scheduler services
(2) Deleting a scheduler service that has been added
(3) Uninstalling an unnecessary database environment

(1) Starting multiple scheduler services

To set startup of multiple scheduler services:

  1. In Windows Control Panel, open the Services administrative tool, and stop the following service:
    • JP1/AJS3 service
     
    Note
    Do not stop the JP1/AJS3 Database services. Make sure that all JP1/AJS3 Database_JF? (?: 1 to 9 or A to Z) services are running. If there are JP1/AJS3 Database_JF? services that are not running, start them.
    Note that you can display all the setup identifiers of the embedded databases for which Database_JF? services must be started by using the ajsembdbidlist command.
    For each setup identifier, execute the ajsembdbstatus command with -s ust -id _JFn (n: 1 to 9 or A to Z) specified to confirm that the embedded database is operating (UNIT-STAT is ONLINE). If the database is not operating, use the ajsembdbstart command with -id _JFn specified to activate it.
  2. Use Explorer or another means to create the following folders:
    • Database folder
    • Folder for temporary files
    • Job information folder
    • Backup information folder
    Make sure that the above folders, other than the backup information folder, are neither folders used by other scheduler services set on the local hosts (the physical host and all logical hosts) nor subfolders of those folders.
  3. Execute the jajs_setup command to add the scheduler service to be started.
     
    jajs_setup -a -F scheduler-service
     -p service-for-the-port-reporting-the-job-status
     -d database-folder
     -t folder-for-temporary-files
     -j job-information-folder
     -b backup-information-folder
     -n scheduler-service-identification-number
     
    Example of adding a scheduler service named AJSROOT2:
    jajs_setup -a -F AJSROOT2
     -p jp1ajs2report2
     -d "C:\Program Files\HITACHI\JP1AJS2\database\schedule\AJSROOT2"
     -t "C:\Program Files\HITACHI\JP1AJS2\tmp\schedule2"
     -j "C:\Program Files\HITACHI\JP1AJS2\jobinf2"
     -b "C:\Program Files\HITACHI\JP1AJS2\backup\schedule2"
     -n 2
     
    For details about the jajs_setup command, see jajs_setup in 2. Commands Used during Setup in the manual Job Management Partner 1/Automatic Job Management System 3 Command Reference 2.
  4. Open the following file with a text editor such as Notepad:
     
    system-folder\system32\drivers\etc\Services
     
  5. For the service name of the port that reports the job status specified in step 3, set the port number.
    Example of setting 20248 as the port number:
    jp1ajs2report2   20248/tcp
     
    Note
    Make sure that the port number you specify does not duplicate any existing port number.
  6. If you want to use queueless jobs, you must perform the setup required for using queueless jobs.
    Execute the following command:
     
    ajsqlsetup [-F scheduler-service-name]
     
    For details about the ajsqlsetup command, see ajsqlsetup in 3. Commands Used for Special Operation in the manual Job Management Partner 1/Automatic Job Management System 3 Command Reference 2.
  7. Restart the JP1/AJS3 service.
    The scheduler service is added and started with the specified settings.
    After the JP1/AJS3 service has been restarted, use JP1/AJS3 - View to confirm that the manager job group is displayed with the name of the added scheduler service attached.

Supplementary note on command execution when multiple scheduler services are running:
When multiple scheduler services are running, if you execute a command without specifying a scheduler service name in the -F option, the default scheduler service is assumed.
You can omit the -F option when the name of a scheduler service name is specified in the AJSCONF environment variable.

(2) Deleting a scheduler service that has been added

To delete a scheduler service that has been added:

  1. Stop the JP1/AJS3 services.
    Stop all JP1/AJS3 services, including the JP1/AJS3 - Manager services, on logical hosts.
     
    Note
    Do not stop JP1/AJS3 Database services. Make sure that all JP1/AJS3 Database_JF? (?: 1 to 9 or A to Z) services are running. If there are any JP1/AJS3 Database_JF? services that are not running, start them.
    Note that you can display all the setup identifiers of the embedded databases for which Database_JF? services must be started by using the ajsembdbidlist command.
    For each setup identifier, execute the ajsembdbstatus command with -s ust -id _JFn (n: 1 to 9 or A to Z) specified to confirm that the embedded database is operating (UNIT-STAT is ONLINE). If the database is not operating, use the ajsembdbstart command with -id _JFn specified to activate it.
  2. Execute the following jajs_setup command to delete the scheduler service.
     
    jajs_setup -e -F scheduler-service-name
     
    Example of deleting the AJSROOT2 scheduler service:
     
    jajs_setup -e -F AJSROOT2
     
    For details about the jajs_setup command, see jajs_setup in 2. Commands Used during Setup in the manual Job Management Partner 1/Automatic Job Management System 3 Command Reference 2.
  3. Delete the folder that was created when the scheduler service was added.
    Delete the following folders that were created when you executed the jajs_setup command:
    • Database folder specified in the -d option
    • Folder for temporary files specified in the -t option
    • Job information folder specified in the -j option
    • Backup information folder specified in the -b option

(3) Uninstalling an unnecessary database environment

To uninstall a database environment that is no longer necessary:

  1. Execute the ajsembdbidlist command to identify the embedded databases that are not being used by any scheduler services.
    Execute the following command:
     
    ajsembdbidlist
     
    For details about the ajsembdbidlist command, see ajsembdbidlist in 2. Commands Used during Setup in the manual Job Management Partner 1/Automatic Job Management System 3 Command Reference 2.
  2. Execute the ajsembdbuninstl command to uninstall an embedded database that is not being used by any scheduler services.
    Execute the following command:
     
    ajsembdbuninstl -id setup-identifier
     
    When uninstalling an embedded database environment associated with version 8 or earlier, follow the uninstallation procedure described in the manual for that product version.
    When uninstalling such an embedded database environment in UNIX, execute the ajsembdbunset command, and then the following command:
     
    /opt/HiRDB_J/bin/pdesetup -u embedded-database-practical-directory
     
    The embedded databases listed below contain information necessary for the system. Do not specify the setup identifiers of these databases in the -id option.
    • Embedded database whose setup identifier is _JF0
    • The embedded database set up first on the host when the setup identifier has been changed to a setup identifier other than _JF0 by performing any of the following operations: (1) migrating data needed for advanced setup of the embedded database, (2) advanced setup of the embedded database, or (3) performing setup again for the embedded database
    • An embedded database set up with the setup identifier specified in the -I option of the jajs_setup_cluster command in an environment in which logical hosts have been created
    For details about the ajsembdbuninstl command, see ajsembdbuninstl in 2. Commands Used during Setup in the manual Job Management Partner 1/Automatic Job Management System 3 Command Reference 2.
    For details about the jajs_setup_cluster command, see jajs_setup_cluster in 2. Commands Used during Setup in the manual Job Management Partner 1/Automatic Job Management System 3 Command Reference 2.

[Contents][Back][Next]


[Trademarks]

Copyright (C) 2009, 2010, Hitachi, Ltd.
Copyright (C) 2009, 2010, Hitachi Solutions, Ltd.