[ –aat/tr { attr-type-selector[,...] | –all } ]
[ –ahl/ink { hlink-type-selector[,...] | –all } ]
{[ –cvi/ew][ –ver/sion version-selector | –anc/estor ]
[ –ihl/ink { hlink-type-selector[,...] | –all } ]
[ –ali/ases [ –all ] ]
[ –pre/decessor] [ –pname ] pname...
|–type type-selector...
| –cact
| object-selector...
}
[ –aat/tr { attr-type-selector[,...] | –all } ]
[ –ahl/ink { hlink-type-selector[,...] | –all } ]
{ [ –cvi/ew ] [ –pre/decessor ] pname...
| –type type-selector...
| –cact
| object-selector...
}
[ –aat/tr { attr-type-selector[,...] | –all } ]
[ –ahl/ink { hlink-type-selector[,...] | –all } ]
{ [ –cvi/ew ] [ –pre/decessor ] pname...
| –type type-selector...
| –cact
| object-selector...
}
The describe command lists information about VOBs and the objects they contain. For example:
describe produces several kinds of listings:
The description of an element (for example, describe hello.h@@) includes a listing of the storage pools to which the element is currently assigned. (See mkpool and chpool for more information.)
A version's description includes the version ID of its predecessor version.
An ordinary derived object is listed with derived object in its header. A derived object that has been checked in as a version of an element (DO version) is listed with derived object version in its header.
For attribute types, hyperlink types, and label types, describe shows the instance mastership of the type (whether the type's mastership can be shared by multiple replicas), even if the VOB is not replicated.
By default, a version inherits a hyperlink attached to any of its ancestor versions, on the same branch or on a parent branch. Inherited hyperlinks are listed only if you use the –ihlink option.
A hyperlink stops being passed down to its descendants if it is superseded by another hyperlink of the same type, explicitly attached to some descendant version. You can use a null-ended hyperlink (from-object, but no to-object ) as the superseding hyperlink to effectively cancel hyperlink inheritance.
describe maintains a cache of tags of inaccessible views. For each view tag, describe records the time of the first unsuccessful contact. Before trying to access a view, describe checks the cache. If the view's tag is not listed in the cache, describe tries to contact the view. If the view's tag is listed in the cache, describe compares the time elapsed since the last attempt with the time-out period specified by the CCASE_DNVW_RETRY environment variable. If the elapsed time is greater than the time-out period, describe removes the view tag from the cache and tries to contact the view again.
The default timeout period is 60 minutes. To specify a different time-out period, set CCASE_DNVW_RETRY to another integer value (representing minutes). To disable the cache, set CCASE_DNVW_RETRY to 0.
The describe command shows additional information for objects in MultiSite replicated VOBs:
For more information about replicated VOBs, see the IBM Rational ClearCase Administrator's Guide.
If you combine –fmt with any of these options, describe uses the format-string to construct and display the object's extended path name.
For the type-selector arguments, use one of the type selectors shown in the object-selector description.
If you specify –short as well, the listing is restricted even further.
For versions, –version overrides these interpretations of pname.
The UNIX system and Linux examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.
The Windows examples that include wildcards or quoting are written for use in cleartool interactive mode. If you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.
In cleartool single-command mode, cmd-context represents the UNIX system and Linux shells or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt.
cmd-context describe msg.c
version "msg.c@@/main/3"
created 2006-12-08T12:12:55 by Chuck Jackson (test user) (cj.dvt@oxygen)
Element Protection:
User : sgd : r--
Group: user : r--
Other: : r--
element type: c_source
predecessor version: /main/2
Labels:
REL6
REL1
cmd-context describe util.c@@\main\rel2_bugfix
branch "util.c@@\main\rel2_bugfix"
created 2006-12-08T12:15:40 by Bev Jackson (test user) (bev.dvt@oxygen)
branch type: rel2_bugfix
Element Protection:
User : sgd : r--
Group: user : r--
Other: : r--
element type: text_file
branched from version: \main\31
cmd-context describe lbtype:REL3
label type "REL3"
created 2006-12-08T12:13:36 by Bev Jackson (test user) (bev.dvt@oxygen)
instance mastership: unshared
owner: bev
group: dvt
scope: this VOB (ordinary type)
constraint: one version per branch
cmd-context mkattype -nc -default '"TRUE"' Tested
cmd-context mkattr -default Tested util.c
cmd-context describe -aattr -all -fmt
"Name: %Xn\nType of object: %m\n" util.c
Name: util.c@@/main/CHECKEDOUT
Type of object: version
Attributes:
Tested = "TRUE"
cmd-context describe pool:ddft pool "ddft" created 2006-12-15T09:34:00 by jenny.adm@oxygen "Predefined pool used to store derived objects." owner: jenny group: dvt kind: derived pool pool storage global pathname "\\oxygen\users\vb_store\tut\tut.vbs\d\ddft" maximum size: 0 reclaim size: 0 age: 96
cmd-context describe -cview /view/jackson_fix/usr/hw/src/hello.mod
version "/usr/hw/src/hello.c@@/main/4"
created 2006-12-08T12:16:29 by Chuck Jackson (test user) (cj.dvt@oxygen)
Element Protection:
User : sgd : r--
Group: user : r--
Other: : r--
element type: text_file
predecessor version: /main/3
cmd-context describe -long vob:.
versioned object base "\hw"
created 2006-12-15T09:34:00 by jenny.adm@oxygen
"VOB dedicated to development of "hello, world" program"
VOB family feature level: 2
VOB storage host:pathname "oxygen:c:\users\vb_store\tut\tut.vbs"
VOB storage global pathname "\\oxygen\users\vb_store\tut\tut.vbs"
VOB ownership:
owner jackson
group dvt
VOB holds objects from the following views:
oxygen:\vb_store\tut\old.vws
[uuid 249356fe.d50f11cb.a3fd.00:01:56:01:0a:4f]
cmd-context describe hlink:Merge@516262@/vobs_proj hyperlink "Merge@516262@/vobs_proj" created 2006-07-14T16:43:35 by Bill Bo (bill.user@uranus) Merge@516262@/vobs_proj /vobs_proj/lib/cvt/cvt_cmd.c@@/main/v1.1_port/8 -> /vobs_proj/lib/cvt/cvt_cmd.c@@/main/71
cmd-context describe -cview util.o
derived object "util.o@@2006-04-11T12:03.33"
created 2006-04-11T12:03:33 by Anne Duvo (anne.dev@oxygen)
references: 2 (shared)
derived pool: ddft
=> saturn:/usr/anne/views/anne_main.vws
=> oxygen:/usr/jackson/views/jackson_proj2.vws
cmd-context describe util.obj
derived object "util.o@@2006-04-11T12:03.33"
created 2006-04-11T12:03:33 by Anne Duvo (anne.dev@oxygen)
references: 2 (shared)
derived pool: ddft
=> saturn:\users\anne\views\anne_main.vws
=> oxygen:\users\jackson\views\jackson_proj2.vws
cmd-context describe –fmt ^
"%n\n\t%[type]p\n\t%[triggers]p\n\t%[pool]Cp,%[pool]p\n" file.txt@@
file.txt@@
text_file
(CI_TRIG, CO_TRIG)
cdft,sdft
cmd-context describe –fmt "%n\t%[master]p\n" brtype:main
main lex@/vobs_dev
cmd-context describe –fmt "%On\n%[vob_replication]p\n%[msdostext_mode]p\n%c" ^ vob:. 46cf5bfd.240d11d3.a37e.00:01:80:7b:09:69 unreplicated disabled storage of header files
cmd-context describe –local lbtype:REL6
label type "REL6"
created 2007-07-28T14:00:26 by Suzanne Gets (smg.user@neon)
"Automatically created label type from global definition in
VOB "/vobs_admin"."
instance mastership: unshared
owner: smg
group: user
scope: this VOB (local copy of global type)
constraint: one version per element
Hyperlinks:
GlobalDefinition -> lbtype:REL6@/vobs_admin
cmd-context describe –long vob:.
versioned object base "\doc"
created 2006-11-07T16:46:28 by ratl.user
"ClearCase documentation VOB."
VOB family feature level: 1
VOB storage host:pathname "mercury:\usr3\vobstorage\doc_vob"
VOB storage global pathname "\\mercury\usr3\vobstorage\doc_vob"
VOB ownership:
owner 4294967294
group user
Hyperlinks:
AdminVOB -> vob:\admin
This VOB has a hyperlink named AdminVOB; it points from the current VOB to the VOB vob:\admin. If it were pointing to the current VOB, the listing would show
Hyperlinks:
AdminVOB <- vob:\admin
Now describe the hyperlink AdminVOB.
cmd-context describe hltype:AdminVOB
hyperlink type "AdminVOB"
created 2006-11-07T16:46:28 by ratl.user
"Predefined hyperlink type used to link a VOB to another VOB with
administrative information."
owner: 4294967294
group: user
scope: this VOB (ordinary type)
cmd-context describe –fmt "%n\n%[master]p\n%[replica_host]p\n" \
oid:87f6265f.72d911d4.a5cd.00:01:80:c0:4b:e7@
replicauuid:87f6265f.72d911d4.a5cd.00:01:80:c0
:4b:e7boston_hub
boston_hub@/vobs_dev
minuteman