Hitachi

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


21.3.2 Setup procedure to execute a job by broadcast execution

This subsection describes the setup procedure to execute a job by broadcast execution in a cloud environment that uses a relay agent and a broadcast agent.

Organization of this subsection

(1) Setting up JP1/AJS3 - Manager

This subsection describes how to set up JP1/AJS3 - Manager.

  1. Install and set up JP1/AJS3 - Manager and JP1/Base.

  2. On the manager host, start the following service:

    • JP1/AJS3 service

  3. Set up a relay agent, and then execute the ajsagtadd command on the manager host to register the relay agent as an execution agent.

    For details about how to set up a relay agent, see (2) Setting up a relay agent.

    For details about the ajsagtadd command, see ajsagtadd in 3. Commands Used for Normal Operations in the manual JP1/Automatic Job Management System 3 Command Reference.

(2) Setting up a relay agent

This subsection describes how to set up a relay agent.

  1. Install and set up JP1/AJS3 - Agent and JP1/Base.

  2. Execute the ajsatsetup command with the -m option specified.

    The host is set up as a relay agent. At the same time, the JP1/AJS3 Autonomous Agent Messenger service is set up completely. For details about the ajsatsetup command, see ajsatsetup in 2. Commands Used during Setup in the manual JP1/Automatic Job Management System 3 Command Reference.

  3. In the relay agent, specify settings to enable the communication using port number 22251/tcp (jp1ajs2atmsg) to pass through the firewall.

    For details about the setting of port numbers, see 2.3.4 Communications in firewall environments in the JP1/Automatic Job Management System 3 System Design (Configuration) Guide.

  4. On the relay agent, start the following services:

    • JP1/AJS3 service

    • JP1/AJS3 Autonomous Agent Messenger service

(3) Setting up the cloud environment

This subsection describes how to set up the cloud environment.

(a) Setting up a broadcast agent

Create an instance for the broadcast agent in the cloud environment.

  1. Create an instance for the broadcast agent in the cloud environment.

  2. Install and set up JP1/AJS3 - Agent and JP1/Base in the created instance.

  3. Execute the ajsatsetup command with the -g option specified.

    The host is set up as a relay agent. At the same time, the JP1/AJS3 Autonomous Agent and JP1/AJS3 Autonomous Agent Messenger services are set up completely. For details about the ajsatsetup command, see ajsatsetup in 2. Commands Used during Setup in the manual JP1/Automatic Job Management System 3 Command Reference.

  4. Specify the following settings for the instance:

    • Enable the host name of the relay agent to be resolved.

      When you do not use the relay agent, enable the host name of the manager host to be resolved. Note that you cannot use jp1hosts and jp1hosts2 for host name resolution.

    • Specify settings to enable connections via ports with port numbers 22251/tcp (jp1ajs2atmsg) and 22251/udp (jp1ajs2atmsg) to pass through the firewall.

  5. Start the following services:

    • JP1/AJS3 Autonomous Agent service

    • JP1/AJS3 Autonomous Agent Messenger service

  6. Specify the following settings for the cloud environment:

    • Set up security appropriately so that only the communications originating from the relay agent will be permitted. If you do not use a relay agent, set up security so that only communications originating from the manager host are permitted.

    • Set a static IP address.

    • Disable auto-scaling.

(b) Setting up a destination agent

Create an instance for the destination agent in the cloud environment.

  1. Create an instance for the destination agent in the cloud environment.

  2. Install and set up JP1/AJS3 - Agent and JP1/Base in the created instance.

  3. Execute the ajsatsetup command with the -a -p option specified.

    For the -p option, specify the host name or IP address of a broadcast agent.

    The host is set up as a broadcast-execution destination agent. At the same time, the JP1/AJS3 Autonomous Agent and JP1/AJS3 Autonomous Agent Messenger services are set up completely. For details about the ajsatsetup command, see ajsatsetup in 2. Commands Used during Setup in the manual JP1/Automatic Job Management System 3 Command Reference.

  4. Specify the following settings for the instance:

    • Set up user mapping in JP1/Base.

      When you use a broadcast agent, enter the host name of the broadcast agent or an asterisk (*) for Server host.

    • In Linux, set automatic startup of the JP1/AJS3 Autonomous Agent and JP1/AJS3 Autonomous Agent Messenger services.

      For details about how to set automatic startup, see 15.9.1(5) Setting automatic startup and termination of the JP1/AJS3 Autonomous Agent service or the JP1/AJS3 Autonomous Agent Messenger service.

      In Windows, this setting is not necessary because the JP1/AJS3 Autonomous Agent and JP1/AJS3 Autonomous Agent Messenger services always start automatically.

    • If necessary, disable automatic startup of JP1/Base and JP1/AJS3 services.

      The JP1/Base and JP1/AJS3 services do not need to start on the destination agent. When you want to avoid starting unnecessary services, disable their automatic startup.

    • Enable the host name of the broadcast agent to be resolved.

    • Deploy the program (user program) to be executed.

  5. Start the following services:

    • JP1/AJS3 Autonomous Agent service

    • JP1/AJS3 Autonomous Agent Messenger service

  6. Specify the following setting for the cloud environment:

    • Set up auto scaling.