Re: [cciug] Identifying Multisite Mastership?

From: David Ferguson (daf@cadence.com)
Date: Mon Jan 31 2000 - 10:34:47 EST


Apologies. As Marc points out, The actual process used was a script:
#######
#!/bin/sh
ITEM=$1
CL=/usr/atria/bin/cleartool
LIST=item_list
FOO=item_found

echo $ITEM >> $LIST
$CL describe -long $ITEM | grep alta-sj > /tmp/a
if [ -s /tmp/a ]
then
        echo $ITEM >> $FOO
fi

#### END of script ####
invoked via a
cleartool find . -all -exec 'get_desc $CLEARCASE_XPN'.

Yes, bulky and time-consuming (but it correctly identified the 64000
elements that were NOT mastered by the bad replica. It just didn't
identify anything that was. [Yes, I know the vob is too large, I've been
trying for 9 months to get R&D to let me split it up...].

Anybody got another option?

-daf

At 10:31 AM 1/31/00 +0200, Marc Girod wrote:

>>>>>> "DF" == David Ferguson <daf@cadence.com> writes:
>
>DF> cleartool find . -exec cleartool describe -long $CLEARCASE_XPN
>DF> piped through a grep for the desired replica.
>
>Er... is this even syntactically correct? It fails for me (because of
>missing quotes).
>
>Then don't you simply need to use -all (view independent), and to get
>the names back, i.e. e.g. (Korn/Posix shell syntax):
>
>repl=inphe_dust; \
> for e in $(cleartool find -all -print); \
> do \
> if [ -n "$(ct des -l $e | grep 'master replica: $repl')"]; \
> then echo $e; \
> fi; \
> done
>
>This should get you the elements, of course not the types...
>
>--
>Marc Girod P.O. Box 320 Voice: +358-9-511 23746
>Nokia Networks 00045 NOKIA Group Mobile: +358-40-569 7954
>Hiomo 5/1 Finland Fax: +358-9-511 23580
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>

>
>
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



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