Hitachi

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


ajsstart

Organization of this page

Format

ajsstart
     [-c|-o|-t]
     [-F service-name]
     [-s {none|EXEC}]
     [-w]
     [-R]
     [-D]

Description

Starts the scheduler service for JP1/AJS3 and executes any jobnet registered for execution.

Execution privileges

In Windows: Administrators privilege

In UNIX: Superuser privilege

Arguments

-c

Forcibly cancels the execution registration of all jobnets and starts ("cold-starts") the scheduler service.

The following situations require a cold start:

  • When the database table structure in the JP1/AJS3 scheduler has been modified

  • When you cannot start a scheduler service

When you cold-start a scheduler service, you must re-register the jobnet for execution after the scheduler service is started.

Cold-starting a scheduler service deletes all execution results for all the previous generations for all jobnets. We recommend that you store any necessary log information before attempting to perform cold start.

You cannot specify this option together with the -R or -D option.

If none of the -c, -R, and -D options are specified, the scheduler service is started in warm-start mode.

-o

Does not execute a jobnet which is scheduled to execute on the day when you start the scheduler service, if its scheduled time for starting execution is prior to the time when you start the scheduler service.

If you omit this option, the system automatically executes a jobnet when you start the scheduler service, even if its scheduled time for starting execution is prior to the time when you start the scheduler service.

If you specify this option together with the -R option, this option is disabled.

-t

Does not execute a jobnet scheduled for planned execution or fixed execution for the day.

If you specify this option together with the -R option, this option is disabled.

-F service-name

Specify the name of the target scheduler service.

You can specify a character string of 1 to 30 bytes.

If you omit this option, the system assumes the default scheduler service name.

-s{none|EXEC}

Specify whether you want to suppress the execution of a jobnet or job, or cancel suppression.

  • none

    Cancels the suppression of execution for a jobnet or job.

  • EXEC

    Suppresses the execution of a jobnet or job. Once the system has completed the execution of the jobnet or job currently being executed, it will not start any subsequent jobnet or job.

-w

Terminates the command once the scheduler service is started.

-R

Continues the execution of any jobnet or job which was running when the scheduler service was previously stopped. (A hot start is performed.)

Jobnet

Continues execution with the status when the scheduler service was stopped.

This option also executes any jobnet that has passed the scheduled start time after the scheduler service is started.

Job

Obtains the job status when the scheduler service was stopped, and continues execution with that status.

You cannot specify this option together with the -c or -D option.

If none of the -c, -R, and -D options are specified, the scheduler service is started in warm-start mode.

-D

Starts the scheduler service in disaster recovery mode. For details on disaster recovery mode, see 6.2.1 Temporarily changing the start mode of JP1/AJS3 in the JP1/Automatic Job Management System 3 Administration Guide.

You cannot specify this option with the -c, -R, or -s option.

If none of the -c, -R, and -D options are specified, the scheduler service is started in warm-start mode.

Notes

Return values

0

Normal end

Multiple of 4 within the range from 4 to 124

Abnormal end

Example 1

The following command cold-starts a scheduler service AJSROOT1:

ajsstart -F AJSROOT1 -c

Example 2

The following command warm-starts a scheduler service AJSROOT1:

ajsstart -F AJSROOT1

Example 3

The following command hot-starts a scheduler service AJSROOT1:

ajsstart -F AJSROOT1 -R

Example 4

The following command disaster-recovery-starts a scheduler service AJSROOT1:

ajsstart -F AJSROOT1 -D