Question & Answer
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.
- Lock the VOB.
- Change directory to the VOB db directory.
- Run:
countdb vob_db
.
- 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.
[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"VOB","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.1;7.1.1;7.1.2;8.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Was this topic helpful?
Document Information
Modified date:
19 February 2019
UID
swg21570885