How to find the total number of label instances in an ClearCase VOB
How to find the total number of label instances in an IBM® Rational® ClearCase® VOB?
You want to know how many label instances are present in a VOB, not only for one single label but for ALL label types. You can use the cleartool find command and parse the output. For a large VOB or a large number of labels, however, the command works too slowly.
A possible solution is to use the countdb tool from the ClearCase etc/utils folder. Consider the following steps.
- Lock the VOB.
- Change directory to the VOB db directory.
- Unlock the VOB.
The countdb tool reports the record distribution in a ClearCase VOB database. For more information, see technote 1126456: About the ClearCase utility countdb.
The line that holds the label information is the one with: VERSION_LABEL_LINK
CONFIG_REC : 543
CONFIG_REC_DERIVED_OBJECT : 543
VERSION_LABEL_LINK : 2431
HLINK_TYPE : 9
The number reported is the total number of label instance for all type.
More support for:
Software version: 7.1, 7.1.1, 7.1.2, 8.0
Operating system(s): AIX, HP-UX, Linux, Solaris, Windows
Reference #: 1570885
Modified date: 28 November 2012
Translate this page: