du_tool

Create and manage deployment units

Applicability

Product Command type
ClearCase® Perl script
Platform
Windows®
Linux®
The UNIX® system

Synopsis

du_tool.pl --generate
             --directory staging-dir [[--directory staging-dir]...]
             --name release-name --version release-version
             [--tag dynamic-view-tag | --pname snapshot-view-pname]
             [--out output-file]

du_tool.pl { --decorate [--instance instance-id]
               [[--baseline baseline-text]...]
               [[--logvendor vendor] [--buildlog log-file]...]
             | --resolve
             }
             [--tag dynamic-view-tag | --pname snapshot-view-pname]
             [--out output-file]
             [input-file]

du_tool.pl --verify [input-file]

Description

The du_tool Perl script is a command-line utility that is supported in environments running either base ClearCase or Unified Change Management (UCM). The du_tool utility must be invoked using ratlperl on a ClearCase client host from which named views and VOBs are accessible.

Table 1 lists operations that can be run on deployment units using du_tool.
Table 1. du_tool operations
Operation Command-line argument Description
Generate –generate Searches through one or more directory trees within one or more VOBs and generates a deployment unit template XML file that consists of entries for each file found.
Decorate –decorate Creates a deployment unit XML file from the deployment unit template, and adds the following information to the file:
  • VOB object references (OREFs) to the files listed in the deployment unit
  • The config spec of the view in which the decorate option was run
  • The specific config spec rule that selected the versions in your VOB that are selected by the decorate option
  • The names of the registry server and registry region of the machine on which the decorate operation was run
  • A history element indicating that the decorate option has been run on the deployment unit template
Resolve –resolve Is run at deployment time to resolve the OREFS in a deployment unit to version-extended pathnames.
Verify –verify

Verifies that a deployment unit template is in valid XML format. If you have created your deployment unit template file by means other than running du_tool –generate, you can use this option to verify that the files consist of well-formed XML.

Additional options and arguments

Restrictions

Examples


Feedback