Operating System - HP-UX
1832085 Members
2725 Online
110037 Solutions
New Discussion

swlist problem "There is currently no installed software on host "

 
SOLVED
Go to solution
gr8
Advisor

swlist problem "There is currently no installed software on host "

Hi gurus ,
iam getting the following error when iam doing a swlist on my hpux 11.11 server
-bash-3.00$ sudo swlist
Password:
# Initializing...
# Contacting target "spicy"...
ERROR: The expected depot or root does not exist at "/".
ERROR: There is currently no installed software on host "spicy" at
location "/".
-bash-3.00$


i checked /var/adm/sw/products folder and it exists
iam also able to resolve hostname using nslookup
one thing i noticed is that there is no defaults file in /var/adm/sw but not sure whether this will have any impact on the issue
9 REPLIES 9
Adam W.
Valued Contributor

Re: swlist problem "There is currently no installed software on host "

Have you recently pushed an ignite tape? Seems to be common with ignite. Check these out.

https://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1087011



http://www.tek-tips.com/viewthread.cfm?qid=1338504&page=5


There are two types of people in the world, Marines and those who wish they were.
gr8
Advisor

Re: swlist problem "There is currently no installed software on host "

Hi ,
i havn't done any ignite restore on the system.and i can see the products in /var/adm/sw/products
Jaime Bolanos Rojas.
Honored Contributor

Re: swlist problem "There is currently no installed software on host "

gr8

There are a lot of chances that your INDEX file is corrupted, first please backup your your existing configuration, then execute those steps to regenerate the INDEX file:

# 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

That should do the trick.

Regards,

Jaime.

Work hard when the need comes out.
Ganesan R
Honored Contributor

Re: swlist problem "There is currently no installed software on host "

Hi,

I also agree with Jaime. It looks your INDEX file corrupts. Try regenerating the INDEX file. However try to restart swagentd once before regenerating INDEX file.

Best wishes,

Ganesh.
gr8
Advisor

Re: swlist problem "There is currently no installed software on host "

Jaime
seems like iam missing an INDEX file
-bash-3.00$ sudo ls -ld /var/adm/sw/products/INDEX
/var/adm/sw/products/INDEX not found

I will try creating one as per your procedure .Thanks for the hint
Ganesan R
Honored Contributor
Solution

Re: swlist problem "There is currently no installed software on host "

Hi,

You can restore this INDEX file from your recent backup and not installed any product since your last backup.

Best wishes,

Ganesh.
Adam W.
Valued Contributor

Re: swlist problem "There is currently no installed software on host "

Wow, if it is nonexistent you can restore from backup, or if you have a mirrored server you can copy it from another system.
There are two types of people in the world, Marines and those who wish they were.
Steven E. Protter
Exalted Contributor

Re: swlist problem "There is currently no installed software on host "

Shalom,

1) You can not run swlist or any sd/ux product with the bash shell. You need to use posix or korn shell.

2) If I am wrong about item 1, your sd/ux database has been clobbered or you are pointing to an invalid location.

http://docs.hp.com/en/B2355-90154/index.html
http://docs.hp.com/en/B2355-90154/B2355-90154.pdf

This is a potentially serious problem that I have never faced.

3) /sbin/init.d/swagentd -r
4) Make sure you have a valid /etc/nsswtich.conf file there are several templates in /etc but none is installed by default.

SEP
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
gr8
Advisor

Re: swlist problem "There is currently no installed software on host "

Hi all,
we restored the entire /var/adm/sw folder .Since INDEX file was not missing , it was zipped accedently and there were some more file whcih got zipped .and the situation was unclear ,we just restored full directory tree and the SDUX is functional again

!!!Thanks to you all and VERITAS NETBACKUP !!!!