Job Management Partner 1/Software Distribution Administrator's Guide Volume 2

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

4.19 dcmrtry.exe (retrying a job)

This section explains the dcmrtry command, which retries a job. You can execute this command on the managing server for JP1/Software Distribution Manager and JP1/Software Distribution Client (relay system).

Organization of this section
(1) Function
(2) Format
(3) Arguments
(4) Parameters in a parameter file
(5) Return codes
(6) Notes
(7) Example

(1) Function

This command re-executes the job startup program in a parameter file under the managing server.

(2) Format

dcmrtry.exe [retry-key]
             /i parameter-file-name /o result-output-file-name
            [/LC {ON|OFF}]

(3) Arguments

(4) Parameters in a parameter file

The table below shows the contents of the parameter file for the dcmrtry command. The contents of the parameter file used in this command cannot be specified by using command arguments.

Table 4-18 Contents of the parameter file (dcmrtry command)

Parameter file specification contents Description Specification Command argument
Tag Parameter
JOB_ATTRIBUTE job_generator Job name X --
jobno Job number R --
job_folder Job folder path X --
unsuspended Whether a distribution being suspended exists X --

Legend:
R: required.
X: not required (ignored if specified).
--: Cannot be specified in a command argument.

(5) Return codes

The following explains the return codes that the dcmrtry command may return:

Code Meaning Action
0 Re-execution of job started. None.
1 Unable to open parameter file. Invalid file format. Check the parameter file specification or coding format.
2 Invalid value in command argument or parameter file. Check the values in the parameter file.
3 Error during connection to managing server. Check the version of the managing server.
4 Unable to open output file. Check the specification for the output file.
5 Communication failure between client and managing server system. Check the communications settings in the setup for the managing server.
12 Other errors occurred. Check the event log.

If JP1/Base is linked to manage JP1/Software Distribution users, see 1.3.3 Setting for executing commands.

(6) Notes

(7) Example

The following is an example of re-executing jobs executed using the dcminst command that are waiting for execution or that have ended in error.

(a) Creating a parameter file

In the parameter file, code the job number of the job that was output to the output file from the dcminst command as follows:

If the output file from the dcminst command has been saved, you can specify that file as a parameter file.

JOB_ATTRIBUTE{
job_generator= NETM_INSTALL_2003_12_11_13_34_36
jobno= JB03121113315383
job_folder= \
}
(b) Command execution

If the output file from the dcminst command is saved in C:\Dmbat\out.txt, you can specify the command as follows:

dcmrtry.exe WAIT ERROR /i C:\Dmbat\out.txt /o C:\temp\retryout.txt