Job Management Partner 1/Software Distribution Administrator's Guide Volume 2
4.10 dcminst.exe (creating and executing a job)
(1) Function
This command creates and executes the following types of jobs that are related to remote installation:
- Install package
- Transfer package to relay system (JP1/Software Distribution Manager only)
- Batch delete packages on relay system (JP1/Software Distribution Manager only)
- Send package, allow client to choose
JP1/Software Distribution Client (relay system) can create and execute only Install package and Send package, allow client to choose jobs.
JP1/Software Distribution Client (relay system) can only execute jobs that are one level below itself.
(2) Format
dcminst.exe [processing-key] [/f] [/s]
/i parameter-file1 [parameter-file2]
/o result-output-file-name
[/LC {ON|OFF}]
(3) Arguments
- processing-key
This key specifies the type of job to be executed. Specify one of the following four processing keys after the command name; the default is NETM_INSTALL.
- NETM_INSTALL
This processing key executes an Install package job. Specify the package to be installed and the installation destination in a parameter file or with command arguments.
This argument can be specified in both JP1/Software Distribution Manager and JP1/Software Distribution Client (relay system).
- NETM_STORE
This processing key executes a Transfer package to relay system job. Specify the package to be transmitted and its destination (the client facilities for the relay system) in a parameter file or with the command arguments.
This argument can be specified only in JP1/Software Distribution Manager; when specified in JP1/Software Distribution Client (relay system), the argument causes an error.
- NETM_DELETE
This processing key executes a Batch delete packages on relay system job. Specify the destination (the client facilities for the relay system) in a parameter file or with the command argument.
This argument can be specified only in JP1/Software Distribution Manager; when specified in JP1/Software Distribution Client (relay system), the argument causes an error.
- NETM_USERINST
This processing key executes a Send package, allow client to choose job. Specify the package to be installed and the installation destination in a parameter file or with the command arguments.
This argument can be specified in both JP1/Software Distribution Manager and JP1/Software Distribution Client (relay system).
- /f
If the package to be installed is already installed on the destination client, this argument specifies installation by overwriting. If this argument is not specified, the job terminates normally without overwriting the previously installed package.
If the processing key is NETM_DELETE, this argument, if specified, is ignored.
- /s
This argument creates and saves a job without executing it.
When the command is executed, the output file produced by specifying this argument does not contain a job number.
- /i
Specify one or two full paths for the parameter file to be used. The two paths must be separated by a space. Specifying three or more paths causes the command to fail.
If two parameter files are specified, JP1/Software Distribution interprets by concatenating their contents. By specifying destinations and packages in separate parameter files, you can only modify a package and redistribute it to the same client, or distribute the same package to different destinations. In this case, you can use the output file for the dcmpack command as a parameter file specifying the attributes of packages.
- /o
Specify the full path for the output file. The following items are output to the specified output file upon normal completion of the command, overwriting any previously existing output file.
- Job name
- Job number
- Job storage folder path
The job number (value of jobno) identifies the job that has been started. When deleting this job or verifying its execution status, you should code the value of jobno in the parameter file. Note that specifying the value /s in a command argument suppresses the output of job numbers.
An output file for which /s is specified can be used directly as a parameter file for the dcmjexe and dcmrmgen commands. If /s is not specified, the output file can be used as a parameter file for the dcmjbrm, dcmrtry, dcmstat, and dcmstsw commands.
- /LC
Specify ON or OFF to indicate whether the command's processing is to continue after logging off from Windows when Task Scheduler or JP1/AJS is used to execute commands in the background.
- ON
Continues command processing even after logging off from Windows.
- OFF
Forcibly terminates command processing once Windows is logged off.
This argument is effective when the command is executed from a service under any of the following OSs:
- Windows NT 4.0
- Windows 2000
- Windows XP
- Windows Server 2003 (excluding Windows Server 2003 (IPF))
Do not specify /LC ON when you execute the command from the command prompt, because in this case the command is executed as a foreground program.
You can use a registry setting to specify whether command processing is to continue after Windows is logged off. For details about the registry setting, see the following sections:
- Executing the command in JP1/Software Distribution Manager
4.6 Registry settings (JP1/Software Distribution Manager) in the manual Setup Guide
- Executing the command in JP1/Software Distribution Client (relay system)
5.4 Registry settings (JP1/Software Distribution Client (relay system)) in the manual Setup Guide
Note that operation may differ depending on the combination of the /LC specification and the registry setting. For details, see 4.28 Command operation at logoff that depends on a registry setting and logoff option.
(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-11 Correspondence between parameter file contents and arguments (dcminst command)
Parameter file specification contents |
Description |
Specification |
Command argument |
Tag |
Parameter |
JOB_DESTINATION |
group |
Host group name |
R#1 |
/g value |
directory_com |
Directory information (computer hierarchy) |
R#1, #2 |
/dc value |
directory_group |
Directory information (group hierarchy) |
O#1, #2 |
/dg value |
directory_ou |
Directory information (organizational unit (OU) hierarchy) |
O#1, #2 |
/do value |
host_name |
Host name |
R#1 |
/h value |
lower_clients |
Whether to specify all lower clients |
O#1, #3 |
-- |
JOB_DESTINATION_ID |
destination_id |
ID name |
R#1 |
/X value |
PACKAGING_INFORMATION#4 |
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 |
O |
/KW or /KP |
JOB_ATTRIBUTE |
job_generator |
Job name |
O#5 |
/j value |
jobno |
Job number |
X |
-- |
job_folder |
Job folder path |
O |
/l value |
unsuspended |
Distribution during suspension yes/no |
O#6 |
/uns value |
JOB_SCHEDULE |
job_entry_date |
Job registration date and time |
O |
/jst value |
job_execution_date |
Job execution date and time |
O |
/jsx value |
job_expiration_date |
Job execution time limit |
O |
/jsp value |
JOB_SPLIT_DELIVERY#6 |
split_size |
Split size |
O |
/sds value |
wait_time |
Transfer interval |
O |
/sdt value |
JOB_CLIENT_CONTROL |
client_wake_up |
Whether to activate the client |
O |
/WWU |
client_shutdown |
Whether to shut down the client |
O |
/WUS |
- 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. The parameters /g, /h, /dc, /dg, and /do cannot be specified together with /X. Always specify one or the other.
- If the processing key is either NETM_STORE or NETM_DELETE, an ID cannot be specified.
- #2
- You cannot specify group or host_name (/g or /h) together with directory_com or directory_ou (/dc 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).
- Even if you specify lower_clients together with directory_com, directory_group, or directory_ou (/dc, /dg, or /do), all destination specifications are ignored.
- #3
- Cannot be specified in JP1/Software Distribution Client (relay system).
- #4
- In this command, a reserved word cannot be specified as a parameter for the tag PACKAGING_INFORMATION.
- #5
- 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.
- #6
- unsuspended of JOB_ATTRIBUTE and JOB_SPLIT_DELIVERY are mutually exclusive.
(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:
dcminst.exe [processing-key] [/f] [/s]
{[/g host-group] [/h host-name] |
[/dc computer-hierarchy] [/dg group-hierarchy]
[/do OU-hierarchy] | /X ID}
/p package-name /I package-ID
/v version/revision /G generation
/c cabinet-name /C cabinet-ID
[{/KW| /KP}]
[/j job-name] [ /l job-folder-path]
[/uns unsuspended]
[/jst job-registration-date-and-time]
[/jsx job-execution-date-and-time]
[/jsp job-execution-time-limit]
[/sds split-size] [/sdt transfer-interval]
[/WWU client-wakeup]
[/WUS client-shutdown]
/o result-output-file-name
[/LC {ON|OFF}]
(6) Return codes
The following explains the return codes that the dcminst command may return:
Code |
Meaning |
Action |
0 |
Managing server has started job. |
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. |
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.
- Number of destinations and packages specified
- In a parameter file, a maximum of 200 destinations can be specified per execution of a dcminst command, and a maximum of 100 packages can be specified.
- The command can include only one argument for specifying the destination and only one argument for specifying the package. However, in the /h or /g argument, you can specify up to 200 values by separating them with a semicolon (;).
- Multiple packages specified in a parameter file are all ignored if the same items are specified in terms of a command argument.
- /f option specification
- Specifying the /f option causes the package to be transmitted regardless of whether the same package has previously been distributed. To avoid an unnecessary increase in network traffic, you should use the /f option only when overwriting a previously distributed package.
- Specifying the /f option allows you to install software of the same version but different contents on an overwrite basis. However, you should use this option advisedly because it negates the ability of JP1/Software Distribution to keep track of the versions of installed packages.
- The job name specified in the job_generator parameter of the JOB_ATTRIBUTE tag already exists as an existing job name:
- A job is created based on an existing job definition.
- Specifying the startup of a client
When specifying whether a client is to be started in an environment in which host IDs are used, specify either a host group name or the ID group as the destination for a job. If you specify a host name, the client startup specification is ignored. In the case of a relay system, the client startup specification is always ignored.
- Specifying the job storage folder path
If you execute the command with specification of a job storage folder path for a folder that has not been defined in the Job Definition window, the specified folder is created. The job storage folder that is created is not deleted and remains after the command has executed. If you do not plan to use this folder, you should delete it after the job is completed.
(8) Example
The following is an example of distributing software packaged under the name Finance Data 2003 5 to hosts dmp491 and dmp492, on which JP1/Software Distribution Client (client) is running.
(a) Creating a parameter file
Code the attributes of the host and the package in a parameter file as follows, and save the parameter file under any name:
** dcminst Parameter File Sample
JOB_DESTINATION{
host_name=dmp491;dmp492
}
PACKAGING_INFORMATION
{
package_name=Finance Data 2003 5
package_id=FD200305
version_revision=000001
generation=0000
cabinet_name=FCAB01
cabinet_id=F1
package_code=P
}
(b) Command execution
When saving the parameter file that has been created in a file named C:\Dmbat\dcminst.txt and acquiring an output file in C:\Dmbat\out.txt, code the following specification:
dcminst.exe /i C:\Dmbat\dcminst.txt /o C:\Dmbat\out.txt /j overwrite-installation /f
(c) Checking the output file
Upon normal completion of the command, the job name, job number, and job storage folder path are output to the C:\Dmbat\out.txt file as follows:
JOB_ATTRIBUTE{
job_generator= NETM_INSTALL_2003_12_11_13_34_36
jobno= JB03121113315383
job_folder= \
}
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.