Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 System Design (Work Tasks) Guide


2.1.3 Job type considerations

Because there are many different types of jobs, you must order the jobs that you are defining according to the type of process required. JP1/AJS3 provides the following job types:

The characteristics of each type of job are described below.

Organization of this subsection

(1) Standard job

This type of job executes processing by specifying an executable file. The following table lists the types of executable files that can be specified in each type of standard job.

Table 2‒2: Executable files specifiable in a standard job

No.

Job type

Description

Specifiable executable files

1

Unix job

Process executed on a UNIX host.

  • Executable file

  • Shell script

2

PC job

Process executed on a Windows host.

  • .exe file

  • .com file

  • .cmd file

  • .pif file

  • .bat file

  • .spt file# (script file created with JP1/Script)

  • Data file that has a file type (extension) associated with the application

3

QUEUE job

Process executed by submitting a job to a specified queue.

This job type is used for linking with other systems (such as JP1/NQSEXEC).

  • Executable file

  • Shell script

  • .exe file

  • .com file

  • .cmd file

  • .pif file

  • .bat file

  • .spt file# (script file created with JP1/Script)

  • Data file that has a file type (extension) associated with the application

4

Flexible job

  • Process executed on an agent host that is not directly managed by the manager host.

  • Job broadcast to multiple execution agents.

  • Flexible jobs can be used to execute processing in a cloud environment. Load balancers are supported.

  • Executable file

  • Shell script

  • .exe file

  • .com file

  • .cmd file

  • .bat file

#

To execute an .spt file, JP1/Script must also be installed on the host running the job.

Supplementary note

In an environment in which the agent host can be managed by the manager host because the host name and IP address are fixed, we recommend that you use PC jobs or Unix jobs rather than flexible jobs.

(2) OR job

For an OR job, you define a number of jobs (event jobs) which will monitor the system for a specific event. You define these event jobs as the preceding jobs of the OR job. If any one of the monitored events occurs, the OR job executes its succeeding job.

For details, see 3.1.1(1)(b) OR job in the manual JP1/Automatic Job Management System 3 Overview.

(3) Judgment job

A judgment job checks whether a given condition is satisfied.

The judgment can be based on the following conditions:

For details, see 3.1.1(1)(c) Judgment job in the manual JP1/Automatic Job Management System 3 Overview.

(4) Event job

An event job monitors an event occurring in the system. You can define an event job as the start condition for a job flow or jobnet, so that the particular job or jobnet will be executed only when the monitored event occurs.

The following table describes each event job.

Table 2‒3: Types of event jobs

No.

Event job name

Description

1

Receive JP1 event job

This job terminates when it receives a specific event from JP1/Base.

2

Monitoring files job

This job terminates when a specific file is created, deleted, or updated.

3

Receive mail job

This job terminates when it receives a specific email.

4

Monitoring log files job

This job is linked with the log file trapping of JP1/Base, and terminates when specific information is written to the specified log file.

5

Monitoring event log job

This job is linked with the log file trapping of JP1/Base, and terminates when specific information is written to the Windows event log file.

6

Interval control job

This job terminates when the specified time period elapses.

7

Receive MQ message job#

This job terminates when it receives a specific message from TP1/Message Queue or MQSeries.

8

Receive MSMQ message job

This job terminates when it receives a specific message from MSMQ.

Note

JP1/AJS3 must be linked with the appropriate program to use a Receive mail job, Receive MQ message job, or Receive MSMQ message job. For details, see the JP1/Automatic Job Management System 3 Linkage Guide.

#

Does not apply to Linux.

Operation of event jobs is independent of JP1 user permissions and the authority level defined for the job (by owner, JP1 resource group, or by the user executing the job). In Windows, because event job operation is governed by the account rights to the JP1/AJS3 service, JP1/AJS3 service rights must be set in advance.

(5) Action job

An action job executes a specific process. You can combine an action job with an event job to execute a process (action) when an event occurs. Typical actions might be to send a JP1 event, an email message, or a status notification.

The following table describes each action job.

Table 2‒4: Types of action jobs

No.

Action job name

Description

1

Send JP1 event job

Sends a JP1 event to the event service of JP1/Base.

2

Send mail job

Sends an email message.

3

OpenView Status Report job

Sends a status to HP NNM.

4

Send MQ message job#

Sends a message to TP1/Message Queue or MQSeries.

5

Send MSMQ message job

Sends a message to MSMQ.

Note

JP1/AJS3 must be linked with the appropriate program to use a Send mail job, Send MQ message job, Send MSMQ message job, or OpenView Status Report job. For details on program linkage, see the JP1/Automatic Job Management System 3 Linkage Guide.

#

Does not apply to Linux.

(6) Custom job

A custom job is used to link an external program with JP1/AJS3 to execute processing.

For details, see 3. Adding Custom Jobs in the JP1/Automatic Job Management System 3 Linkage Guide.

(7) Passing information setting job

A passing information setting job extracts the necessary information from a standard output file that is output by a preceding job, and then passes that information to a succeeding job. When a job needs to reference information that changes dynamically, you can have a job output the information to a standard output file and use a passing information setting job to extract this information for use in a succeeding job.

For details, see 3.1.1(1)(g) Passing information setting job in the manual JP1/Automatic Job Management System 3 Overview.

(8) HTTP connection job

An HTTP connection job can send a request or receive a response via HTTP. You can use an HTTP connection job to call a web API (such as the REST API) that is provided in a cloud environment or on a web server. HTTP connection jobs can also link a JP1/AJS3-based business system with a business system on the web.

For details, see 3.1.1(1)(h) HTTP connection job in the manual JP1/Automatic Job Management System 3 Overview.