14.20.3 Examples of using reserved words
This subsection shows examples of parameter files using reserved words.
- Organization of this subsection
(1) Example of parameter file for the dcminst command
JOB_ATTRIBUTE{ job_generator=\PKGID and others are distributed to departments *If the job name exceeds 32 bytes after the reserved word is replaced, "and" and subsequent part are cut off. *If the job name has already been defined in the job storage folder, the job will fail. job_folder=\distribution\CMmonth\CDday\CHhour *In this example, the job folder is created (in one hierarchical layer) under the root folder. *When storage (/s) is not specified, the folder is deleted from the newly created hierarchical layer after the job is executed. } JOB_DESTINATION{ * Specify destinations in the JOB_DESTINATION or JOB_DESTINATION_ID tag. host_name=host1;host2;host3 host_name=host4;host5;host6 group=\whole company\sales division;\whole company\material department;\whole company\engineering division group=\whole company\personnel division } PACKAGING_INFORMATION{ *3 Example of distributing three packages { *You can write the PACKAGING_INFORMATION tag to a different file separately from other tags. * *Or, execute the dcmpack command in advance, you can specify its output file as a parameter file. package_name=1 package_id=1 version_revision=1 generation=1 cabinet_name=CAB01 cabinet_id=01 package_code=P } { package_name=2 package_id=2 version_revision=2 generation=2 cabinet_name=CAB01 cabinet_id=02 package_code=P } { package_name=3 package_id=3 version_revision=3 generation=3 cabinet_name=CAB01 cabinet_id=03 package_code=P } }
(2) Example of parameter file for the dcmpack command
PACKAGING_SOURCE{ file_path= pack1.txt;pack2.txt;pack 3.txt;pack4.txt base_fullpath=C:\dir1 } PACKAGING_INFORMATION { package_name=\FILE\SIZEbytes\CMmonth\CDday\CHhour\CNminute package_id=\BASE-\BM\BD\BH\BM version_revision=V0\10:0 generation=G\1 cabinet_name=\PKGID cabinet_id=\CD } INSTALLATION_METHOD{ installation_mode=G } USER_PROGRAM_INSTALLATION_CONDITIONS{ { external_program_executed_before_installation="C:\test B.exe" "-B" bbb exit=R action=C wait=T } { external_program_executed_after_installation=C:\testA.exe -c "a aa" exit=R action=C wait=T } { external_program_error_handler="C:\test E.txt" -c "e e" exit=R wait=Y } timeout=404 } SYSTEM_CONDITIONS{ directory=C:\DestDir condition=H:c>=1000 } OPTION{ compress=Y restore=Y } FILE_PROPERTIES{ permission=N } SCHEDULE{ expiration_date=001231 installation_date_and_time=04020100:50 installation_timing=S }
(3) Example of parameter file for the dcmcoll command
JOB_ATTRIBUTE{ job_generator=Collect \FILE from \HOST and store it in \ZDIR. *If the job name has already been defined in the job storage folder on the server, the job will fail. job_folder=\\GROUP\\CM\\CD\\CH *In this example, folders are created (in four hierarchical layers) under the root folder. *When storage (/s) is not specified, the folder is deleted from the newly created hierarchical layers after the job is executed. } JOB_DESTINATION{ host_name=dmp492.soft.hitachi.co.jp *\HOST in the JOB_ATTRIBUTE tag is replaced with dmp492. host_name=dmp491 group = \group\grp1 *\GROUP in the JOB_ATTRIBUTE tag is replaced with "group grp1." group = \group\grp2;\group\grp3 } SCHEDULE{ installation_timing = S } OPTION{ compress=Y } USER_PROGRAM_INSTALLATION_CONDITIONS{ *Always enclose the character string that includes a space in double quotation marks (" "). 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 *\FILE in the JOB_ATTRIBUTE is replaced with "SD error." source_path= C:\tmp\SDerror2.dir;C:\tmp\SD error3.dir dmz_path= C:\ *\FILE in the JOB_ATTRIBUTE tag is replaced with "ROOT." }