Job Management Partner 1/Software Distribution Administrator's Guide Volume 2
This section explains how to use the dcmrmgen command, which deletes job definitions. You can execute this command on the managing server for JP1/Software Distribution Manager and JP1/Software Distribution Client (relay system).
This command deletes job definitions that are specified in a parameter file.
dcmrmgen.exe /i parameter-file-name [/LC {ON|OFF}]
You can also use command arguments to specify the contents of the parameter file used in this command. The table below shows the correspondence between the contents of a parameter file and the command arguments.
Table 4-17 Correspondence between parameter file contents and arguments (dcmrmgen command)
Parameter file specification contents | Description | Specification | Command argument | |
---|---|---|---|---|
Tag | Parameter | |||
JOB_ATTRIBUTE | job_generator#1 | Job name | R#2 | /j |
jobno | Job number | X | -- | |
job_folder | Job folder path | R#2 | /f | |
unsuspended | Whether a distribution being suspended exists | X | -- |
The following shows the format of the command when you specify the command by using arguments only instead of using a parameter file.
dcmrmgen.exe /j job-name /f job-storage-folder-path [/LC {ON|OFF}]
When you specify two or more job definition names in /j job-name, separate them with semicolons (;).
Both /j job-name and /f job-storage-folder-path must be specified; if they are not both specified, an error may occur.
The following explains the return codes that the dcmrmgen 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 parameter file. | Check the values in the parameter file. |
3 | Error during connection to managing server. | Check the version of 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.
Job storage folders and job definitions cannot be deleted collectively just by specifying the root folder.
The following is an example of deleting an invoice-file-0001-collection job definition saved in the batch-definition of the managing server system folder.
Define the folder in which the job definition to be deleted is saved, and a job name in the parameter file as follows, and save the parameter file under any name:
** dcmjexe Parameter File Sample JOB_ATTRIBUTE{ job_generator= invoice-file-0001-collection job_folder= \batch-definition }
When saving the parameter file that has been created in a file named C:\Dmbat\dcmjexe.txt, code the command as follows:
dcmrmgen.exe /i C:\Dmbat\dcmjexe.txt
All Rights Reserved. Copyright (C) 2009, 2013, Hitachi, Ltd.
Copyright, patent, trademark, and other intellectual property rights related to the "TMEng.dll" file are owned exclusively by Trend Micro Incorporated.