Re: [cciug] Obtaining a VOB's uuid

From: Sebastien Hadjifotis (Sebastien.Hadjifotis@fujitsu.com.au)
Date: Mon Jan 17 2000 - 19:45:20 EST


Hi Axel,

Maybe I got out of bed on the wrong side today, what do you have to begin
with
the vob_tag, path_in_vob, or vob_uuid? Your first mail indicated you had
only
the vob_tag and wanted the uuid, then this mail said you already had the
uuid
and wanted the vob tag. :-(

Given you already have the vob uuid, then you could :
ct lsvob -long -uuid <UUID> | grep 'Tag:' | cut -f2 -d:
Which is probably what you were doing before.

Given you have the tag and want the replica_uuid, then you could
try grepping the vob_tag file in the registry
(/var/adm/atria/rgy) for the tag (-tag) and extract the vob_replica.
eg. grep -- '-tag=/vob_tag;' /var/adm/atria/rgy/vob_tag |
          sed -e 's/.*-vob_replica=\([^;]*\);/\1/'
Other details can be obtained from the vob_object registry file, if you have
the storage location, then you can get the replica_uuid and family_uuid.
Also, vob details can be obtained from the vob_storage area, eg. vob_oid,
replica_uuid.

It's a bummer that the desc -fmt does not have an option for the
replica_uuid
and only the family_uuid of the vob. Looks like you'll have to go under the
cover and dig it out either using the vob_tag or replica_uuid/vobid.

Cheers,
Sebastien.
----- Original Message -----
From: Axel Mahler <Axel.Mahler@lmse.de>
To: Sebastien Hadjifotis <Sebastien.Hadjifotis@fujitsu.com.au>;
<cciug@Rational.Com>
Sent: Monday, January 17, 2000 6:44 PM
Subject: AW: [cciug] Obtaining a VOB's uuid

Hi Sebastien,

thanks for your suggestion. I'm afraid I didn't pose my question very well.
What I'm really looking for is a way to determine the mount point / vob tag
of a VOB, given its uuid.
I have the impression that clearcase's command interface is a bit cumbersome
in this area: "ct desc -fmt '%On' <any_path_in_vob>" prints the VOB's family
uuid. The family uuid, however, cannot be used as argument to "ct
lsvob -uuid <uid>". The lsvob command rather expects a VOB's replica uuid,
which is different and not as easy to obtain (and not as useful). What I
really needed, though, were "lsvob -uuid" to accept the family uuid.

Actually, I'm looking for a safe, and efficient way to universally identify,
and locate any clearcase object (on any of a given set of hosts). Currently,
I think a pair "<vob-family-uuid>:<object-id-in-vob>" would do the job. The
ugly part of locating a such identified clearcase object is tracking down
the VOB's mount point / current tag from the vob family uuid.

Anyone got "a better solution" =;-) ?

Cheers, Axel.

> -----Ursprüngliche Nachricht-----
> Von: Sebastien Hadjifotis [mailto:Sebastien.Hadjifotis@fujitsu.com.au
> Gesendet am: Sonntag, 16. Januar 2000 23:52
> An: Axel Mahler; cciug@Rational.Com
> Betreff: Re: [cciug] Obtaining a VOB's uuid
>
> Hi Axel,
>
> Try ct desc -fmt '%On' vob:vob_mnt_point
>
> Cheers,
> Sebastien.
> ----- Original Message -----
> From: Axel Mahler <Axel.Mahler@lmse.de>
> To: <cciug@Rational.Com>
> Sent: Monday, January 17, 2000 7:39 AM
> Subject: [cciug] Obtaining a VOB's uuid
>
>
> >
> > Does anybody know of a better way to obtain a VOB's uuid than
> grep-ing it
> > from the output of "lsvob -l <tag>" ?
> >
> > --Axel.
> >
> > - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> >
> >
> >
> > http://clearcase.rational.com/cciug/mailing_list.html
> >
>
>

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



This archive was generated by hypermail 2b29 : Sun May 06 2001 - 00:22:30 EDT