Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 Command Reference


ajsqlattach

Organization of this page

Format

ajsqlattach
     [-h logical-host-name]

Description

The ajsqlattach command attaches (connects) a logical host to the queueless agent service.

Execution privileges

In Windows: Administrators privileges

In UNIX: Superuser privileges

Storage directory

In Windows:

JP1/AJS3 - Manager-installation-folder\bin\

JP1/AJS3 - Agent-installation-folder\bin\

In UNIX:

/opt/jp1ajs2/bin/

Arguments

-h logical-host-name

Specify the name of the logical host you want to attach to the queueless agent service.

If you omit this option, the system assumes the physical host.

If you specify the option without specifying its value, the command terminates abnormally.

Notes

  1. Before you execute this command, make sure that the queueless agent service is started and the queueless job execution environment for the relevant logical host is set up. If the queueless job execution environment for the relevant logical host has not yet been set up, execute the ajsqlsetup command to set up the queueless job execution environment. For details on the ajsqlsetup command, see ajsqlsetup in 4. Commands Used for Special Operation.

  2. If an attempt is made to execute a queueless job on a logical host that has not been attached, either the queueless job is executed on the physical host according to the value of the AJSQL_NOATTACHREQ environment setting parameter or the queueless job fails to start. For details about how to set the AJSQL_NOATTACHREQ environment setting parameter, see 20.10 Setting up the queueless job execution environment in the JP1/Automatic Job Management System 3 Configuration Guide.

Return values

0

Normal end

Other than 0

Abnormal end

Example

In this example, the command attaches logical host newhost to the queueless agent service.

ajsqlattach -h newhost