1843262 Members
5821 Online
110214 Solutions
New Discussion

Re: swcopy questions

 
SOLVED
Go to solution
yc_2
Regular Advisor

swcopy questions

Hi,

I have the following questions about swcopy:

1) I have a tape contains a few patches which I want to apply. How do I add one more patch into it ?

2) Why there is error when I performed scopy:
the syntax:
scopy -s [source_patch] PHXX_#### \* @ [dest_patch]

the error:
ERROR: "[hostname]:/tmp/ids_patches": An update to the installed
product database or depot catalog failed.
* The execution phase failed for "[hostname]:/tmp/ids_patches".
* Execution had errors



Thanks in advance,
YC
6 REPLIES 6
Mateja Bezjak
Respected Contributor
Solution

Re: swcopy questions

Hi,

To answer your first question. You can add another patch to the tape following this procedure:
1. swcopy -s tape_source \* @ /tmp/depot
2. swcopy -s patch_source \* @ /tmp/depot
3. Create tape by running swpackage:
swpackage -x media_type=tape -s /tmp/depot @ /tmp/tape

Regards,
Mateja
Mateja Bezjak
Respected Contributor

Re: swcopy questions

Hi,

Regarding your second question. Could you please post the INDEX file. You might be having problems with different layout versions. But to be sure, I need to see the INDEX.

Thanks. Regards,
Mateja
yc_2
Regular Advisor

Re: swcopy questions

Hi,

I have attached the INDEX file.

1) What does media_type=tape means ?

2) In the swpackage you mentioned, am I right the out put file is /tmp/tape.


Rgds,
YC
Mateja Bezjak
Respected Contributor

Re: swcopy questions

Hi,

1.media_type option defines the type of distribution to create. The recognized types are directory and tape. Without this option, swpackage creates a distribution directory (depot) by default. Thsi option applies only to swpackage.
2. Yes, the output is /tmp/tape.

I also checked your INDEX and I see no problems, not get the ERROR you mentioned

Regard,
Mateja
yc_2
Regular Advisor

Re: swcopy questions

Hi,

What to look for in the INDEX file if there is a problem ?
Mateja Bezjak
Respected Contributor

Re: swcopy questions

Hi,

I was looking for any problems that could be caused by different layout versions. These would be the two lines:
layout_version 1.0
data_model_revision 2.40

Having data_model_revison 2.10 could indicate that the layout version used was 0.8.
Usually swlist shows that there is something wrong with the INDEX file. If you see any warnings in the swlist output, that might be the indicator that there is something wrong with the INDEX file.

Regards,
Mateja