IBM Support

How to find oid and uuid of an element in IBM Rational ClearCase

Question & Answer


Question

How do you discover the corresponding oid and uuid of an object in an IBM Rational ClearCase VOB?

Cause

You receive an error message of Multisite synchronization. You see an oid or uuid of an object instead of a file name.

Every single object in a ClearCase VOB is referenced by its oid . The oid is unique inside the VOB.
This does not apply only to file, but to all objects in the VOB.

  • Element

  • Version

  • Metadata



ClearCase uses the oid internally. The oid is invisible for common user's operation. However, in some error messages, you see a reference to an oid. This can happen, if there are no view set during a Multisite import or export or if ClearCase cannot resolve the name.

Answer

Use the cleartool dump command to find a matching pair of oid and element.

  • To find the oid from an object, you use :


    cleartool dump <object>


    Ex: >cleartool dump Data.txt
    Data.txt (1a9fb39a.982042e4.b161.49:d7:f9:9a:b0:18)
    M:\General_view\RTC_CC_IntVOB\Eclipse\Hello\src\Data.txt@@\main\RTC\1
    oid=1a9fb39a.982042e4.b161.49:d7:f9:9a:b0:18 dbid=107 (0x6b)

  • To find the object from an oid, you use :


    cleartool dump oid:<object>

    Ex: >cleartool dump oid:1a9fb39a.982042e4.b161.49:d7:f9:9a:b0:18
    oid:1a9fb39a.982042e4.b161.49:d7:f9:9a:b0:18
    M:\General_view\RTC_CC_IntVOB\Eclipse\Hello\src\Data.txt@@\main\RTC\1
    oid=1a9fb39a.982042e4.b161.49:d7:f9:9a:b0:18 dbid=107 (0x6b)

Notes:

  • For theses commands to work, you need to be in a view and in the corresponding VOB. This is necessary in order to generate the path/file name.

  • <object> can be anything defined as an object for ClearCase.



    EXAMPLES
    • element <file>@@

    • version <file> or <file>@@\main\......

    • type lbtype:<name>

    • VOB or replica object vob:<vobtag>

See the user manual for a full list of ClearCase object.

[{"Product":{"code":"SSSH27","label":"Rational ClearCase"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"VOB","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF033","label":"Windows"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF022","label":"OS X"}],"Version":"7.0;7.0.1;7.1;7.1.1;7.1.2;8.0;8.0.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
19 February 2019

UID

swg21407966