Operating System - HP-UX
1748086 Members
4999 Online
108758 Solutions
New Discussion юеВ

Re: The trouble with patching :-(

 
SOLVED
Go to solution
The Gunners
Regular Advisor

The trouble with patching :-(

Hey All , just looking for a 'second pair of eyes' on this one please (Im a novice at patching but I thought I'd got the command right) but obviously not. I downloaded the patch to a file system called /scratch , extracted it and ran following. Thanks in advance

dubhptst:scratch # swinstall -x autoreboot=true -x patch_match_target=true \ -s /scratch/PHSS_36086.depot

======= 08/10/09 13:31:43 BST BEGIN swinstall SESSION
(non-interactive) (jobid=dubhptst-0075)

* Session started for user "root@dubhptst".

* Beginning Selection
* Target connection succeeded for "dubhptst:/".
ERROR: There is currently no depot software on host "dubhptst" at
location "/var/spool/sw". Make sure that an absolute pathname
is specified for location (beginning with "/").
* Source connection failed for "dubhptst:/var/spool/sw".
WARNING: More information may be found in the daemon logfile on this
target (default location is
dubhptst:/var/adm/sw/swagentd.log).
* Selection had errors.



======= 08/10/09 13:31:44 BST END swinstall SESSION (non-interactive)
(jobid=dubhptst-0075)
14 REPLIES 14

Re: The trouble with patching :-(

You might want to try...

swinstall -x autoreboot=true -x patch_match_target=true -s dubhptst:/scratch/PHSS_36086.depot

HTH

Duncan


I am an HPE Employee
Accept or Kudo
Ganesan R
Honored Contributor

Re: The trouble with patching :-(

Hi,

First run this command.
#swlist -d @/scratch/PHSS_36086.depot

The above command should list the product/patch available on the depot. Then register the depot using this command.

#swreg -l depot /scratch/PHSS_36086.depot

Now run this command.

#swinstall -x autoreboot=true -x patch_match_target=true \ -s /scratch/PHSS_36086.depot \*


Best wishes,

Ganesh.
The Gunners
Regular Advisor

Re: The trouble with patching :-(

Hi There Duncan,
Hmmm , tried that and no joy , I also set permissions on file and directory to 777 (just in case that was causing issue) and file is located in the correct area as below as well so dont understand.

dubhptst: # swinstall -x autoreboot=true -x patch_match_target=true -s dubhptst:/scratch/PHSS_36086.depot

======= 08/10/09 14:42:00 BST BEGIN swinstall SESSION
(non-interactive) (jobid=dubhptst-0077)

* Session started for user "root@dubhptst".

* Beginning Selection
* Target connection succeeded for "dubhptst:/".
NOTE: The patch match operation failed to find patches for target
software on "dubhptst" which passed the filter.
NOTE: Cannot continue the "swinstall" task.

======= 08/10/09 14:42:02 BST END swinstall SESSION (non-interactive)
(jobid=dubhptst-0077)

dubhptst: # ls -al /scratch/PHSS_36086.depot
-rwxrwxrwx 1 root sys 7086080 May 4 2007 /scratch/PHSS_36086.depot
dubhptst: #
Ganesan R
Honored Contributor

Re: The trouble with patching :-(

Hi Again,

If you find any difficulties using command line, You could try with interactive session. Just run this..

#swinstall -s /scratch/PHSS_36086.depot

or

#swinstall

It will open up a user interface. Select these details.
Source Depot Type: [ Local Directory ]
[ Source Host Name... ] hostname
[ Source Depot Path... ] /scratch/PHSS_36086.depot

Give OK. It will list the patch. select the patch then goto actions in the menu ->
mark for install -> again actions in the menu -> select Install


Best wishes,

Ganesh.

Re: The trouble with patching :-(

The patch in question is for one of the following products:

C-ANSI-C B.11.11.16
C-ANSI-C B.11.11.14
C-ANSI-C B.11.11.12
C-ANSI-C B.11.11.10


Do you *have* one of those products on your system?

swlist -l product C-ANSI-C


HTH

Duncan

I am an HPE Employee
Accept or Kudo
James R. Ferguson
Acclaimed Contributor

Re: The trouble with patching :-(

Hi Davey:

The patch you are trying to install applies to one of four possible products:

C-ANSI-C B.11.11.16
C-ANSI-C B.11.11.14
C-ANSI-C B.11.11.12
C-ANSI-C B.11.11.10

Do you have anyone of those products on your server? If not, then this is the reason for the failure. Don't forget to look at the 'swagentd.log' file for details.

Also do:

# swlist -l product |grep C-ANSI-C

Regards!

...JRF...
Tingli
Esteemed Contributor

Re: The trouble with patching :-(

Is it possible the original command is separated in the wrong place. So, the command should be:
dubhptst:scratch # swinstall -x autoreboot=true -x patch_match_target=true \
-s /scratch/PHSS_36086.depot

Instead of the putting \ -s to the first line.
The Gunners
Regular Advisor

Re: The trouble with patching :-(

Hi All,
Hmmm , yes I just issued the command

swlist -l product C-ANSI-C

# Initializing...
# Contacting target "dubhptst"...
ERROR: Software "C-ANSI-C" was not found on host "dubhptst:/".
dubhptst: #

Funny enough Oracle10g pre req and checking requiremnets indicate I need the patch for install - I wonder might I get away with it as we may not need the above.
Could that be a problem ? I was thinking that the error looked more related to a synthax problem on my part , for example if the patch was a different one altogether and I used the above command would it still fail. Will try a few more of the suggestions above , and post output.
Tingli
Esteemed Contributor

Re: The trouble with patching :-(

If my memory servers me right. The request for patches from Oracle is out of date. And the oracle should still runs fine without those patches unless you need to compile some c programs in it. And tell the dba that they can still install Oracle without by ignoring those messages.