Professional Documents
Culture Documents
IBM Software Group
IBM Software Group
1
Objectives
Upon completing this module, you should be able to:
Report on ClearCase objects and events using
cleartool subcommands
Run reports using the ClearCase Report Builder
View reports using the ClearCase Report Viewer
2
Topics
Reporting with cleartool subcommands
Reporting with ClearCase Reports applications
3
Reporting with cleartool
Subcommands
Many ClearCase commands read data from a VOB,
format it, and write it to standard output
Scope of reports can be
Single element
Set of objects
Entire VOBs
cleartool reporting subcommands include
annotate
describe
lshistory
find
4
annotate: Reporting on File Changes
5
annotate: Reporting on File Changes
(cont.)
Example:
M:\Pat_R2_Dev\Hardware\src>cleartool annotate hello.c
Annotated result written
to hello.c.ann
Element path
Text line
annotations
6
describe: Reporting on VOB Objects
describe [ -long | -short | -fmt format-string ] { [ -version version-
selector | -ancestor ] [ -pname ] pname ... | -type type-selector ... |
object-selector ... }
7
describe: Reporting on VOB Objects
(cont.)
Example 1:
cleartool describe util.c
Describe the version "util.c@@\main\r2_int\1"
version of created 20-Jul-94.17:05:00 by
element util.c pat.ccusers@flyer
selected by your "define user, home, time functions"
view Element Protection:
User : RATIONAL\pat : r--
Group: RATIONAL\ccusers : r--
Other: : r--
element type: text_file
predecessor version: \main\r2_int\0
Labels:
R2
8
describe: Reporting on VOB Objects
(cont.)
Example 2: Describe a branch of an element, specifying it with
an extended pathname
9
lshistory: Reporting on Events
lshistory [ -long | -short | -fmt format-string ]
[ -pname ] pname ... | object-selector ... ]
10
lshistory: Reporting on Events (cont.)
Example 1: List event history for an element
12
-fmt option: Formatting Reports
13
-fmt option Formatting Reports
(cont.)
Example:
cleartool lshistory -since 1-Feb util.c
10-Feb.11:21 anne create version
"util.c@@/main/r2_bugfix/1"
"fix bug: extra NL in time string"
10-Feb.11:21 anne create version
"util.c@@/main/r2_bugfix/0"
10-Feb.11:21 anne create branch
"util.c@@/main/r2_bugfix"
15
find: Searching for VOB Objects
(cont.)
Example 1:
List all file elements in and below the current working directory
16
find: Searching for VOB Objects
(cont.)
Example 2:
List all elements owned by user pat on the current directory and
subdirectories and apply a label
17
find: Searching for VOB Objects
(cont.)
Example 3:
List the standard name of each element that has (or contains a
branch or version that has) a BugNum attribute with the value
189
18
Topics
Reporting with cleartool subcommands
19
Using ClearCase Reports
Includes ClearCase Report Builder and ClearCase
Report Viewer
Uses a library of report programs to support 39 standard
report options
Use Report Builder to choose report category and type,
define parameter values, and run report
Use the Report Viewer to view report results
ClearCase reports can be customized
20
ClearCase Report Builder: Running a
Report
2
Select report
option.
1
Select report
category. 3
Associate a
value with each
parameter.
21
ClearCase Report Viewer: Viewing Repo
Results
The Report Viewer window displays your report results
immediately.
View parameters
and sort order
Status box
22
Report Output: Example in HTML
23
Report Builder Reports: Example 1
All checkins
for Pat since a
certain date.
24
Report Builder Reports: Example 2
All new
versions since
a certain date.
25
Module Review
When might you use cleartool annotate?
When might you use cleartool describe?
When might you use cleartool lshistory?
What is the –fmt option?
When might you use cleartool find?
How do you access ClearCase Report Builder?
26
Module Lab
In this lab, you will:
Report on ClearCase objects and events using
cleartool subcommands
Run reports using the ClearCase Report Builder
View reports using the ClearCase Report Viewer
27
28