Operating System - HP-UX
1753366 Members
5846 Online
108792 Solutions
New Discussion юеВ

HP-UX.B.10.20 - Can't find sw depot at \ anymore

 
SOLVED
Go to solution
Betty Fessler
Frequent Advisor

HP-UX.B.10.20 - Can't find sw depot at \ anymore

Sam swinstall/swlist etc not working because
the system no longer knows where the / sw depot is. What do I need to restore from backup to fix this so I can use the command
swlist. Is this the sw?.log files in /var/adm/sw? Is there anything I have to do to bring them back up todate if software has been installed since they were missing?

Thx
9 REPLIES 9
Jeff Schussele
Honored Contributor

Re: HP-UX.B.10.20 - Can't find sw depot at \ anymore

Hi Betty,

This can happen if the swagentd daemon gets corrupted. Try running

/usr/sbin/swagentd -r

to restart the daemon & then retry your swlist command.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Rick Garland
Honored Contributor

Re: HP-UX.B.10.20 - Can't find sw depot at \ anymore

swagent -r will reset the daemon.
Also, do you have a depot at / ? Not the best place to keep a depot, by default it is /var/adm/sw. You can make others anywhere you like. To see a list of available depots use the following command:
swlist -l depot
The output will tell you what depots exist that are registered
Betty Fessler
Frequent Advisor

Re: HP-UX.B.10.20 - Can't find sw depot at \ anymore

# /usr/sbin/swagentd -r
# swlist -a revision -l fileset | grep 15423
ERROR: The expected depot or root does not exist at "/".
ERROR: There is currently no installed software on host "genesis" at
location "/". (Note that you need to use "swlist -d" to
manage depot software).
Rick Garland
Honored Contributor

Re: HP-UX.B.10.20 - Can't find sw depot at \ anymore

From the output you posted, it appears you have no depots defined. You can use the swreg command to register a depot.
Rick Garland
Honored Contributor

Re: HP-UX.B.10.20 - Can't find sw depot at \ anymore

What is "swlist -l depot" returning?
Rick Garland
Honored Contributor

Re: HP-UX.B.10.20 - Can't find sw depot at \ anymore

Just occurred to me. Do you have multiple instances of the swagentd -r process running? If so kill them off and start the swagent -r so you only have one instance of this process.
Jeff Schussele
Honored Contributor
Solution

Re: HP-UX.B.10.20 - Can't find sw depot at \ anymore

OK - it's possible that you IPD (Installed Products DB) has become corrupted.
Does the time & size of /var/adm/sw/products/INDEX look normal - i.e. it's fairly large - not 0 or small - and the date/time stamp equal to the date/time of last swinstall or swremove?

Either way here's how to clean it up:
cd /var/adm/sw/products
mv INDEX INDEX.orig
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

This creates a dummy pkg & during it's install the IPD will be rebuilt.

HTH,
Jeff



PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Betty Fessler
Frequent Advisor

Re: HP-UX.B.10.20 - Can't find sw depot at \ anymore

Well, I just found out that we lost the disk that had the depot on it and they were hoping that they didn't have to replace it, so it appears we'll be doing a replacement and restore soon. Thanks for everyones help.
Does anyone know if we have to have all the logs I mentioned present or will it auto create them when it works again? should I run a swverify command when we're done?

Thx
Betty Fessler
Frequent Advisor

Re: HP-UX.B.10.20 - Can't find sw depot at \ anymore

Thanks, the INDEX was missing entirely, it disappeared at the same time the logs did.
Someone did some housekeeping that shouldn't of happened.