Hitachi

uCosminexus Application Server Command Reference Guide


F.4 How to terminate a system

This section explains how to terminate a batch application and a batch server.

Organization of this subsection

(1) Terminating batch applications

The method of terminating a batch application is as follows:

If a batch application is not terminated, use the cjkilljob command to terminate the batch application. Note that you must have the Administrator permission to execute the cjkilljob command. In Windows, execute the command as a user with administrator privileges.

The cjkilljob command terminates batch applications using the cancel method or the CTM. If a failure occurs in terminating the batch application, terminate the batch server forcibly.

To terminate a batch application:

  1. Move the current directory using the cd command.

    cd "Cosminexus-installation-directory\CC\batch\bin"
  2. Terminate the batch server using the cjkilljob command.

    You must have the Administrator permission to execute the command.

    To terminate the batch application, the server name and the job ID might be specified.

    When the server name is specified

    The batch application is terminated using the cancel method.

    cjkilljob server-name
    When the job ID is specified

    The batch application is terminated using the CTM.

    This command can only be used when you use the job scheduling functionality.

    cjkilljob -jobID job-ID

(2) Terminating a batch server

To terminate a batch server:

  1. Move the current directory using the cd command.

    cd "Cosminexus-installation-directory\CC\server\bin"
  2. Terminate the batch server using the cjstopsv command.

    You must have the Administrator permission to execute the command.

    cjstopsv server-name

An example of executing the cjstopsv command is as follows. In this example, the Cosminexus installation directory is C:\Program Files\Hitachi\Cosminexus, and the server name is MyServer.

C:\>cd "C:\Program Files\HITACHI\Cosminexus\CC\server\bin"
C:\Program Files\HITACHI\Cosminexus\CC\server\bin>cjstopsv MyServer
C:\Program Files\HITACHI\Cosminexus\CC\server\bin>

Note that in some cases, the termination processing of the batch server does not finish because of the processing in the batch server is not complete. In such cases, you must terminate the batch server forcibly. For forceful termination of the batch server, specify the -f option or the -fd option in the cjstopsv command, and then execute the command. If you specify the -fd option, the batch server is terminated forcibly after the error information of the batch server is collected.