Operating System - HP-UX
1832373 Members
2863 Online
110041 Solutions
New Discussion

Installed Software - swlist

 
SOLVED
Go to solution
GBR
Regular Advisor

Installed Software - swlist

I ran the (swlist, swlist -i) command on my HP-UX 11.11 box and it returned just one bundle. This is weird because I know there is tons of software installed on this system. Anyone know why this might be happening?
10 REPLIES 10
James R. Ferguson
Acclaimed Contributor

Re: Installed Software - swlist

Hi Greg:

One (horrible) thing comes to mind --- I hope that no one ever managed to reclaim space in '/var' by diffling with the contents of '/var/adm/sw'. This directory is the IPD (Installed Products Database) and should be managed by 'cleanup'.

Regards!

...JRF...
spex
Honored Contributor

Re: Installed Software - swlist

Greg,

What does /var/adm/sw/products look like?

PCS
Sung Oh
Respected Contributor

Re: Installed Software - swlist

Hi Greg,

Try using "swlist -l bundle"

Regards,
Sung
GBR
Regular Advisor

Re: Installed Software - swlist

JRF, that's exactly what happened. Darn.

spex, very empty... 4 results when I do an "ll".

Sung Oh, "swlist -l bundle" returns one result.
GBR
Regular Advisor

Re: Installed Software - swlist

Is there a way to regenerate some or all of the IPD?
Torsten.
Acclaimed Contributor
Solution

Re: Installed Software - swlist

If your sw database is really gone, you need to restore a good known ignite backup (full OS, not only the database). Otherwise you are inconsistent and lost. A proper OS patching is no longer possible.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Torsten.
Acclaimed Contributor

Re: Installed Software - swlist

You should consider to *remove* the admin too.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
f. halili
Trusted Contributor

Re: Installed Software - swlist

if "/var/adm/sw" was removed recently, and you have not done any patch work from that time. You can restore /var/adm/sw/save from your tape backup.

cheers,
f. halili
derekh
James R. Ferguson
Acclaimed Contributor

Re: Installed Software - swlist

Hi (again) Greg:

If you have destroyed part of '/var/adm/sw' you have a server that cannot be patched!

I would urge you to restore '/var/adm/sw' from a backup (Ignite, included), *or* to rebuild your server form an Ignite backup.

Regards!

...JRF...
GBR
Regular Advisor

Re: Installed Software - swlist

Thanks for all of your input.

I will be reinstalling the OS in the near future. The current state of this server is a mess.