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

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

4.16 dcmpkput.exe (restoring a package from its backup)

This section explains the dcmpkput command, which restores a package from its backup. You can execute this command on the managing server for JP1/Software Distribution Manager and JP1/Software Distribution Client (relay system). This command does not use a parameter file.

Organization of this section
(1) Function
(2) Format
(3) Arguments
(4) Return codes
(5) Notes
(6) Example

(1) Function

This command restores a package from its backup file and stores the restored package in the specified cabinet.

(2) Format

dcmpkput.exe [/C cabinet-ID] /i input-directory
              [/of input-file-name] [/f] [/LC {ON|OFF}]

(3) Arguments

(4) Return codes

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

Code Meaning Action
0 The package(s) were successfully restored. None.
1 The command cannot open the output file generated by the dcmpkget command. Alternatively, the format of the output file is incorrect. Check the pathname or format of the output file.
2 An invalid value is specified in a command argument. Check the values of command arguments.
3 Error during connection to managing server. Check the version of the managing server.
4 The specified backup file does not exist. Check the pathname of the backup file.
5 A package with the same name as the package you attempted to restore exists. Alternatively, the cabinet cannot contain more packages. Check the names of the packages or the number of packages in the cabinet.
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.

(5) Notes

(6) Example

The following is an example of restoring the package from the backup file made with the dcmpkget command.

To restore all the backup files saved to C:\Dmbat\backup to the cabinet whose cabinet ID is 01, specify the following command:

dcmpkput.exe /C 01 /i C:\Dmbat\backup /of *