Operating System - HP-UX
1833707 Members
2551 Online
110063 Solutions
New Discussion

Problem with OS-Core and swlist

 
Scott White
New Member

Problem with OS-Core and swlist

When I run "swlist -a architecture -a architecture -l product OS-Core" on an HP-UX 10.20 server, I get the following:
# Initializing...
# Contacting target "m0012098"...
WARNING: Software "OS-Core" was not found on host "m0012098:/".

What gives? Something wrong with my index?

Thx
8 REPLIES 8
Sridhar Bhaskarla
Honored Contributor

Re: Problem with OS-Core and swlist

Hi,

Are you getting anything at all with swlist -l product command?.

If not, try uninstall and install some dummy product (some documentation, real simple product), it will rebuild the index.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Steven E. Protter
Exalted Contributor

Re: Problem with OS-Core and swlist

is swagent daemon running?

If not, you need to have an nssswtich.conf file to run it right.

HP-UX 11.11(11i) installs with three examples files but no actual nsswitch.conf, makes swinstall kind of tought to run. I'm sure there is a box you can check somewhere, but I didn't see it.

This applies to the Core OS March release.
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Armin Feller
Honored Contributor

Re: Problem with OS-Core and swlist

What happened if you run:

# swlist -a architecture -a architecture -l product | grep -i OS-Core

or

# swlist -l fileset | grep -i OS-Core

Kill and restart swagentd.

Regrads,
Armin
Armin Feller
Honored Contributor

Re: Problem with OS-Core and swlist

# swverify \*

and check the logfiles for errors.
Scott White
New Member

Re: Problem with OS-Core and swlist

Ok, did some of the suggestions and found:
1) swagentd is up and running
2) swlist -a architecture -l product does return information for other products and patches
3) I ran swverify \* and looked in the log file and found the following problems:
NOTE: Cannot read from the file "//var/adm/sw/products/HPUXEngCR800/pfiles/INDEX": No such file or directory (2).
NOTE: Cannot read from the file "//var/adm/sw/products/OS-Core/pfiles/INDEX": No such file or directory (2).
NOTE: Cannot read from the file "//var/adm/sw/products/JournalFS/pfiles/INDEX": No such file or directory (2).

So IU'm missing some INDEX files.

If I can't restore the INDEX files from backups, is there anyway to re-produce them?

thanks again.
Armin Feller
Honored Contributor

Re: Problem with OS-Core and swlist

Yes, you can.

Please move the INDEX file out of the way and install something, e.g. PHCO_20261 (no reboot), that will re-create the INDEX file and that should fix the problem.

Patch can be downloaded by:

ftp://europe-ffs.external.hp.com
---> hp-ux_patches
---> S700_800
---> 10.x

Regards,
Armin
Armin Feller
Honored Contributor

Re: Problem with OS-Core and swlist

But I think there is more trouble on the system ;-( Normaly you have to re-install the filesets with the missing INDEX after recreating the main INDEX file in /var/adm/sw/product/

- /var/adm/sw/products/HPUXEngCR800/pfiles/INDEX
- /var/adm/sw/products/OS-Core/pfiles/INDEX
- /var/adm/sw/products/JournalFS/pfiles/INDEX

Perhaps an swmodify can help, please see man page.

Regards,
Armin
Armin Feller
Honored Contributor

Re: Problem with OS-Core and swlist

Please have also a look in the KnowledgeDatabase in the ITRC:

http://www4.itrc.hp.com/service/cki/enterService.do

and search for following doc: A4659120

That will explain "How to rebuild index for swinstall (unsupported script)"

Good luck!!!

Marry Xmas and happy new year.

Regards,
Armin