Operating System - HP-UX
1757016 Members
2162 Online
108858 Solutions
New Discussion юеВ

Re: swremove -Can't remove software because of missing files in /var/adm/sw/products

 
SOLVED
Go to solution
RobinKing
Valued Contributor

swremove -Can't remove software because of missing files in /var/adm/sw/products

I'm trying to remove a piece of software:

(root)/> swlist -l product | grep -i fnsw
fnsw FN.4.1.1.126 FileNET IS Software
fnsw FN.4.0.40.129 FileNET IS Software

(root)/> swremove fnsw,r=FN.4.1.1.126

======= 05/14/10 10:33:53 BST BEGIN swremove SESSION
(non-interactive) (jobid=host-0053)

* Session started for user "root@u01pmd02".

* Beginning Selection
* Target connection succeeded for "host:/".
* Software selections:
fnsw.ar,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.au,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.b2,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.br,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.bs,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.c2,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.cb,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.cs,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.ct,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.db,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.dg,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.dm,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.ds,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.ev,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.fl,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.fp,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.fs,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.gb,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.gu,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.gv,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.he,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.is,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.kd,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.lf,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.lm,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.mk,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.mv,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.nc,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.nl,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.nm,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.nv,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.or,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.os,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.pa,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.pi,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.pl,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.pm,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.pr,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.pv,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.release,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.sa,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.se,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.sf,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.sk,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.sq,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.su,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.tt,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.wq,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.xc,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.xs,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
fnsw.xv,l=/,r=FN.4.1.1.126,a=HP-UX_B.11.00_32/64
* Selection succeeded.


* Beginning Analysis
* Session selections have been saved in the file
"/.sw/sessions/swremove.last".
ERROR: "host:/": This target agent cannot access the source.
Make sure the source depot is registered if it is remote from
the target or if you are non-superuser. Also ensure you have
read permission for the products on the source, the source is
not being updated, and swagentd is running on the source host.
The target agent logfile will contain precise failure
information; it is referenced below.
* The analysis phase failed for "host:/".
* Analysis had errors.


NOTE: More information may be found in the agent logfile using the
command "swjob -a log u01pmd02-0053 @ host:/".

======= 05/14/10 10:33:57 BST END swremove SESSION (non-interactive)
(jobid=u01pmd02-0053)

(root)/> swjob -a log u01pmd02-0053 @ host:/
======= 05/14/10 10:33:54 BST BEGIN remove AGENT SESSION (pid=6052)
(jobid=u01pmd02-0053)

* Agent session started for user
"root@host.allianzcornhill.co.uk". (pid=6052)

* Beginning Analysis Phase.
* Target: host:/
* Target logfile: host:/var/adm/sw/swagent.log
* Reading source for file information.
ERROR: File "/var/adm/sw/products/fnsw.2/ar/INFO" does not exist.
ERROR: The catalog files for product "fnsw,l=/,r=FN.4.1.1.126" failed
to load. Check the above output for details.
ERROR: Cannot continue the Analysis Phase until the previous errors
are corrected.

======= 05/14/10 10:33:57 BST END remove AGENT SESSION (Cancelled)
(pid=6052) (jobid=host-0053)


It seems the contents of /var/adm/sw/products/fnsw.2 have been deleted, and unfortunately restoring these files isn't an option.

How can I remove this software? Can I manually remove the config from swinstall?

Thanks
4 REPLIES 4
Dennis Handly
Acclaimed Contributor
Solution

Re: swremove -Can't remove software because of missing files in /var/adm/sw/products

>ERROR: File "/var/adm/sw/products/fnsw.2/ar/INFO" does not exist.

Do you know why that file isn't there? Did you fiddle with the IPD? Are there other directories/files missing under fnsw.2 and fnsw?

You can use "swmodify -u" to remove entries but that won't clean things up.
You should take an ignite backup before more fiddling.

rariasn
Honored Contributor

Re: swremove -Can't remove software because of missing files in /var/adm/sw/products

Hi,


remove fnsw FN.4.0.40.129
reinstall fnsw FN.4.1.1.126


rgs,

rariasn
Honored Contributor

Re: swremove -Can't remove software because of missing files in /var/adm/sw/products

Hi,

remove fnsw FN.4.0.40.129
reinstall fnsw FN.4.1.1.126
remove FN.4.1.1.126
install FN.4.0.40.129


Search for IPD rebuild

rgs,

RobinKing
Valued Contributor

Re: swremove -Can't remove software because of missing files in /var/adm/sw/products

Thanks Dennis...