Operating System - HP-UX
1834462 Members
3350 Online
110067 Solutions
New Discussion

swlist "state" attribute option

 
SOLVED
Go to solution
Stefano_1
Frequent Advisor

swlist "state" attribute option

Hi all,
If I type the command:

swlist -l fileset -a state |grep PHKL

which is the difference between a fileset in "installed" state and a fileset in "configured" state?
6 REPLIES 6
Robin Wakefield
Honored Contributor

Re: swlist "state" attribute option

Hi,

Basically if it's not showing "Configured", then the entire install process did not complete, i.e. the swconfig either did not run or failed to run for some reason, e.g. the machine was not rebooted after a kernel patch install.

Have a look in the /var/adm/sw/*.log files to try & see why the config phase did not complete.

Rgds, Robin.
Stefano_1
Frequent Advisor

Re: swlist "state" attribute option

In fact you are right.
In the /var/adm/sw/swagent.log
there are several error relative to the dependencies.
At the boot of the server a script (/sbin/rc2.d/S120swconfig)try to finish the installation of the fileset it find listed in a file (/var/adm/sw/needs_config), but it doesn't find the dependencies.
Is it possible to modify the script (or manually use a command from command line...)to install the fileset putting the enforce_dependencies=false??
thanks for your help
Steve Steel
Honored Contributor

Re: swlist "state" attribute option

Hi

Normally I would say that you should solve the dependencies problems because they are requested for a reason.

However try

swconfig \* (note the \ )

This will try to clean up the installed.

Then swlist again to check


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Bill McNAMARA_1
Honored Contributor

Re: swlist "state" attribute option

have a look in /var/adm/sw/needs_config

to determine which filesets need manual swconfig'uring.

This is normally done on reboot.

Later,
Bill
It works for me (tm)
Mateja Bezjak
Respected Contributor
Solution

Re: swlist "state" attribute option

swconfig command transitions software between installed and configured states. Software is automatically configured as part of the swinstall.

If the initial configuration by swinstall of the patch failed, then the software must be configured. You will need to run
swconfig PHKLxxxxx.

A patch installation can result in an installed state if for example you use option -x allow_incompatible=true

More information about swconfig command is under man pages (man swconfig).

Regards,
Mateja
Steve Steel
Honored Contributor

Re: swlist "state" attribute option

Hi


swconfig \* is a way to remove all installed references in 1 command.


Steve
If you want truly to understand something, try to change it. (Kurt Lewin)