Home
Command  Home
Scalable Graphic

logo_header

Soft - is your software and documentation
Asset - is something that must be protected
Management - is what we do
Enterprise - is the capability
Computing - is the power
Services - are what we provide


 

lsmaster

[ –kind object-selector-kind [ ,... ] ] [ –fmt format-string ] [ –view view-tag ] [ –inr/eplicas { –all | replica-name [ ,... ] } ] master-replica-selector ...

 

A.    This command lists objects mastered by a replica. By default, the command uses only the information known to your current replica. If you list objects mastered by a sibling replica, changes that have not been imported at your current replica are not included in the output. For example, a label type is added at replica sanfran_hub, but replica nyc_hub has not imported the update packet containing the change. If you enter the command multitool lsmaster sanfran_hub at the nyc_hub replica, the output does not include the new type. To retrieve information from a sibling replica, use –inreplicas. This form of the command contacts the sibling replicas and works only between sites that have IP connections. If lsmaster cannot contact a replica, it prints an error and tries to contact the next replica you specified.

Object name resolution

If you have a view context, lsmaster uses the view to resolve object identifiers (OIDs) of file system objects to the names of the objects. If you do not have a view context, lsmaster prints OIDs for file system objects. If you do not have a view context and you specify the –fmt option, lsmaster prints errors for filesystem objects. You can specify a view context with the –view option.

When you specify –inreplicas, lsmaster prints OIDs for objects whose creation operations have not yet been imported at your current replica.

Restrictions

None.

 

B.    Limits the listing to the specified object kinds. The list of object kinds must be comma-separated, with no spaces. object-selector-kind can have the following values:

Values for ClearCase:

·         attype

·         branch

·         brtype

·         delem (directory element)

·         eltype

·         felem (file element)

·         hlink

·         hltype

·         slink

·         vob

Note: Specifying –kind branch limits the listing to explicitly mastered branch instances.

Values for ClearCase UCM:

·         activity

·         baseline

·         component

·         folder

·         project

·         stream

Values for MultiSite:

·         replica

 

C.    Lists information using the specified format string. For details about using this option, see the fmt_ccase reference page.

 

D.    Specifies a view.

 

E.    With –all, retrieves information from all replicas in the VOB family (except deleted replicas). Otherwise, retrieves information from the sibling replicas you specify. The list of replicas must be comma-separated, with no spaces.

 

F.    Lists objects mastered by the specified replica. Specify master-replica-selector in the form [replica:]replica-name[@vob-selector]

replica-name

Name of the replica

vob-selector

VOB family of the replica; can be omitted if the current working directory is within the VOB.

Specify vob-selector in the form [vob:]pname-in-vob

pname-in-vob

Pathname of the VOB tag (whether or not the VOB is mounted) or of any file system object within the VOB (if the VOB is mounted

Table of Contents

Restrictions. 2

Table of Contents. 3

How do I use the multitool master command.. 4

1.       List all objects mastered by the delhi replica of the samecs_dev VOB.. 4

2.       List all label types mastered by the london replica of the samecs_dev VOB.. 4

3.       List all element types, label types, and branch types mastered by the sydney replica.. 4

4.       List the name and creation comment of each element type mastered by the replica boston. Contact the boston replica to retrieve the data. 5

5.       Do not use a view context to list information from all replicas in the VOB family about the objects mastered by the replica sydney. 5

6.       Use a view context to list information from all replicas in the VOB family about the objects mastered by the replica sydney. 5

7.       List information from the sydney replica about the objects mastered by the replica boston.. 6

8.       List all projects, baselines, and streams mastered by the replica sydney. Contact the sydney replica to retrieve the data. 6

 

How do I use the multitool master command to

 

1.   list all objects mastered by the delhi replica of the samecs_dev VOB

multitool lsmaster –view samecs_view –fmt "%m:%n\n" dehli@/vobs/samecs_dev

directory element:/vobs/saemcs_dev.@@
...
file element:/vobs/samecs_dev/lib/file.c@@
...
symbolic link:/vobs/samecs_dev/doc
...
hyperlink:Merge@2@/vobs/samecs_dev
...

2.   list all label types mastered by the london replica of the samecs_dev VOB

cleartool lsmaster –fmt "%m:%n\n" –kind lbtype london@\samecs_dev

label type:LATEST
label type:CHECKEDOUT
label type:BACKSTOP
label type:REL1
...

3.   list all element types, label types, and branch types mastered by the sydney replica

cleartool lsmaster –kind eltype,lbtype,brtype sydney

master replica: sydney @\dev "element type" file_system_object
master replica: sydney @\dev "element type" file
master replica: sydney @\dev "element type" directory
...
master replica: sydney@\dev "branch type" sanfran_main
master replica: sydney@\dev "branch type" v1.0_bugfix
...
master replica: sydney@\dev "label type" LATEST
master replica: sydney@\dev "label type" SANFRAN_V2.0
master replica: sydney@\dev "label type" V1.0_BUGFIX
master replica: sydney@\dev "label type" TOKYO_BASE
master replica: sydney@\dev "label type" SYDNEY_BASE
...

4.   list the name and creation comment of each element type mastered by the replica boston. Contact the boston replica to retrieve the data.

multitool lsmaster –inreplicas boston –fmt "%n\t%c\n" kind eltype boston@/vobs/samecs_dev
In replica "nyc_hub"
binary_delta_file       Predefined element type used to represent a
file in binary delta format.
<include OID for object not yet known by current replica>...

5.   to list information from all replicas in the VOB family about the objects mastered by the replica sydney. Do not use a view context

multitool lsmaster –inreplicas –all sanfran_hub@/vobs/saemcs_dev

In replica "sydney"
master replica: sydney@/vobs/samecs_dev "versioned object base" /vobs/samecs_dev
master replica: sydney@/vobs/samecs_dev "directory element"
(oid:40e0000b.241d23ca.b3df.08:00:69:02:05:33)
master replica: sydney @/vobs/samecs_dev "directory element"
(oid:40e0000b.241d23ca.b3df.08:00:69:02:05:33)
...

6.   to list information from all replicas in the VOB family about the objects mastered by the replica sydney. Use a view context

multitool lsmaster –view samecs_view –inreplicas –all sydney@/vobs/samecs_dev

In replica " sydney"
master replica: sydney@/vobs/saemcs_dev "versioned object base" /vobs/samec_dev
master replica: sydney@/vobs/samecs_dev "directory element"
/view/samecs_view/vobs/samecs_dev/.@@
master replica: sydney@/vobs/samecs_dev "directory element"
/view/samecs_viedw/vobs/samecs_dev/lib@@
...

7.   list information from the sydney replica about the objects mastered by the replica boston

multitool lsmaster –view samecs_view –inreplicas sydney boston@/vobs/samecs_dev

8.   list all projects, baselines, and streams mastered by the replica sydney. Contact the sydney replica to retrieve the data.

multitool lsmaster –inreplicas sydney –kind project,baseline,stream
sydney@/vobs/samces_pvob

In replica "nyc_hub"
master replica: sydney@/vobs/projects  "project" V4.5.BL3
master replica: sydney@/vobs/projects  "project" doc_localize
master replica: sydney@/vobs/projects  "stream" 4.5.bl2_int
master replica: sydney@/vobs/projects  "project" V4.5.BL2
master replica: sydney@/vobs/projects  "stream" 4.5.bl2
master replica: sydney@/vobs/projects  "stream" stream000317.160434
master replica: sydney@/vobs/projects  "stream" stream000317.173156
master replica: sydney@/vobs/projects  "baseline"
V4.5.BL2.011005.12820
master replica: sydney@/vobs/projects  "baseline" V4.5.BL2.011005.12890
master replica: sydney@/vobs/projects  "baseline" V4.5.BL2.011005.17408
master replica: sydney@/vobs/projects  "baseline" V4.5.BL2.011005.17695
master replica: sydney@/vobs/projects  "baseline" V4.5.BL2.011005.19614
...