Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Automatic Operation Service Template Reference


4.4.2 Register JP1/AJS jobnet for execution

Function

Registers and executes on a specified server a jobnet for JP1/AJS3 - Manager (or JP1/AJS2 - Manager; hereafter, both are referred to collectively as JP1/AJS).

This plugin assumes the following server:

• Job server (Execution target server)

This is the server on which the JP1/AJS jobnet its to be executed. The JP1/AJS described in the prerequisites must have already been set up.

This plugin can perform only immediate execution of a jobnet. To check the jobnet's execution results, you must use the jp1ajsCheck plugin to obtain the results after you have used this plugin to register and execute the jobnet.

Use situation

If routine tasks in an operation procedure already exist as jobnets, you can use this plugin to execute a jobnet from a service. You can reference a jobnet's execution results by using the following plugins:

jp1ajsCheck

Prerequisites

For the latest support information about [Required product in the System]/[Required products on the execution target system]/[Prerequisite product OS running in the execution target server], see the release notes.

[Required product in the System]

(1)Job Management Partner 1/Automatic Operation 10-00 or later

[Required products on the execution target server]

(1)Job Management Partner 1/Automatic Job Management System 3 - Manager 09-00 or later

(2)Job Management Partner 1/Automatic Job Management System 2 - Manager 08-00 or later

[Prerequisite product OS running in the execution target server]

(1) Windows Server 2003, Standard Edition/Enterprise Edition (x86/x64) SP1 or later,Windows Server 2003 R2, Standard Edition/Enterprise Edition (x86/x64)

(2) Windows Server 2008 Standard/Enterprise (x86/x64),Windows Server 2008 R2 Standard/Enterprise/Datacenter

(3) Windows Server 2012 Standard/Datacenter, Windows Server 2012 R2 Standard/Datacenterr

(4) Red Hat Enterprise Linux 5 Advanced Platform (x86), Red Hat Enterprise Linux 5 (x86), Red Hat Enterprise Linux 5 Advanced Platform (AMD/Intel 64), Red Hat Enterprise Linux 5 (AMD/Intel 64)

(5) Red Hat Enterprise Linux Server 6 (32-bit x86),Red Hat Enterprise Linux Server 6 (64-bit x86_64)

[Usage conditions for required products on the execution target server]

(1) The jobnet to be registered and executed has already been created.

(2) Only registration and execution of a root jobnet is supported. Batch execution of job groups is not supported.

(3) Only registration and immediate execution of a jobnet is supported. Any start condition that is specified for the jobnet is ignored.

(4) Execution of a jobnet registered in the local (Job Management Partner 1/AO server's) Job Management Partner 1/AJS is not supported.

(5) You specify in the JP1AJS.executeJP1UserName property the name of the Job Management Partner 1 user who is to register and execute the jobnet on the execution target server. If this Job Management Partner 1 user has the same name as the OS user who is connected from Job Management Partner 1/AO, there is no need to specify this property.

(6) To register a jobnet defined on a logical host in a cluster configuration:

• Specify the active server's physical host name or logical host name in the plugin.destinationHost property.

• Specify the name of the scheduler service running on the logical host in the JP1AJS.serviceName property.

• Specify the name of the logical host on which the scheduler service is running in the JP1.logicalHostName property.

Cautions

(1) This plugin performs immediate registration and execution of a jobnet. If necessary, you can use JP1/AJS3 - View to check the jobnet's execution status, especially if the jobnet requires a long time to process.

Execution privilege

The following settings are required for the OS user who will be connecting from JP1/AO to the job server.

If the JP1 user name and the OS user name are not the same, make sure that you specify the jp1ajs.executeJP1UserName property.

[Common to both Windows and Linux]

The OS user name must be the same as the name of a JP1 user to whom JP1_AJS_Operator, JP1_AJS_Manager, or JP1_AJS_Admin permissions are granted.

Version

01.00.04

Category

JP1/AJS

Plug-in name displayed in the task log

jp1ajsExecute

Return code

0: Normal

21: Error (invalid environment) Command cannot be found (error detected in the plugin script)

27: Error (check task logs for the nature of error)

41: Error (error detected in plugin) Missing property (error detected in plugin script)

42: Error (error detected in plugin) Internal error (error detected in the plugin script)

Property list

The following table lists the properties:

Property key

Property name

Description

Default value

I/O type

Required

JP1AJS.serviceName

JP1/AJS service name

Specify the service name of the scheduler.Specify the service name of the JP1/AJS on logical host (when using business server in a cluster configuration).

--

Input

O

JP1AJS.jobnetName

Jobnet name

Specify the name of the jobnet to be registered for execution.

--

Input

R

JP1AJS.macroParameter

JP1/AJS macro variable

Specify a comma-separated list of JP1/AJS macro variable name and value pairs in <name>:<value> format.

Example: AJS2AA:5,AJS2BB:test

--

Input

O

plugin.destinationHost

Host name of the execution target server

Specify the host name or IP address of the server on which this plugin will be executed. IPv6 addresses are not supported.

--

Input

R

JP1AJS.executeJP1UserName

JP1 user name for executing the jobnet

Specify the name of the JP1 user who will execute the jobnet. You do not need to specify this property if the name of the JP1 user who will execute the jobnet is the same as the OS user name specified during connection to the execution target server.

--

Input

O

JP1.logicalHostName

Logical host name for the execution target server

Specify the JP1 logical host name of the execution target server.

--

Input

O

common.returnValue

Return value for the plugin

The return value of this plugin stored.

--

Output

O