Hitachi

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


8.1.1 Stopping a jobnet that is monitoring start conditions

You can stop a jobnet with start conditions that are in the Now monitoring status by forcibly ending the jobnet.

To forcibly end a jobnet with start conditions:

  1. Forcibly terminate the monitoring generations in Now monitoring status to stop monitoring start conditions.

  2. Forcibly terminate the execution generations in Now running or Wait for start cond. status.

  3. Cancel the execution registration of the jobnet.

You can also use a command or JP1/AJS3 - View to perform this operation.

Organization of this subsection

(1) Stopping by using a command

To use a command to forcibly end a jobnet with start conditions that are in the Now monitoring status, and to cancel the execution registration:

  1. Execute the following command:

    ajskill target-jobnet-name

    The monitoring generations in Now monitoring status are automatically determined and killed, and their status changes from Now monitoring to Monitor terminated.

    At the same time, execution generations in Wait for start cond. status (generations whose start conditions are not satisfied or only partially satisfied) are cleared.

  2. If execution generations in Now running or Wait for start cond. status remain, repeat step 1.

    The execution generations in Now running status are automatically determined and killed, and their status changes from Now running to Killed. At the same time, the status of the next execution generations in Wait for start cond. status changes to Now running.

  3. Repeat step 1 until the status of all execution generations in Now running status is Killed.

  4. Execute the following command:

    ajsleave target-jobnet-name

    The execution registration of the jobnet is canceled.

Supplementary note

The ajsshow command is useful for checking whether any execution generations in Now running or Wait for start cond. status remain. Execute the ajsshow command in the following format:

ajsshow -g a -f "%C %#" target-jobnet-name

In the -g option, specify a as the argument to output the execution results of all generations of the jobnet specified in target-jobnet-name.

In the -f option, specify the format identifier %C to output the status of the jobnet and the format identifier %# to output the execution ID of the jobnet.

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

(2) Stopping by using JP1/AJS3 - View

To use JP1/AJS3 - View to forcibly terminate a jobnet with start conditions in Now monitoring status, and to cancel the execution registration:

  1. Display the Daily Schedule window or the Monthly Schedule window of JP1/AJS3 - View.

  2. In the execution result list, select the monitoring generations in Now monitoring status. Next, choose Operations and then Kill.

    The monitoring generations in Now monitoring status are killed, and their status changes from Now monitoring to Monitor terminated.

    At the same time, execution generations in Wait for start cond. status (generations whose start conditions are not satisfied or only partially satisfied) are cleared.

  3. If execution generations in Now running or Wait for start cond. status remain, in the execution result list, select the execution generations in Now running status. Next, choose Operations and then Kill.

    The execution generations in Now running status are killed, and their status changes from Now running to Killed. At the same time, the status of the next execution generations in Wait for start cond. status changes to Now running.

  4. Repeat step 3 until the status of all execution generations in Now running status is Killed.

  5. In the list area of the JP1/AJS3 - View window, select the jobnets whose execution registration you want to cancel. Next, choose Operations and then Cancel Registration.

    The execution registrations of the selected jobnets are canceled.