Job Management Partner 1/Automatic Job Management System 3 Command Reference 1

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


ajschkdef

Format

ajschkdef
     [-F service-name]
     [{-s|-a}]
     [-O][-M][-P][-H][-D][-U][-A]
     [-u registered-user-name]
     [-o output-file-name]
     [-R]
     [-L]
     [-T]
     [-N]
     [-J]
     job-name, jobnet-name-or-job-group-name...
 

Description

Starts the execution of a definition pre-check and displays the state of execution.

Execution privileges

In Windows: Administrators privileges

In UNIX: Superuser privileges

Storage directory

In Windows:
JP1/AJS3 - Manager-installation-folder\bin\

In UNIX:
/opt/jp1ajs2/bin/

Arguments

-F service-name

Specify the name of a scheduler service for which units that will undergo a definition pre-check are defined.

You can specify a string of 1 to 30 bytes.

If you omit this option, the default is the value of environment variable AJSCONF. If environment variable AJSCONF has not been set, the name of the default scheduler service is assumed.

When specifying the scheduler service name for the logical host, you need to specify the logical host name in environment variable JP1_HOSTNAME.

If environment variable JP1_HOSTNAME has not been set, the local host name is assumed.

-s

Starts the execution of the definition pre-check.

-a

Outputs the execution status of the definition pre-check to the standard output file. The following table summarizes the names of execution statuses to be output:

State of execution Name of status to be output Meaning
Not yet executed stop
  • The definition pre-check can be executed.
  • The definition pre-check result file has been updated.
Currently being executed run
  • The definition pre-check cannot be executed.
  • The definition pre-check result file is being updated

-O, -M, -P, -H, -D, -U, -A

Specify the items you want to check in a definition pre-check.

You can specify more than one check item at the same time. The following table summarizes what each option actually checks and the order in which checks are made (the order shown is an example).

Checking order Option Check item
1 -O Order of execution
2 -M Detailed jobnet definition
3 -P Empty job definition
4 -H Execution agent name
5 -U User mapping
6 -D Detailed job definition
7 -A Execution file privileges

The command checks in the order of the options shown in the table, regardless of the order in which you specify the options. If you specify -A, the command assumes that -U is also specified because checking Execution file privileges requires information about the OS user who executes the job. Note that the third and subsequent checks (checking orders 3 to 7) are performed on the agent side. Therefore, for these checks, the command assumes that -H is specified and checks the execution agent name.

By default, all options (-O, -M, -P, -H, -D, -U, -A) are assumed.

None of these options can be specified together with the -a option.

-u registered-user-name

Specify the JP1 user for which the jobnet is actually registered in actual operation.

You can specify a string of 1 to 31 bytes.

When the job definition has a registered user in its execution user type, the specified JP1 user performs the user mapping check.

By default, the user executing this command is assumed.

This option cannot be specified together with the -a option.

-o output-file-name

Using an absolute path, specify the pre-check result file name. See Output example for the format of the pre-check result file name.

You can specify a string of 1 to 255 bytes.

An overwrite is performed if there is a file whose name is the same as that of the specified output file.

An error occurs if there is no directory path.

If you omit this option, the default is the file name specified in the environment variable parameter AJSCHK_CHECKFILE. If the environment variable parameter AJSCHK_CHECKFILE is not specified, one of the following is assumed:

In Windows:
corresponding-scheduler-service-log-destination-folder\ajscheckfile.txt

In UNIX:
corresponding-scheduler-service-log-destination-directory/ajscheckfile.txt

This option cannot be specified together with the -a option.

-R

Performs a definition pre-check on all jobnets or jobs contained in the specified units.

If you specify this option together with the -L, -T, -N, or -J option, a definition pre-check is performed on all jobnets or jobs according to the definition of each option.

This option cannot be specified together with the -a option.

-L

Performs a definition pre-check on unregistered jobnets and jobs.

If you specify this option together with the -T, -N, or -J option, a definition pre-check is performed on unregistered jobnets according to the definition of each option.

This option cannot be specified together with the -a option.

-T

Performs a definition pre-check on the root jobnet.

You cannot specify this option together with the -a or -J option.

-N

Performs a definition pre-check on jobnets.

You cannot specify this option together with the -a or -J option.

-J

Performs a definition pre-check on jobs.

You cannot specify this option together with the -a, -T, or -N option.

job-name, jobnet-name-or-job-group-name

Specify the job, jobnet, or job group for which you are to perform a definition pre-check.

A definition pre-check starts with the units immediately under the specified unit.

You can specify a string of 1 to 930 bytes.

You can specify multiple jobs, jobnets, or job groups. You can also specify the root job group (/).

Note that a job, jobnet, or job group cannot contain the logical host name, scheduler service name, or execution ID.

This option cannot be specified together with the -a option.

Notes

Return values

0 Normal end
Values other than 0 Abnormal end

Example

In this example, the command below executes a definition pre-check under the following conditions:

 
ajschkdef -F AJSROOT1 -s -u USER1 -RLJ /GROUP1/NET1
 

Output example

The following shows an example of the result of a definition pre-check performed under the conditions shown in Example above. In the following example, missing execution agent registration in Manager is detected for /GROUP1/NET1/JOB1, and an empty job definition is detected for /GROUP1/NET1/JOB2.

[Figure]

Explanation of output items

(1) CHECKUNIT=full-unit-name[, full-unit-name...]
The unit name specified when the definition pre-check was performed is output in full-unit-name form. If you specified multiple names, all of them are output, with a comma inserted between them.

(2) CHECKSERVICE=scheduler-service-name
The scheduler service name specified when the definition pre-check was performed is output.

(3) CHECKUSER=registered-user-name
The registered-user-name specified when the definition pre-check was performed is output.

(4) CHECKOPT=specified-option
The options (-O/-M/-P/-H-/-D/-U/-A/-R/-L/-T/-N/-J) specified when the definition pre-check was performed are output, with a comma inserted between them.

(5) CHECKSTARTTIME=execution-start-date
The date and time at which the definition pre-check was performed are output in the form YYYY/MM/DD hh:mm:ss.

(6) Empty lines

(7) Check result information (unit name, path name, error category, error details)
After the definition pre-check is performed, information about the check result is output in list form. The units involving errors are listed, with a comma inserted between them.

unit-name
The unit name of a unit that showed an error in the check is output.

path-name
The path name (the full parent unit name) of a unit that showed an error in the check is output.

error-category
The category of an error that was detected in the check is output.
See the following table for the categories of errors that are output.

error-details
The details of an error (classified by error category) that was detected in the check are output.
The following table gives details about output errors.
Check item specified at startup Error category Error detail
Order of execution The execution order is looped in the relation definitions.
  • For 08-10 and earlier:
    (none)
  • For 08-50 and later:
    unit=unit-name#1
A dependent job has not been defined for a judgment job.
  • For 08-10 and earlier:
    (none)
  • For 08-50 and later:
    unit=unit-name;unit-name;...#2
A relation definition other than a conditional connection has been defined for a dependant job.
  • For 08-10 and earlier:
    (none)
  • For 08-50 and later:
    unit=unit-name;unit-name;...#3
Execution agent name The host name of the Manager cannot be resolved from the Agent side. MANAGER_HOST=
manager-host-name
The host IP address of the Manager cannot be resolved from the Agent side. MANAGER_IP=
manager-host-IP-address
The execution-agent has not been registered on the Manager side. EXEC_AGENT=
execution-agent-name
The target host name cannot be resolved from the Manager side. AGENT_HOST=
execution-host-name
Detailed jobnet definition The specified connection range is different from the jobnet for the connection-destination. unit=connection-destination-jobnet-name#4
Cannot connect to the specified host. nchn=connection-host-name
Specified Scheduler service not exist. ncsv=connection-service-name
Jobnet name for the connection-destination is not specified. (none)
The specification of jobnet for the connection-destination is not collect. ncr=connection-destination-jobnet-name
The jobnet for the connection-destination is not configured for controlling the execution order. unit=connection-destination-jobnet-name#4
Cannot connect with the connection host name specified in the jobnet for the connection-destination. unit=connection-destination-jobnet-name#4
The connection service name specified in the jobnet for the connection-destination is incorrect. unit=connection-destination-jobnet-name#4
The jobnet connector name specified at jobnet for the connection-destination is wrong. unit=connection-destination-jobnet-name#4
Detailed job definition The specified user does not exist. un=execution-user-name
The specified file or directory does not exist. sc=script-file-name (execution-file-name)
ev=environment-variable-file-name
wkp=working-path-name
si=standard-input-file-name
ts1=transfer-source-file-name
td1=transfer-destination-file-name
ts2=transfer-source-file-name
td2=transfer-destination-file-name
ts3=transfer-source-file-name
td3=transfer-destination-file-name
ts4=transfer-source-file-name
td4=transfer-destination-file-name
You do not have permission to access the specified file or directory. sc=script-file-name (execution -file-name)
ev=environment-variable-file-name
wkp=working-path-name
si=standard-input-file-name
so= standard-output-file-name
se= standard-error-output-file-name
ts1=transfer-source-file-name
td1=transfer-destination-file-name
ts2=transfer-source-file-name
td2=transfer-destination-file-name
ts3=transfer-source-file-name
td3=transfer-destination-file-name
ts4=transfer-source-file-name
td4=transfer-destination-file-name
The specified platform type is invalid. pfm=platform-type
The format of the value specified for the event ID is invalid. evwid=event-ID
The value specified for "Find event before exec." is outside the valid range. Evesc=pre-search-time
The format of the name of the file to be monitored is invalid. flwf=monitoring-target-file-name
User mapping The specified user mapping is invalid. JP1_USER=JP1-user-name
Mapping of an execution host is invalid. JP1_USER=JP1-user-name
Mapping of a OS user is invalid. OS_USER=OS-user-name
Execution file privileges You do not have permission to execute the specified script file or executable file. JP1_USER=JP1-user-name
FILE_AUTH=file-privilege#5
Empty job definition The script file or executable file or event ID is not specified. (None)

#1
Only one unit name is output for units whose execution order is looped in the relation definitions.

#2
The names of judgment jobs for which subordinate jobs are not defined by using conditional relations are output.
If there are multiple errors, all unit names separated with a semicolon (;) are output.

#3
The names of subordinate jobs that have relation definitions other than conditional relations are output.
If there are multiple errors, all unit names separated with a semicolon (;) are output.

#4
If Other service is specified for Connection range, host-name:scheduler-service-name:unit-name is output.

#5
For details about file privileges, see the following table.
File privileges are output in the same way as in the chmod command. (Example: 0644)

Access permission type Value Explanation
Special access permission 1000 Swap is maintained in the program code.
2000 The group ID is set during execution.
4000 The user ID is set during execution.
User with the same UID 100 Execution
200 Writing
400 Reading
Group with the same GID 10 Execution
20 Writing
40 Reading
Other user 1 Execution
2 Writing
4 Reading

(8) Empty lines

(9) CHECKENDTIME=execution-end-date
The date and time when the definition pre-check ended is output in the form YYYYH/MM/DD hh:mm:ss form.

(10) NUMBER OF CHECKUNITS=number-of-checked-units/number-of-units-subject-to-checking, NUMBER OF ERRORS= number-of-items-for-which-an-error-was-detected
Summary information for the result of a definition pre-check is output. This information includes the number of checked units and the number of items for which an error was detected. If no error was detected, 0 is output.
The number of units subject to checking might be different from the number of checked units in the following case:
  • A definition pre-check process error occurred during checking.
If a definition pre-check process error occurred during checking, the error message is output to the integrated trace log.
If an error occurred during the check, the error details are output to the integrated trace log. If different machines are being used for the JP1/AJS3 - Manager and the JP1/AJS3 - Agent, check the integrated trace log in the manager machine first. If no errors are found, check the integrated log in the agent machine.

Items (1) to (5) (information about the definition pre-check) and items (9) and (10) (execution end date and summary information) are output only once each time the command is executed. Item (7) (check results) is output for all error occurrences that were detected.

[Contents][Back][Next]


[Trademarks]

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