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

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

4.4 dcmcoll.exe (collecting files)

This section explains the dcmcoll command, which collects files. You can execute this command on the managing server for JP1/Software Distribution Manager and JP1/Software Distribution Client (relay system).

Jobs executed using this command can be verified in the Job Status window of the managing server 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) Examples

(1) Function

This command creates and executes the following types of jobs that are related to remote collection:

It also restores collected archive files.

JP1/Software Distribution Client (relay system) can only create and execute remote collection jobs, and restore archived files.

JP1/Software Distribution Client (relay system) can execute jobs only up to one level below it.

(2) Format

dcmcoll.exe [processing-key] [/G] [/Z] [/s]
             /i parameter-file1 [parameter-file2]
             /o 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.

Table 4-7 Correspondence between parameter file contents and arguments (dcmcoll command)

Parameter file specification contents Description Specification Command argument
Tag Parameter
JOB_DESTINATION directory_com Directory information (computer hierarchy) R#1, #2 /dc value
directory_group Directory information (group hierarchy) R#1, #2 /dg value
directory_ou Directory information (organizational unit (OU) hierarchy) R#1, #2 /do value
group Host group name R#1, #2 /g value
host_name Host name R#1, #2 /h value
lower_clients Whether any destination is specified X --
JOB_DESTINATION_ID destination_id ID name R#1 /X value
FILE_COLLECTION source_path Collection-file name R#3 /y value
dmz_path Storage folder for collected files (for collection) or source file/folder (for restoration) R#4 /z value
unarc_path Destination folder for restored files R#5 /r value
JOB_ATTRIBUTE job_generator Job name O#6 /j value
jobno Job number X --
job_folder Job folder path O /l value
unsuspended Whether there is a suspended distribution X --
JOB_SCHEDULE job_entry_date Job entry date O#7 /jst value
job_execution_date Job execution date O#7 /jsx value
job_expiration_date Job expiration date O#7 /jsp value
SCHEDULE expiration_date Package expiration date in the relay system X --
expiration_days Package retention days in the relay system X --
installation_date_and_time Installation date and time X --
installation_timing Installation (collection) timing O /tS or /tN
OPTION compress Compression, yes/no O /uY or /uN
compress_type Compression method X --
restore Restore operations during version upgrades X --
encipher Encryption yes/no X --
reboot Reboot after installation X --
processing_dialog Display the processing dialog during installation X --
USER_PROGRAM_INSTALLATION_CONDITIONS external_program_executed_before_installation External program that is started before installation (collection) O /b value
external_program_executed_after_installation External program that is started after installation (collection) O /a value
external_program_error_handler External program that is started upon error during installation (collection) O#8 /e value
external_program_handler External program handler X --
exit Results-notification method for external program processing X --
action Disposition of processing error X --
wait Monitoring method X --
timeout Monitoring time X --
wait_code Wait code X --

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

#1
JOB_DESTINATION and JOB_DESTINATION_ID are mutually exclusive. One of the parameters /g, /h, /dc, /dg, and /do which cannot be specified together with /X, must be specified.
If the processing key is either NETM_COLTOM or NETM_COLRESET, the only ID that can be specified as a destination is an ID registered as an ID management. The processing key NETM_UNARC, if specified, is ignored.

#2
You cannot specify group or host_name (/g or /h) together with directory_com, directory_group, or directory_ou (/dc, /dg, or /do). However, you can specify group and host_name (/g and /h) together. You can also specify any combination of directory_com, directory_group, and directory_ou (/dc, /dg, and /do).

#3
Required if the processing key is NETM_COLLECT or NETM_COLTOS.

#4
Required if the processing key is NETM_COLLECT, NETM_COLTOS, or NETM_UNARC.

#5
Required if the processing key is NETM_UNARC.

#6
If you omit job_generator or /j, processing-key+job-execution-date-and-time is automatically set as the job name. If you execute multiple commands with the same processing key, job names may be duplicated and jobs may not be executed correctly. If you execute multiple commands with the same processing key, Hitachi recommends that you specify different job names using job_generator or /j.

#7
Ignored if the processing key is NETM_UNARC.

#8
Not specifiable for collecting files from a UNIX client.

(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:

Collecting files from a client
dcmcoll.exe {[NETM_COLLECT] | NETM_COLTOS} [/s]
{[/g host-group] [/h host-name] | [/dc computer-hierarchy][/dg group-hierarchy]
[/do OU-hierarchy] | /X ID-name}
/y collection-file-name /z storage-folder-for-collected-files
[/j job-name] [/l job-folder-path]
[/jst job-registration-date] [/jsx job-execution-date]
[/jsp job-execution-limit]
[{/tS|/tN}] [ {/uY|/uN}]
[/b external-program-that-is-started-before-collection]
[/a external-program-that-is-started-after-collection]
[/e external-program-that-is-started-upon-error-during-collection]
[/o result-output-file-name]
[/LC {ON|OFF}]

Collecting files from a relay server or deleting collected files from a relay system
dcmcoll.exe {NETM_COLTOM | NETM_COLRESET} [/s]
{[/g host-group] | [/h host-name} | /X ID-name}
[/j job-name] [/l job-folder-path]
[/jst job-registration-date] [/jsx job-execution-date]
[/jsp job-execution-limit]
[/o result-output-file-name]
[/LC {ON|OFF}]

Restoring files
dcmcoll.exe NETM_UNARC [/G] [/Z]
             /z source-file-or-folder-for-restoration
             /r destination-folder-for-restored-files
             [/LC {ON|OFF}]

(6) Return codes

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

Code Meaning Action
0 Managing server started job, or the archive files were successfully restored. 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 version of the managing server.
4 Unable to open output file. Check the specification for the output file.
5 Communication failure between client and managing server. Check the communications settings in the setup for the managing server.
7 Restoration of one or more archive files failed. Check the archive file path.
Full path of the restored file (storage directory for restored file + created directory (archive file storage directory) + file name or directory name for the restored file) might exceed 259 single-byte characters.
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.

(7) Notes

(8) Examples

The following is an example of collecting files from the directories SDerror.dir, SDerror2.dir, and SDerror3.dir under C:\temp from hosts dmp491 and dmp492, on which JP1/Software Distribution Client (client) is running. The command is specified so that it starts the collection process when the client is started, and starts external programs before collection, after collection, and in the event of an error.

(a) Creating a parameter file

Code the attributes of the host and the collection file as follows, and save the parameter file under any name.

** dcmcoll Parameter File Sample
 
JOB_DESTINATION{
host_name=dmp492
host_name=dmp491
group = \grp\gname1
group = \grp\gname2;\grp\gname3
}
SCHEDULE{
installation_timing = S
}
OPTION{
compress=Y
}
USER_PROGRAM_INSTALLATION_CONDITIONS{
external_program_executed_before_installation = "C:\test B.exe"
external_program_executed_after_installation = C:\testA.exe -x "a aa"
external_program_error_handler = "C:\test E.exe"
}
FILE_COLLECTION{
source_path= C:\tmp\SDerror.dir
source_path= C:\tmp\SDerror2.dir;C:\tmp\SDerror3.dir
dmz_path= C:\temp\collect
}
(b) Command execution

When saving the parameter file in a file named C:\Dmbat\dcmcoll.txt and creating an output file in C:\Dmbat\out.txt, specify the command as follows:

dcmcoll /i C:\Dmbat\dcmcoll.txt /o C:\Dmbat\out.txt /j temp collection
(c) Checking the output file

Upon normal completion of the command, the job name, job number, and the path for the job storage folder are output to the C:\Dmbat\out.txt file as follows:

JOB_ATTRIBUTE{
job_generator= NETM_COLLECT_03_12_11_13_34_36
jobno= JB03121113315383
job_folder= \
}