1830862 Members
2658 Online
110017 Solutions
New Discussion

Re: swmodify new fileset

 
Duncan Galbraith
Frequent Advisor

swmodify new fileset

Hi,
I want to add a fileset to an existing installed product using swmodify in HP-UX11.00. I can create my own psf and have tried this but I always seem to end up with a new product containing the fileset that I wanted to appear in my existing one. Has anyone done this before ?
Thanks,
Duncan
7 REPLIES 7
Vincent Stedema
Esteemed Contributor

Re: swmodify new fileset

Hi Duncan,

I haven't done this myself either, but I conclude after reading the man page (man 4 swpackage) that the directives you need to use are "ancestor" and "is_sparse".

Basically, you need to setup a PSF for your fileset and then specify the base product in the "ancestor" field, i.e. "MyProd.Commands". The "is_sparse" needs to be set to "true", because this tells SD-UX that this PSF is merely a subset of the "ancestor" and not a complete product by itself.

Hope this helps.

Regards,

Vincent
Duncan Galbraith
Frequent Advisor

Re: swmodify new fileset

Thanks, but I've tried ancestor, is_sparse, subproduct and so far it just gives me a new product even though my product spec is exactly the same as my existing product. It just creates a new instance of it.
Also tried '-x software=prod,r=## on the command line.
Surely this is a really simple thing to do is it not ?

Thanks again; Duncan
Vincent Stedema
Esteemed Contributor

Re: swmodify new fileset

Hi Duncan,

Could you please post the PSF file and the complete swmodify command that you use.

Regards,

Vincent
Duncan Galbraith
Frequent Advisor

Re: swmodify new fileset

Vincent,

Here is one of the psf's I tried. It creates a new product when I don't want it to. Apart from that when I try:
swremove itmsc.dacs_sw
I get:
"ERROR: "elmer:/": Could not allocate memory for the agent, daemon or PC controller serving this operation."
and I cannot remove it. I can still remove other software though so there is nothing wrong with sd-ux itself.

I'm starting to think that the swmodify part of sd-ux is rather hopeless. It does not seem able to do any of what I would consider simple things it appears to be designed for, eg It cannot even cope with a full s/w spec to select software - not exactly compatible with the other sd-ux commands!

Duncan

Re: swmodify new fileset

Hi Duncan,

I just tried out and seems like it is working.

What you need to do is :

1. Create a PSF file, with the product definition (the 'tag' and 'revision') exactly same as the installed product on which you want add the new file set.
2. Define the fileset under this product and give it the same revision as the installed on your box and then specify all the files which need to go into the fileset.

3. Finally run "swmodify -s "

Note that the above command issues warnings about already installed filesets, the warning looks something like this :

WARNING: The fileset "." exists in the target "/", but it is not a part of the product as defined in the source "
Fileset "." should be removed from the target.

I did'nt yet study the consequences of this warning. But I think this should not effect the current installed products functionality.

I hope this helps you solve the problem. Also be sure you have a backup of the existing product in case ;)

Bye,
Raghu.
Unix is not for those who donot love Unix!
Duncan Galbraith
Frequent Advisor

Re: swmodify new fileset

Thanks Raghu.
This is pretty much what I did. However the product I'm trying to add a fileset to has a 'directory' setting other than '/' and so far it seems that swmodify cannot cope with a directory spec (translated into location for installed s/w). I'm now working on creating the psf and packaging it before installing it from a tmp depot. A long way round I know, but if it works then I'll be happy.

Duncan
Mateja Bezjak
Respected Contributor

Re: swmodify new fileset

Hi Duncan,

If I understand correctly, you are trying to add a fileset to the product installed on /tmp directory.

You can do that by running swmodify command, like Raghu suggested. You only need to specify the location of the product:

swmodify -s psf.file product_name @ /tmp

More information on using swmodify command can also be found in man pages (man swmodify).

Regards,
Mateja