Hitachi

JP1 Version 12 JP1/IT Desktop Management 2 Distribution Function Administration Guide


14.15 dcmstat.exe (acquiring job execution status)

This section describes the dcmstat command, which acquires the execution results of jobs.

Function

This command acquires (on the managing server) the status of the jobs specified in a parameter file. Job status is indicated by the return code output by this command.

Job execution status

Return code

All jobs have ended normally.

0

Some jobs have resulted in an error.

30

Jobs are being executed.

31

Jobs are being executed, and some jobs have resulted in an error.

32

Jobs are being deleted, and some jobs are waiting for the completion of deletion.

33

On the managing server of JP1/IT Desktop Management 2 - Manager, specify job execution status in this command to check the number of hosts that are in the specified job execution status. The number of hosts in the specified execution status is obtained by subtracting 10,000 from the value of the return code.

Format

dcmstat.exe [job-execution-status] /i parameter-file-name

Arguments

Specification contents of parameter file

The table below shows the specification contents of the parameter file for the dcmstat command. The contents of the parameter file for this command cannot be specified by using command arguments.

Table 14‒13: Specification contents of parameter file (dcmstat command)

Specification content of parameter file

Content

Whether to specify

Command argument

Tag

Parameter

JOB_ATTRIBUTE

job_generator

Job name

N

--

jobno

Job number

Y

--

job_folder

Path name of job storage folder

Y/N#

--

unsuspended

Whether to distribute during suspension

N

--

Legend:

Y: The parameter must be specified.

Y/N: The parameter can be omitted.

N: The parameter is not necessary (is ignored even when specified).

--: The content cannot be specified by using a command argument.

#

If this parameter is omitted, this command searches all the folders or files under the root folder to find the specified job, and then displays its execution status.

Return codes

The following table lists the return codes that are output when the dcmstat command is executed:

Code

Meaning

Action to be taken

0

All jobs have ended normally.

None

1

The parameter file cannot be opened, or the file format is incorrect.

Check the specification of the parameter file or its description format.

2

An invalid value was specified in the parameter file.

Check the values specified in the parameter file.

3

Connection to the database failed.

Check database settings in the setup of the managing server.

5

Connection to the JP1/IT Desktop Management 2 service failed.

Check whether the service of JP1/IT Desktop Management 2 - Manager has started.

12

Restoration of one or more archive files failed.

Reference the event log.

30

At least some jobs have resulted in an error.

None

31

Jobs are being executed, and no job error has been detected.

None

32

Jobs are being executed, and some jobs have resulted in an error.

None

33

Jobs are being deleted, and some jobs are waiting for the completion of deletion.

None

When you specify job execution status, this command returns a return code of which the value is the sum of 10,000 and the total number of hosts in the specified job execution status.

Notes

Example

The following example shows use of this command to acquire the status of the Collect-slip-file-0001 job executed by the dcmjexe command.

Creating the parameter file

Specify the job number output to the output file by the dcmjexe command in the parameter file as shown below.

If the output file output by the dcmjexe command has been stored, you can specify the stored file as the parameter file.

** dcmjexe output -> dcmstat input
 
JOB_ATTRIBUTE{
job_generator= Collect-slip-file-0001
jobno= JB03121113315383
job_folder= \batch-definition
}
Executing the command

When the output file output by the dcmjexe command is stored as the file C:\Dmbat\out.txt, specify the command as follows:

dcmstat.exe /i C:\Dmbat\out.txt

You can use the dcmstat command to check the number of hosts that are in a specific status. For example, when you want to check the number of hosts that failed to start a job, or received a job suspension instruction, specify the command as follows:

dcmstat.exe CLT_NOTREADY SUSPENDED /i C:\Dmbat\out.txt