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

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

4.11 dcmjbrm.exe (deleting a job)

This section explains the dcmjbrm command, which deletes jobs. You can use this command in the managing server system 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 specifies an executed job in a parameter file and deletes it from the managing server.

(2) Format

dcmjbrm.exe /i parameter-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 dcmjbrm command. The contents of the parameter file used in this command cannot be specified by using a command argument.

Table 4-12 Contents of the parameter file (dcmjbrm 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 dcmjbrm command may return:

Code Meaning Action
0 Either job was deleted or specified job is not found. 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.
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 deleting the invoice-file-0001-collection job that was executed in the dcmjexe command.

(a) Creating a parameter file

In the parameter file, specify the job number that was output to the output file for the dcmjexe command as follows:

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

** dcmjexe output->dcmjbrm input
 
JOB_ATTRIBUTE{
job_generator= invoice-file-0001-collection
jobno= JB03121113315383
job_folder= \batch-definition
}
(b) Command execution

If the output file for the dcmjexe command has been saved in C:\Dmbat\out.txt, code the command as follows:

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