Operating System - HP-UX
1834646 Members
2102 Online
110069 Solutions
New Discussion

HP-UX 11.11 patch installations (failing)

 
Gene Matthews_2
Occasional Advisor

HP-UX 11.11 patch installations (failing)

Hi all,

I am trying to install two patches on an 11.11 box (9000/800/N4000-44). I didn't install this box, it is stand alone at the moment. Only put online to ftp patches down.

I'm trying to use swinstall to install the patch depot but I keep getting permsision related errors (telling me to use swacl). I'm doing this as root.

Is there something else I need to do first. My HP-UX is a little rusty, but with 10.20 and 11.00 recall being able to just download a patch, and fire swinstall up and away it goes.

I've done some searching but not coming up with much. Any/all pointers, suggestions, doc, is most appreciated.

Thanks,

Gene
6 REPLIES 6
Marco Santerre
Honored Contributor

Re: HP-UX 11.11 patch installations (failing)

I'd like to have more info as to what you are being able to do exactly. I mean, are you trying to do this with the GUI? can you load it? can you source the depot?

I remember having swacl errors in the past and most of them being fixed by simply restarting the swagentd daemon

swagentd -r
Cooperation is doing with a smile what you have to do anyhow.
Alex Glennie
Honored Contributor

Re: HP-UX 11.11 patch installations (failing)

it would be useful to see the actual errors + a few extra details but :

general perm issues can normally be resolved by the following actions :

Login as root


Move the directory /var/adm/sw/security and its contents to /var/adm/sw/security.old

mv /var/adm/sw/security /var/adm/sw/security.old


Make an new /var/adm/sw/security directory

mkdir /var/adm/sw/security


Change the owner of the /var/adm/sw/security directory

chown bin:bin security
Change the mode of the /var/adm/sw/security directory

chmod 755 security


If installing from a cdrom unmount the cd.

umount /cdrom


Change the mode of the cdrom mount direcotry.

chmod 777 /cdrom


Stop the swagentd daemon.

/sbin/init.d/swagentd stop

NOTE: Execute this command on both local and remote machines, if applicable.


Restart the swagentd daemon.

/sbin/init.d/swagentd start

NOTE: Execute this command on both local and remote machines, if applicable.


Register the source as a depot:
If the file is on the local machine:

swreg -l depot /tmp/PHxx_yyyy.depot


If the cdrom is on local machine:

swreg -l depot /cdrom
If the cdrom is on remote machine:

swreg -l depot @ "hostname":/cdrom


If installing from a cdrom remount the cd.

mount /cdrom


Now re-install the software. swinstall

BUT !!!!!

At HP-UX 11i, there is new functionality that could also result in this
error message.

At 11i multiple targets can be managed from a single server for remote
operations. If remote operations is enabled, then each of the remote targets
and the desired depots will have to be added so that there is access to them.
The user interface will automatically come up asking you to choose the target
if the /var/adm/sw/.sdkey file exists. If this file exists and there
are no targets added to the server, this problem can happen. The solution
would be to either add the desired targets and depots or remove the
/var/adm/sw/.sdkey file. The file could either be manually created or it could
be created by the Service Control Manager product.

More information can be found in the Remote Operation section of
the swinstall man page.

Pete Randall
Outstanding Contributor

Re: HP-UX 11.11 patch installations (failing)

Gene,

Here's a couple of thoughts:

First, try stopping and restarting the swagentd -
/sbin/init.d/swagent stop
/sbin/init.d/swagent start

Second, it might be a host name resolution issue. Does the hostname command come up with the correct name? How about nslookup?

Pete

Pete
Gene Matthews_2
Occasional Advisor

Re: HP-UX 11.11 patch installations (failing)

I won't have a chance to be back on this system until in the morning. I will try the suggestions made so far and post back the results.

Thanks,

Gene
John Payne_2
Honored Contributor

Re: HP-UX 11.11 patch installations (failing)

Also, short of doing a whole bunch of involved stuff, (I would restart the agent..) Are you logged in directly as root, or did you su to root? I have seen this occasionally cause the swacl errors...

Hope it helps

John
Spoon!!!!
Gene Matthews_2
Occasional Advisor

Re: HP-UX 11.11 patch installations (failing)

Thanks for the suggestions. I was not successful with any of them, however. I ended up just doing a fresh install of 11i and all seems well.

I have another problem but will start a new thread (can't get the N4000 to recognize the FC60 array).

Thanks,

Gene