Skip to main content

How to find the total number of label instances in an ClearCase VOB


Technote (FAQ)


Question

How to find the total number of label instances in an IBM® Rational® ClearCase® VOB?

Cause

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.

Answer

A possible solution is to use the countdb tool from the ClearCase etc/utils folder. Consider the following steps.


  1. Lock the VOB.

  2. Change directory to the VOB db directory.

  3. Run: countdb vob_db.

  4. 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.


Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Rational ClearCase

VOB


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:
2012-11-28

Translate my page

Content navigation