Tuesday, November 30, 2010

Re: Retrieve rmnamed elements and rmelem them


Permlink Replies: 7 - Pages: 1 - Last Post: Nov 26, 2010 5:42 PM Last Post By: 314 Threads: [ Previous | Next ]
Posts: 41
Registered: Nov 24, 2004 09:18:18 AM Retrieve rmnamed elements and rmelem them
Posted: Nov 25, 2010 08:24:14 AM I need 2 answers.
1) Is there a quick way to retrieve the list of all elements removed (via rmname, NOT rmelem) from a VOB? I tried this command:
cleartool lshistory -fmt "%Nd#%En#%c\n" -r Luca_vob
In fact, I found in the output some lines like Uncataloged directory element "...", but the format does not satisfy me, as I would like to have, on a single line, the complete path of the removed element.
2) Provided that I succeeded in retrieving the removed elements list, how could I perform the rmelem of those elements? I mean, the problem is that they are no longer visible in the current configuration on the VOB, so I should create many views on past configurations (i.e. baselines).
Is there a quicker way to perform that?

Thanks in advance.


Posts: 419
Registered: Mar 15, 2005 04:40:07 AM Re: Retrieve rmnamed elements and rmelem them
Posted: Nov 25, 2010 09:29:23 AM   in response to: Lumart in response to: Lumart's post Lumart wrote:
> 1) I tried this command:
> cleartool lshistory -fmt "%Nd#%En#%c\n" -r Luca_vob

Several problems...
you recurse in your view, so you miss elements themselves not reachablethis recusion will miss the root directoryactually, you rely upon the default comments of the checkin events of directory objects...This comment is no guaranteed to be preserved, especially if the user gives a comment at checkin!
- it gets scrubbed for one thing;
- for an other, after you'll have removed the elements, the history of their parents won't change.

I doubt you are on a steady path, there.

Marc


Posts: 419
Registered: Mar 15, 2005 04:40:07 AM Re: Retrieve rmnamed elements and rmelem them
Posted: Nov 25, 2010 09:55:02 AM   in response to: 314 in response to: 314's post Marc wrote:
> - actually, you rely upon the default comments of the checkin events of directory objects...

Sorry: I have to take this back. It is also in the comment of the rmname events, and it is at least harder to prevent it from getting there.

foo> ct co -nc .
Checked out "." from version "/main/mg/16".
foo> ct rm -c 'aaa bbb' a.c d
Removed "a.c".
Removed "d".
foo> ct ci -c 'foo bar' .
Checked in "." version "/main/mg/20".
foo> ct lshis -fmt "%o %Nc\n" -minor -since today -dir .
checkin foo bar
rmname Uncataloged directory element "d".
aaa bbb
rmname Uncataloged file element "a.c".
aaa bbb

All in all, you get something with:

ct lshis -a -fmt "%o %n %Nc\n" -minor -since 14:45 | egrep ^rmname

At least this doesn't depend on your view, and cannot be altered by the user comments.
The next this for your 2nd question would be to edit this into an element path, and to use it to get the oid (des -fmt %On). This, you could rmelem... assuming you master it, and got rid of the other checks (labels, locks, hyperlinks,...)

Some job for Perl.

Marc


Posts: 41
Registered: Nov 24, 2004 09:18:18 AM Re: Retrieve rmnamed elements and rmelem them
Posted: Nov 26, 2010 08:09:27 AM   in response to: 314 in response to: 314's post I think the command you suggested is good enough for the customer's purposes.
The removed elements list can be extracted from the output manually or automatically (i.e with a Perl script).
What about the second question?
I mean, any idea on how to rmelem all those elements that are no longer visible in the views?
I read the reference for the rmelem command, and it looks like an element can be "rmelem-ed" by specifying an extended pathname, i.e. one of its versions.
Thanks in advance.
Posts: 297
Registered: Jan 11, 2007 06:46:38 AM Re: Retrieve rmnamed elements and rmelem them
Posted: Nov 26, 2010 08:30:27 AM   in response to: Lumart in response to: Lumart's post Luca,

Before you take this to the end, you are 100% sure that you understand that rmelem will permanently remove the element, including its history and wrecking any prior releases already made containing said element?

Just want make sure you really, really grasp that you could be in a world of hurt unless you are completely certain this is the way to go.

ken1


Posts: 41
Registered: Nov 24, 2004 09:18:18 AM Re: Retrieve rmnamed elements and rmelem them
Posted: Nov 26, 2010 08:40:12 AM   in response to: keolw in response to: keolw's post Keolw, don't worry, I have been working with ClearCase for years, I know the pros and the cons of rmelem.
In my opinion, the customer is going to perform a wrong operation, as the purpose of rmname is to "clean" the current configuration without losing historical data.
We tried to convince the customer that rmelem is, at best, useless for them, but they said that those elements were added by mistake, so they asked us to support them for rmelem.
Anyway, I performed some tests on local vobs and I verified that I can rmelem an element by just specifying one of its versions with an extended pathname.
Thank you for all.
Posts: 419
Registered: Mar 15, 2005 04:40:07 AM Re: Retrieve rmnamed elements and rmelem them
Posted: Nov 26, 2010 10:09:44 AM   in response to: Lumart in response to: Lumart's post Lumart wrote:
> I think the command you suggested is good enough for the customer's purposes.
OK.
> What about the second question?
I thought I replied...
OK, not clearly enough, and with a detail error. Here is an example: atcctest> ct lshis -a -fmt "%o %En@@%PVn %Nc\n" -minor -since today | egrep ^rmnamermname /vobs/atcctest/.@@/main/mg/2 Uncataloged file element "bar".atcctest> ct des -fmt "%On\n" /vobs/atcctest/.@@/main/mg/2/bar831185be.71e44c50.b472.70:23:ef:8b:57:5batcctest> ct rmelem -f oid:831185be.71e44c50.b472.70:23:ef:8b:57:5bRemoved element "/vobs/atcctest/.@@/main/mg/2/bar".

So, using Perl, and ClearCase::Argv from CPAN (I leave the '-since today'):

use ClearCase::Argv;my $ct = new ClearCase::Argv({autochomp=>1, ipc=>1);for ($ct->lshis([qw(-a -fmt), q(%o %En@@%PVn %Nc\n), qw(-minor -since today)])->qx) { if (/^rmname (.*) Uncataloged .* element "(.*)"\.$/) { my $oid = $ct->des([qw(-fmt %On)], join('/', $1, $2))->qx; $ct->rmelem([qw(-f)], 'oid:' . $oid)->system; }}

I didn't run it, but as far as I can tell, this should be portable (the '/' will be accepted on input), and take care of spaces and '$'s in file names.
It will fail verbosely on mastership errors.
The week link IMHO is the 'previous version'... It won't work in every branching case...
I also suspect the result after letting the forum mash this... Hopefully all the characters go through!

Marc


Posts: 419
Registered: Mar 15, 2005 04:40:07 AM Re: Retrieve rmnamed elements and rmelem them
Posted: Nov 26, 2010 05:42:22 PM   in response to: 314 in response to: 314's post Marc wrote:
> > my $ct = new ClearCase::Argv({autochomp=>1, ipc=>1); } >
One missing brace, at least.

Marc

Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

Use the search field to find all types of content in My developerWorks with that tag. Use the slider bar to see more or fewer tags. Popular tags shows the top tags for this particular type of content or application that you're viewing. My tags shows your tags for this particular type of content or application that you're viewing.MoreLess 
Point your RSS reader here for a feed of the latest messages in all forums

View the original article here

Re: Retrieve rmnamed elements and rmelem them


Permlink Replies: 7 - Pages: 1 - Last Post: Nov 26, 2010 5:42 PM Last Post By: 314 Threads: [ Previous | Next ]
Posts: 41
Registered: Nov 24, 2004 09:18:18 AM Retrieve rmnamed elements and rmelem them
Posted: Nov 25, 2010 08:24:14 AM I need 2 answers.
1) Is there a quick way to retrieve the list of all elements removed (via rmname, NOT rmelem) from a VOB? I tried this command:
cleartool lshistory -fmt "%Nd#%En#%c\n" -r Luca_vob
In fact, I found in the output some lines like Uncataloged directory element "...", but the format does not satisfy me, as I would like to have, on a single line, the complete path of the removed element.
2) Provided that I succeeded in retrieving the removed elements list, how could I perform the rmelem of those elements? I mean, the problem is that they are no longer visible in the current configuration on the VOB, so I should create many views on past configurations (i.e. baselines).
Is there a quicker way to perform that?

Thanks in advance.


Posts: 419
Registered: Mar 15, 2005 04:40:07 AM Re: Retrieve rmnamed elements and rmelem them
Posted: Nov 25, 2010 09:29:23 AM   in response to: Lumart in response to: Lumart's post Lumart wrote:
> 1) I tried this command:
> cleartool lshistory -fmt "%Nd#%En#%c\n" -r Luca_vob

Several problems...
you recurse in your view, so you miss elements themselves not reachablethis recusion will miss the root directoryactually, you rely upon the default comments of the checkin events of directory objects...This comment is no guaranteed to be preserved, especially if the user gives a comment at checkin!
- it gets scrubbed for one thing;
- for an other, after you'll have removed the elements, the history of their parents won't change.

I doubt you are on a steady path, there.

Marc


Posts: 419
Registered: Mar 15, 2005 04:40:07 AM Re: Retrieve rmnamed elements and rmelem them
Posted: Nov 25, 2010 09:55:02 AM   in response to: 314 in response to: 314's post Marc wrote:
> - actually, you rely upon the default comments of the checkin events of directory objects...

Sorry: I have to take this back. It is also in the comment of the rmname events, and it is at least harder to prevent it from getting there.

foo> ct co -nc .
Checked out "." from version "/main/mg/16".
foo> ct rm -c 'aaa bbb' a.c d
Removed "a.c".
Removed "d".
foo> ct ci -c 'foo bar' .
Checked in "." version "/main/mg/20".
foo> ct lshis -fmt "%o %Nc\n" -minor -since today -dir .
checkin foo bar
rmname Uncataloged directory element "d".
aaa bbb
rmname Uncataloged file element "a.c".
aaa bbb

All in all, you get something with:

ct lshis -a -fmt "%o %n %Nc\n" -minor -since 14:45 | egrep ^rmname

At least this doesn't depend on your view, and cannot be altered by the user comments.
The next this for your 2nd question would be to edit this into an element path, and to use it to get the oid (des -fmt %On). This, you could rmelem... assuming you master it, and got rid of the other checks (labels, locks, hyperlinks,...)

Some job for Perl.

Marc


Posts: 41
Registered: Nov 24, 2004 09:18:18 AM Re: Retrieve rmnamed elements and rmelem them
Posted: Nov 26, 2010 08:09:27 AM   in response to: 314 in response to: 314's post I think the command you suggested is good enough for the customer's purposes.
The removed elements list can be extracted from the output manually or automatically (i.e with a Perl script).
What about the second question?
I mean, any idea on how to rmelem all those elements that are no longer visible in the views?
I read the reference for the rmelem command, and it looks like an element can be "rmelem-ed" by specifying an extended pathname, i.e. one of its versions.
Thanks in advance.
Posts: 297
Registered: Jan 11, 2007 06:46:38 AM Re: Retrieve rmnamed elements and rmelem them
Posted: Nov 26, 2010 08:30:27 AM   in response to: Lumart in response to: Lumart's post Luca,

Before you take this to the end, you are 100% sure that you understand that rmelem will permanently remove the element, including its history and wrecking any prior releases already made containing said element?

Just want make sure you really, really grasp that you could be in a world of hurt unless you are completely certain this is the way to go.

ken1


Posts: 41
Registered: Nov 24, 2004 09:18:18 AM Re: Retrieve rmnamed elements and rmelem them
Posted: Nov 26, 2010 08:40:12 AM   in response to: keolw in response to: keolw's post Keolw, don't worry, I have been working with ClearCase for years, I know the pros and the cons of rmelem.
In my opinion, the customer is going to perform a wrong operation, as the purpose of rmname is to "clean" the current configuration without losing historical data.
We tried to convince the customer that rmelem is, at best, useless for them, but they said that those elements were added by mistake, so they asked us to support them for rmelem.
Anyway, I performed some tests on local vobs and I verified that I can rmelem an element by just specifying one of its versions with an extended pathname.
Thank you for all.
Posts: 419
Registered: Mar 15, 2005 04:40:07 AM Re: Retrieve rmnamed elements and rmelem them
Posted: Nov 26, 2010 10:09:44 AM   in response to: Lumart in response to: Lumart's post Lumart wrote:
> I think the command you suggested is good enough for the customer's purposes.
OK.
> What about the second question?
I thought I replied...
OK, not clearly enough, and with a detail error. Here is an example: atcctest> ct lshis -a -fmt "%o %En@@%PVn %Nc\n" -minor -since today | egrep ^rmnamermname /vobs/atcctest/.@@/main/mg/2 Uncataloged file element "bar".atcctest> ct des -fmt "%On\n" /vobs/atcctest/.@@/main/mg/2/bar831185be.71e44c50.b472.70:23:ef:8b:57:5batcctest> ct rmelem -f oid:831185be.71e44c50.b472.70:23:ef:8b:57:5bRemoved element "/vobs/atcctest/.@@/main/mg/2/bar".

So, using Perl, and ClearCase::Argv from CPAN (I leave the '-since today'):

use ClearCase::Argv;my $ct = new ClearCase::Argv({autochomp=>1, ipc=>1);for ($ct->lshis([qw(-a -fmt), q(%o %En@@%PVn %Nc\n), qw(-minor -since today)])->qx) { if (/^rmname (.*) Uncataloged .* element "(.*)"\.$/) { my $oid = $ct->des([qw(-fmt %On)], join('/', $1, $2))->qx; $ct->rmelem([qw(-f)], 'oid:' . $oid)->system; }}

I didn't run it, but as far as I can tell, this should be portable (the '/' will be accepted on input), and take care of spaces and '$'s in file names.
It will fail verbosely on mastership errors.
The week link IMHO is the 'previous version'... It won't work in every branching case...
I also suspect the result after letting the forum mash this... Hopefully all the characters go through!

Marc


Posts: 419
Registered: Mar 15, 2005 04:40:07 AM Re: Retrieve rmnamed elements and rmelem them
Posted: Nov 26, 2010 05:42:22 PM   in response to: 314 in response to: 314's post Marc wrote:
> > my $ct = new ClearCase::Argv({autochomp=>1, ipc=>1); } >
One missing brace, at least.

Marc

Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

Use the search field to find all types of content in My developerWorks with that tag. Use the slider bar to see more or fewer tags. Popular tags shows the top tags for this particular type of content or application that you're viewing. My tags shows your tags for this particular type of content or application that you're viewing.MoreLess 
Point your RSS reader here for a feed of the latest messages in all forums

View the original article here

Re: What's the best way to name your triggers and trigger files?

Permlink Replies: 2 - Pages: 1 - Last Post: Nov 25, 2010 10:51 AM Last Post By: Jirong_Hu Threads: [ Previous | Next ]
Posts: 280
Registered: Sep 04, 2008 05:41:32 PM What's the best way to name your triggers and trigger files?
Posted: Nov 24, 2010 04:20:50 PM I have a dozen of triggers for all different purposes so I want to give good names for both the triggers and perl files. Hope that will be easier for people come in to maintenance it.

I have two choices:
1. Name the trigger as "tr_mkelem_postop", pointing to a script called tr_mkelem_postop.pl.
2. Name the trigger as "CHG_OWNER", pointing to a script called tr_CHG_OWNER.pl.

Which way you guys prefer?

Thanks
Jirong


Posts: 416
Registered: Mar 15, 2005 04:40:07 AM Re: What's the best way to name your triggers and trigger files?
Posted: Nov 25, 2010 05:45:42 AM   in response to: Jirong_Hu in response to: Jirong_Hu's post Jirong_Hu wrote:
> Which way you guys prefer?

No triggers: triggers are evil. Use them at most only temporarily.
Use wrappers instead: more powerful, more portable, easier to debug and to get right, easier to maintain (once, not once per vob), less surprising: the end user is aware of running a wrapper, and able to not use it in case of problem.

This is essential to grow SCM and ClearCase credibility, or rather to avoid jeopardizing it.

Do your triggers work in cygwin environment? My wrappers do.
What perl do your triggers use? My wrapper use the one maintained in my perl vob.

Marc


Posts: 280
Registered: Sep 04, 2008 05:41:32 PM Re: What's the best way to name your triggers and trigger files?
Posted: Nov 25, 2010 10:51:35 AM   in response to: 314 in response to: 314's post Hi Marc

Thanks for your reply. Regarding the wrapper, I only find this: http://search.cpan.org/~dsb/ClearCase-Wrapper-1.16/Wrapper.pm

Can you give more details?

Thanks
Jirong

Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

Use the search field to find all types of content in My developerWorks with that tag. Use the slider bar to see more or fewer tags. Popular tags shows the top tags for this particular type of content or application that you're viewing. My tags shows your tags for this particular type of content or application that you're viewing.MoreLess 
Point your RSS reader here for a feed of the latest messages in all forums

View the original article here

Re: Retrieve rmnamed elements and rmelem them

This question is not answered.

Posts: 39
Registered: Nov 24, 2004 09:18:18 AM Retrieve rmnamed elements and rmelem them
Posted: Nov 25, 2010 08:24:14 AM I need 2 answers.
1) Is there a quick way to retrieve the list of all elements removed (via rmname, NOT rmelem) from a VOB? I tried this command:
cleartool lshistory -fmt "%Nd#%En#%c\n" -r Luca_vob
In fact, I found in the output some lines like Uncataloged directory element "...", but the format does not satisfy me, as I would like to have, on a single line, the complete path of the removed element.
2) Provided that I succeeded in retrieving the removed elements list, how could I perform the rmelem of those elements? I mean, the problem is that they are no longer visible in the current configuration on the VOB, so I should create many views on past configurations (i.e. baselines).
Is there a quicker way to perform that?

Thanks in advance.


Posts: 416
Registered: Mar 15, 2005 04:40:07 AM Re: Retrieve rmnamed elements and rmelem them
Posted: Nov 25, 2010 09:29:23 AM   in response to: Lumart in response to: Lumart's post Lumart wrote:
> 1) I tried this command:
> cleartool lshistory -fmt "%Nd#%En#%c\n" -r Luca_vob

Several problems...
you recurse in your view, so you miss elements themselves not reachablethis recusion will miss the root directoryactually, you rely upon the default comments of the checkin events of directory objects...This comment is no guaranteed to be preserved, especially if the user gives a comment at checkin!
- it gets scrubbed for one thing;
- for an other, after you'll have removed the elements, the history of their parents won't change.

I doubt you are on a steady path, there.

Marc


Posts: 416
Registered: Mar 15, 2005 04:40:07 AM Re: Retrieve rmnamed elements and rmelem them
Posted: Nov 25, 2010 09:55:02 AM   in response to: 314 in response to: 314's post Marc wrote:
> - actually, you rely upon the default comments of the checkin events of directory objects...

Sorry: I have to take this back. It is also in the comment of the rmname events, and it is at least harder to prevent it from getting there.

foo> ct co -nc .
Checked out "." from version "/main/mg/16".
foo> ct rm -c 'aaa bbb' a.c d
Removed "a.c".
Removed "d".
foo> ct ci -c 'foo bar' .
Checked in "." version "/main/mg/20".
foo> ct lshis -fmt "%o %Nc\n" -minor -since today -dir .
checkin foo bar
rmname Uncataloged directory element "d".
aaa bbb
rmname Uncataloged file element "a.c".
aaa bbb

All in all, you get something with:

ct lshis -a -fmt "%o %n %Nc\n" -minor -since 14:45 | egrep ^rmname

At least this doesn't depend on your view, and cannot be altered by the user comments.
The next this for your 2nd question would be to edit this into an element path, and to use it to get the oid (des -fmt %On). This, you could rmelem... assuming you master it, and got rid of the other checks (labels, locks, hyperlinks,...)

Some job for Perl.

Marc

Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

Use the search field to find all types of content in My developerWorks with that tag. Use the slider bar to see more or fewer tags. Popular tags shows the top tags for this particular type of content or application that you're viewing. My tags shows your tags for this particular type of content or application that you're viewing.MoreLess 
Point your RSS reader here for a feed of the latest messages in all forums

View the original article here

Re: Does anyone has a script to clean up lost+found directory?

Permlink Replies: 3 - Pages: 1 - Last Post: Nov 25, 2010 10:52 AM Last Post By: Jirong_Hu Threads: [ Previous | Next ]
Posts: 280
Registered: Sep 04, 2008 05:41:32 PM Does anyone has a script to clean up lost+found directory?
Posted: Nov 24, 2010 04:22:44 PM I believe I had one, but can't find it. Can anyone post one here?

Thanks
Jirong


Posts: 280
Registered: Sep 04, 2008 05:41:32 PM Re: Does anyone has a script to clean up lost+found directory?
Posted: Nov 24, 2010 04:33:40 PM   in response to: Jirong_Hu in response to: Jirong_Hu's post I have a file in lost+found, can't be deleted. Can anyone help?

Thanks
Jirong

M:\c999752_view\Mainframe_CVOB2\lost+found>dir
Volume in drive M is CCase
Volume Serial Number is 0234-5789

Directory of M:\c999752_view\Mainframe_CVOB2\lost+found

11/24/2010 04:27 PM

.
11/01/2010 03:31 PM ..
08/03/2010 10:03 AM 0 -nc.211a92e1797b4a50a0f59f0085a9d277
1 File(s) 0 bytes
2 Dir(s) 52,428,800,000 bytes free

M:\c999752_view\Mainframe_CVOB2\lost+found>cleartool rmelem *
cleartool: Error: Pathname not found: "*".

M:\c999752_view\Mainframe_CVOB2\lost+found>cleartool rmelem -f \"-nc.211a92e1797b4a50a0f59f0085a9d27
7\"
cleartool: Error: Pathname not found: ""-nc.211a92e1797b4a50a0f59f0085a9d277"".

M:\c999752_view\Mainframe_CVOB2\lost+found>cleartool rmelem -f "-nc.211a92e1797b4a50a0f59f0085a9d277
"
cleartool: Error: Unrecognized option "-nc.211a92e1797b4a50a0f59f0085a9d277"
Usage: rmelem -force [-c comment | -cfile pname | -cq | -cqe | -nc] pname ...

M:\c999752_view\Mainframe_CVOB2\lost+found>cleartool rmelem -f -nc.*
cleartool: Error: Unrecognized option "-nc.*"
Usage: rmelem -force [-c comment | -cfile pname | -cq | -cqe | -nc] pname ...

M:\c999752_view\Mainframe_CVOB2\lost+found>cleartool rmelem -f -nc.211a92e1797b4a50a0f59f0085a9d277
cleartool: Error: Unrecognized option "-nc.211a92e1797b4a50a0f59f0085a9d277"
Usage: rmelem -force [-c comment | -cfile pname | -cq | -cqe | -nc] pname ...

M:\c999752_view\Mainframe_CVOB2\lost+found>\


Posts: 416
Registered: Mar 15, 2005 04:40:07 AM Re: Does anyone has a script to clean up lost+found directory?
Posted: Nov 25, 2010 05:35:48 AM   in response to: Jirong_Hu in response to: Jirong_Hu's post Jirong_Hu wrote:
> I have a file in lost+found, can't be deleted. Can anyone help?

Your question here doesn't match your subject.
The FAQ for your one file problem is: ./-nc*

FAQ 1.1.1

The FAQ for your subject question is less simple, and less tidy:

FAQ 1.5.8

Marc


Posts: 280
Registered: Sep 04, 2008 05:41:32 PM Re: Does anyone has a script to clean up lost+found directory?
Posted: Nov 25, 2010 10:52:47 AM   in response to: 314 in response to: 314's post Hi Marc

Thanks a lot for your information. I was trying \.

Jirong

Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

Use the search field to find all types of content in My developerWorks with that tag. Use the slider bar to see more or fewer tags. Popular tags shows the top tags for this particular type of content or application that you're viewing. My tags shows your tags for this particular type of content or application that you're viewing.MoreLess 
Point your RSS reader here for a feed of the latest messages in all forums

View the original article here

How to load two vobs in a view where both vobs are in different registry and vob servers?

Different registry??? I dont think thats possible, because in the first place the View will not be the same across different registry.

Different VOB server in the same registry is not an issue, just load it normally.

Maybe I misunderstood your problem.


View the original article here

Monday, November 29, 2010

Re: Does anyone has a script to clean up lost+found directory?

Permlink Replies: 3 - Pages: 1 - Last Post: Nov 25, 2010 10:52 AM Last Post By: Jirong_Hu Threads: [ Previous | Next ]
Posts: 280
Registered: Sep 04, 2008 05:41:32 PM Does anyone has a script to clean up lost+found directory?
Posted: Nov 24, 2010 04:22:44 PM I believe I had one, but can't find it. Can anyone post one here?

Thanks
Jirong


Posts: 280
Registered: Sep 04, 2008 05:41:32 PM Re: Does anyone has a script to clean up lost+found directory?
Posted: Nov 24, 2010 04:33:40 PM   in response to: Jirong_Hu in response to: Jirong_Hu's post I have a file in lost+found, can't be deleted. Can anyone help?

Thanks
Jirong

M:\c999752_view\Mainframe_CVOB2\lost+found>dir
Volume in drive M is CCase
Volume Serial Number is 0234-5789

Directory of M:\c999752_view\Mainframe_CVOB2\lost+found

11/24/2010 04:27 PM

.
11/01/2010 03:31 PM ..
08/03/2010 10:03 AM 0 -nc.211a92e1797b4a50a0f59f0085a9d277
1 File(s) 0 bytes
2 Dir(s) 52,428,800,000 bytes free

M:\c999752_view\Mainframe_CVOB2\lost+found>cleartool rmelem *
cleartool: Error: Pathname not found: "*".

M:\c999752_view\Mainframe_CVOB2\lost+found>cleartool rmelem -f \"-nc.211a92e1797b4a50a0f59f0085a9d27
7\"
cleartool: Error: Pathname not found: ""-nc.211a92e1797b4a50a0f59f0085a9d277"".

M:\c999752_view\Mainframe_CVOB2\lost+found>cleartool rmelem -f "-nc.211a92e1797b4a50a0f59f0085a9d277
"
cleartool: Error: Unrecognized option "-nc.211a92e1797b4a50a0f59f0085a9d277"
Usage: rmelem -force [-c comment | -cfile pname | -cq | -cqe | -nc] pname ...

M:\c999752_view\Mainframe_CVOB2\lost+found>cleartool rmelem -f -nc.*
cleartool: Error: Unrecognized option "-nc.*"
Usage: rmelem -force [-c comment | -cfile pname | -cq | -cqe | -nc] pname ...

M:\c999752_view\Mainframe_CVOB2\lost+found>cleartool rmelem -f -nc.211a92e1797b4a50a0f59f0085a9d277
cleartool: Error: Unrecognized option "-nc.211a92e1797b4a50a0f59f0085a9d277"
Usage: rmelem -force [-c comment | -cfile pname | -cq | -cqe | -nc] pname ...

M:\c999752_view\Mainframe_CVOB2\lost+found>\


Posts: 416
Registered: Mar 15, 2005 04:40:07 AM Re: Does anyone has a script to clean up lost+found directory?
Posted: Nov 25, 2010 05:35:48 AM   in response to: Jirong_Hu in response to: Jirong_Hu's post Jirong_Hu wrote:
> I have a file in lost+found, can't be deleted. Can anyone help?

Your question here doesn't match your subject.
The FAQ for your one file problem is: ./-nc*

FAQ 1.1.1

The FAQ for your subject question is less simple, and less tidy:

FAQ 1.5.8

Marc


Posts: 280
Registered: Sep 04, 2008 05:41:32 PM Re: Does anyone has a script to clean up lost+found directory?
Posted: Nov 25, 2010 10:52:47 AM   in response to: 314 in response to: 314's post Hi Marc

Thanks a lot for your information. I was trying \.

Jirong

Help

Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular type of content or application that you're viewing.

My tags shows your tags for this particular type of content or application that you're viewing.

Use the search field to find all types of content in My developerWorks with that tag. Use the slider bar to see more or fewer tags. Popular tags shows the top tags for this particular type of content or application that you're viewing. My tags shows your tags for this particular type of content or application that you're viewing.MoreLess 
Point your RSS reader here for a feed of the latest messages in all forums

View the original article here