Operating System - HP-UX
1752866 Members
3993 Online
108791 Solutions
New Discussion юеВ

swlist = Incomplete definition for the root (installation) "/",

 
avizen9
Esteemed Contributor

swlist = Incomplete definition for the root (installation) "/",

Dear Friends,
i am getting belwo error when i am trying swinstall or swlist command on hpux 10.20

please help me if somebody got any clue. thanks in advance.
root@xtester adm/sw # swlist
# Initializing...
# Contacting target "xtester"...
WARNING: Incomplete definition for the root (installation) "/",
beginning at line 0. The following attributes are not
defined:
products the products contained in the root
ERROR: The depot "xtester:/" exists but is currently empty.
9 REPLIES 9
Shomsa
New Member

Re: swlist = Incomplete definition for the root (installation) "/",

Hi,

The error is for swlist also means ,check swagentd is running. Then try for a restart swagentd -r.
avizen9
Esteemed Contributor

Re: swlist = Incomplete definition for the root (installation) "/",

i have already checked before post this problem here, swagentd already running
Robert-Jan Goossens
Honored Contributor

Re: swlist = Incomplete definition for the root (installation) "/",

Hi,

Sounds like someone removed the complete /var/adm/sw/products directory or there is a corruption in the index database. Could you check if the /var/adm/sw/products still hold the info of the installed packages?

regards,
Robert-Jan
avizen9
Esteemed Contributor

Re: swlist = Incomplete definition for the root (installation) "/",

HI
/var/adm/sw/products already there, and there is no problem with it i can see all patch and other info inside that directory, any other clue?

this may cause to apply any patches there?
Robert-Jan Goossens
Honored Contributor

Re: swlist = Incomplete definition for the root (installation) "/",

I would first check the name resolution on your server.

# nslookup xtester
# nslookup ip_of_xtester

should both give the same output.

If the name resolution is correct, try to restart the swagentd

# /sbin/init.d/swagentd stop
# /sbin/init.d/swagentd start

If this does not solve your problem, you might have a corrupt index file.

Regards,
Robert-Jan
avizen9
Esteemed Contributor

Re: swlist = Incomplete definition for the root (installation) "/",

HI
nslookup out put is same with both command, i already restart the swagentd, that will not help here.
what do you mean index file corrupted, can we restore this file and can repair anyway?
Robert-Jan Goossens
Honored Contributor

Re: swlist = Incomplete definition for the root (installation) "/",

Yes if you are sure no one removed part of the /var/adm/sw directory, you can create a new INDEX file.

As root
# cd /var/adm/sw/products
# mv /var/adm/sw/products/INDEX /tmp

Create a file called void.psf in the /tmp directory:
# vi /tmp/void.psf
product
tag void
fileset
tag void

Create a package void:

# swpackage -s /tmp/void.psf

Install void and generate a new INDEX file:

# swinstall void

# swlist -l product

Remove the void product

# swremove void
# rm void.psf
# swremove -d void

Robert-Jan
avizen9
Esteemed Contributor

Re: swlist = Incomplete definition for the root (installation) "/",

hello robert
its great,
working fine now...
thanks you very much :)
Robert-Jan Goossens
Honored Contributor

Re: swlist = Incomplete definition for the root (installation) "/",

Avizen9,

You can thank me by assigning points :)

Good luck!
Robert-Jan