Job Management Partner 1/Software Distribution Administrator's Guide Volume 2
This section explains the dcmpack command, which executes the packaging of user data or user programs. You can use this command in JP1/Software Distribution Manager (relay system manager), JP1/Software Distribution Client (relay system), and JP1/Software Distribution Client (client) in an environment in which Packager is installed.
This command packages user data or user programs for the managing server (JP1/Software Distribution Manager or JP1/Software Distribution Client (relay system)).
Program products cannot be packaged.
dcmpack.exe [/k password]
/i parameter-file-name [/o result-output-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-14 Correspondence between parameter file contents and arguments (dcmpack command)
| Parameter file specification contents | Description | Specification | Command argument | |
|---|---|---|---|---|
| Tag | Parameter | |||
| PACKAGING_SOURCE | file_path | File to be packaged | O | /P value |
| base_fullpath | Package base directory | R | /B value | |
| PACKAGING_INFORMATION | package_name | Package name | R | /p value |
| package_id | Package ID | R | /I value | |
| version_revision | Version/revision | R | /v value | |
| generation | Generation | R | /G value | |
| cabinet_name | Cabinet name | R | /c value | |
| cabinet_id | Cabinet ID | R | /C value | |
| package_code | Code type | X | -- | |
| SYSTEM_CONDITIONS | directory | Installation directory | O | /D value |
| condition | System condition | O#1, #2 | /O value | |
| SOFTWARE_CONDITIONS | condition | Software condition | O#1, #2 | /l value |
| FILE_PROPERTIES | permission | Restoration of file-access permission | O | /qY or /qN#3 |
| SCHEDULE | expiration_date | Package expiration date in the relay system | O | /x value |
| expiration_days | Package expiration days in the relay system | O | /ed value | |
| installation_date_and_time | Installation date and time | O | /d value | |
| installation_timing | Installation timing | O | /tS or /tN | |
| INSTALLATION_METHOD | installation_mode | Installation mode | O | /mB or /mG |
| OPTION | compress | Compression, yes/no | O | /uY or /uN |
| compress_type | Compression method | O | /ctN or /ctH#4 | |
| restore | Restore operations during version upgrades | O | /RY or /RN | |
| encipher | Encryption yes/no | O#5 | /encY or /encN | |
| reboot | Post-installation reboot | O | /reboot | |
| processing_dialog | Dialog display during installation | O#1 | /procS, /procY, or /procN | |
| USER_PROGRAM_INSTALLATION_CONDITIONS | external_program_executed_before_installation#6 | External program that is started before installation | O | /b value |
| external_program_executed_after_installation | External program that is started after installation | O | /a value | |
| external_program_error_handler#7 | External program that is started upon an installation error | O | /e value | |
| external_program_handler | External program handler | X | -- | |
| exit#7 | Results-notification method | O | /rbR, /rbM, /raR, /raM, /reR, or /reM | |
| action#7 | Disposition of processing error | O | /yaC, /yaS, /ybC, or /ybS | |
| wait#7 | Notification method for external program processing results | O | /wbU, /wbT, /wbG, /waU, /waT, /waG, /weU, or /weY | |
| timeout | Monitoring time | O#8 | /n value | |
| wait_code | Wait code | X | -- | |
| SCRIPTS | installation_script | Installation script path | O#1, #9 | /Z value |
The following shows the format of the command when you specify the command by using arguments only instead of using a parameter file.
dcmpack.exe [/k password]
[/P file-to-be-packaged]
/B package-base-directory
/p package-name /I package-ID
/v version/revision /G generation
/c cabinet-name /C cabinet-ID
[/D installation-directory]
[/0 system-condition] [/l software-condition]
[{/qY|/qN}]
[/x package-expiration-date-in-the-relay-system]
[/ed package-expiration-days-in-the-relay-system]
[/d installation-date-and-time] [ {/tS|/tN}]
[{/uY | /uN}] [ {/RY | /RN}] [ {/encY | /encN}]
[/reboot] [ {/procS | /procY | /procN}]
[/b external-program-that-is-started-before-installation
[{/rbR | /rbM}] [ {/ybC | /ybS}]
[{/wbU | /wbT | /wbG}] [ /n monitoring-time] ]
[/a external-program-that-is-started-after-installation
[{/raR | /raM}]
[{/yaC | /yaS}] [ {/waU | /waT | /waG}]
[/n monitoring-time] ]
[/e external-program-that-is-started-on-an-installation-error
[{/reR | /reM}] [ {/weU | /weY}]
[/n monitoring-time] ]
[/Z installation-script-path]
[/o result-output-file-name]
[/LC {ON|OFF}]
The following explains the return codes that the dcmpack command may return:
| Code | Meaning | Action |
|---|---|---|
| 0 | Normal termination. | 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 settings for the command argument or parameter file. |
| 3 | Error during connection to managing server. | Check the settings or communications environment for the PC on which the packaging is to be executed. |
| 4 | Unable to create output file, or automatic counting of versions/revisions and generations using a reserved word failed; however, registration of package is successful. | Check the path specifying the file to be packaged. |
| 5 | Connection to managing server failed. | Check to see if the managing server or the relational database has stopped. |
| 6 | Data send/receive to and from managing server failed. | Check the communications environment. |
| 7 | One of the following:
|
|
| 9 | The package to be packaged is already packaged. | Change one of the following items and then retry the packaging process:
|
| 12 | Other errors occurred. | Check the event log. |
| 13 | Invalid password. | Check the password. |
| 14 | Automatic counting of versions/revisions or generations produced a result that exceeds the maximum number of digits that can be specified; registration of package failed. | Check the settings for the reserved words for versions/revisions, and generation. |
If JP1/Base is linked to manage JP1/Software Distribution users, see 1.3.3 Setting for executing commands.
The following is an example of packaging a file under the C:\Finance\data0401 directory as follows:
You can create a parameter file as follows:
** dcmpack Parameter File Sample
PACKAGING_SOURCE{
file_path=FD200304.dat
base_fullpath= C:\Finance\data0401
}
PACKAGING_INFORMATION
{
package_name=Finance Data 2003 4
package_id=FD200304
version_revision=000001
generation=0000
cabinet_name=FCAB01
cabinet_id=F1
package_code=P
}
SYSTEM_CONDITIONS{
condition=H:c>300
condition=C = PowerPC
directory=C:\Finance
}
USER_PROGRAM_INSTALLATION_CONDITIONS
{
external_program_executed_after_installation = C:\Dmbat\app\normal_exit.exe
}
When saving the parameter file in a file named C:\Dmbat\para.txt, code the command as follows:
Dcmpack.exe /i C:\Dmbat\para.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.