1830520 Members
2939 Online
110006 Solutions
New Discussion

swconfig problem

 
SOLVED
Go to solution
George Liu_2
Frequent Advisor

swconfig problem

swconfig failed.
* Session started for user "root@aaa".

* Beginning Selection
* Target connection succeeded for "aaa:/".
WARNING: Invalid value defined for the keyword "state", at line 7877.
Valid values for this keyword are: One of the following
strings:

transient corrupt available installed configured

WARNING: Incomplete definition for the fileset "STAR-SHLIBS", beginning
at line 7856. The following attributes are not defined:
state the current state (status) of the fileset
WARNING: Incomplete definition for the product "Contrib-Tools",
beginning at line 9907. The following attributes are not
defined:
filesets the filesets contained in the product
ERROR: Could not apply the software selection
"PHKL_10355.PHKL_10355,l=/,r=B.10.00.00.AA,a=HP-UX_B.10.20_800,v=HP";
it is not available from depot or root "aaa:/".
* Software selection failed for "aaa:/".
ERROR: Could not apply the software selection
"PHKL_11533.PHKL_11533,l=/,r=B.10.00.00.AA,a=HP-UX_B.10.20_800,v=HP";
it is not available from depot or root "aaa:/".
* Software selection failed for "aaa:/".
ERROR: Could not apply the software selection
"PHKL_12096.PHKL_12096,l=/,r=B.10.00.00.AA,a=HP-UX_B.10.20_800,v=HP";
it is not available from depot or root "aaa:/".
* Software selection failed for "aaa:/".
ERROR: Could not apply the software selection
"PHKL_15062.PHKL_15062,l=/,r=B.10.00.00.AA,a=HP-UX_B.10.20_800,v=HP";
it is not available from depot or root "aaa:/".
* Software selection failed for "aaa:/".

Thanks.
3 REPLIES 3
Jeff Schussele
Honored Contributor
Solution

Re: swconfig problem

Hi George,

Appears that you have a corrupted IPD (Installed Products Database). This can frequently be resolved by rebuilding a new IPD, by essentially creating a null SW pkg & installing & removing it.
Do the following:

# cd /var/adm/sw/products
# mv INDEX INDEX.bad
# cd /tmp
# vi void.psf
product
tag void
fileset
tag void
:wq!
# swpackage -s /tmp/void.psf
# swinstall void
# swremove void
# rm void.psf
# swremove -d void

Then you should check the state of all patches.

swlist -l patch -a state > /tmp/patch_state.txt

Check that file for anything not configured, superseded or committed.

Rgds,
Jeff

PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
George Liu_2
Frequent Advisor

Re: swconfig problem

Jeff,

Thank you very much. Is any way to tell INDEX is good or bad?
Another question: how can set targets? is targets the depot or the directory of the depot? Thank you again.
:-) George
Jeff Schussele
Honored Contributor

Re: swconfig problem

Hi,

If the IPD is corrupt, you'll have trouble with just about all the swxxxxx commands - swlist, swinstall, swconfig, swverify.......

As to target...the target for a sw command is the root filesystem that you wish to install/copy/list/verify, etc. on the destination system. That's why you have to designate the entire path or the host or both
EX:
/var/spool/sw OR
@ host1 OR
@ host1:/var/spool/sw

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!