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

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

4.15 dcmpkget.exe (acquiring a backup of a package)

This section explains the dcmpkget command, which acquires a backup of a package. 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 and corresponding command arguments
(5) Format of the command without using a parameter file
(6) Return codes
(7) Notes
(8) Example

(1) Function

This command creates a backup of the specified package.

(2) Format

dcmpkget.exe /i parameter-file /o output-directory
             [/of result-output-file-name]
             [/LC {ON|OFF}]

(3) Arguments

(4) Parameters in a parameter file and corresponding command arguments

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.

If you use both a parameter file and a command argument to specify an item, the value of the command argument prevails over the value specified in the parameter file. However, if you use command arguments to specify only some of the package attributes, the first package information set of the PACKAGING_INFORMATION tag in the parameter file is used.

Table 4-15 Correspondence between parameter file contents and arguments (dcmpkget command)

Parameter file specification contents Description Specification Command argument
Tag Parameter
PACKAGING_INFORMATION#1 package_name Package name X --
package_id Package ID R#2 /I value
version_revision Version/revision R#2 /v value
generation Generation R#2 /G value
cabinet_name Cabinet name X --
cabinet_id Cabinet ID R /C value
package_code Package code O /KW or /KP

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

#1
This command does not accept the reserved words used in the parameters of the PACKAGING_INFORMATION tag.

#2
You can omit these parameters if you specify the cabinet ID only. If you specify the cabinet ID only, the command creates backups of all the packages in the cabinet.

(5) Format of the command without using a parameter file

The following shows the format of the command when you specify the command by using arguments only instead of using a parameter file:

dcmpkget.exe /I package-ID /v version/revision-number /G generation-number
             /C cabinet-ID [/KW|/KP] /o output-directory
            [/of result-output-file-name] [/LC {ON|OFF}]

(6) Return codes

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

Code Meaning Action
0 The file output was successfully completed. None.
1 The command cannot open the specified parameter file or the format of the specified parameter file is incorrect. Check the pathname or format of the parameter file.
2 An invalid value is specified in a command argument or in the parameter file. Check the values of command arguments or the values of the parameters in the parameter file.
3 Error during connection to managing server.
  • Check the version of the managing server.
  • Check the job execution status.
4 The specified package does not exist.
  • Ensure that the specified package exists in the managing server.
  • Check the job execution status.
12 Other errors occurred. Check the event log.
14 The command could not create the output directory or output file. Check the paths of the output directory and the output file.

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

(7) Notes

(8) Example

The following is an example of making a backup of a package whose package ID is 0100, version/revision number is 0100, and generation number is 0000 in the cabinet whose cabinet ID is 01.

(a) Creating a parameter file

Specify in a parameter file the package and cabinet to be backed up as described below, and save the parameter file with any name:

** dcmpkget Parameter File Sample
 
PACKAGING_INFORMATION{
package_id=0100
version_revision=0100
generation=0000
cabinet_id=01
package_code=P
}
(b) Command execution

To save the parameter file as C:\Dmbat\dcmpkget.txt and the backup file as C:\Dmbat\backup, specify the following command:

dcmpkget.exe /i C:\Dmbat\dcmpkget.txt /o C:\Dmbat\backup /of BackupFile