Operating System - HP-UX
1833875 Members
2364 Online
110063 Solutions
New Discussion

Install of Patch using swinstall

 
SOLVED
Go to solution
Don Curtis_1
Advisor

Install of Patch using swinstall

I am attempting to install patch phco_21187 (SAM) from the Support Plus CD using swinstall. There seem to be 3 dirs on the cd that swinstall recognizes as depots. Within 2 of these 3 dirs are other dirs using the patch name. I have done a "patch match" from qpk1100 and xswgr1100 but this particular patch does not show up in swlist so I must assume it is not installed. Any suggestions? Thanks,
Don
20 REPLIES 20
Vincenzo Restuccia
Honored Contributor

Re: Install of Patch using swinstall

#swlist -l product|grep -i phco_21187 ?
Don Curtis_1
Advisor

Re: Install of Patch using swinstall

Assuming swlist -"ell" returns nothing. Assuming it means patch not installed.

Thanks for the quick response.
Kevin Wright
Honored Contributor

Re: Install of Patch using swinstall

this patch may need to be configured
swlist -l fileset -a state |grep -v configure
if the patch is listed as installed
swconfig \* will configure patch
Steffi Jones_1
Esteemed Contributor

Re: Install of Patch using swinstall

Hi Don,

first check if you have the patch already installed with the following command:

swlist -l fileset -a state -a patch_state | grep

If not and you seem to continue having trouble with the cd rom, go and download that single patch from the itrc. That is usually a "no-brainer".

After the install is completed run the above command one more time to confirm that you were succesful.

Good luck,

Steffi Jones
James R. Ferguson
Acclaimed Contributor

Re: Install of Patch using swinstall

Hi Don:

PHCO_21187 has been superseded by PHCO_23436 ans is available here at the ITRC Patch Database.

To see if it is on your system do:

# swlist -l fileset -a state PHCO_21187

If you used "patch_match_target" and the patch was not selected, then it should already be present on your system, or is not applicable.

You can check to the contents of the various bundles by release at the ITRC by going to:
Maintenance and Support -> Standard Patch Bundles -> View Support Plus Releases.

...JRF...
Don Curtis_1
Advisor

Re: Install of Patch using swinstall

Kevin,
I ran the swlist command as you suggested but the patch phco_21187 does not appear in the list. I assume if it's not installed, it can't be configured. I really don't fully understand swinstall or what constitutes a software depot. I would think, though, that if I have the patch files on the support CD, I should be able to install them. Certainly a lot less painfully than this appears to be. Thanks for the reply.
Don Curtis_1
Advisor

Re: Install of Patch using swinstall

Steffi/James,
I have executed both your version of swlist on both phco_21187 and phco_23436 with no result. I don't appear to be "having trouble with the CD..." but anything is possible.

When I select any of the valid areas on the CD as a depot, swinstall appears to perform correctly (no errors) and in fact lists one of the depot contents as already 104 of 104 installed. From examining the logs, etc, I can find no evidence that these patch installations are even attempted. I can TRY downloading the patch files from HP but I doubt I will get any further than I already have. Thanks for the replies. Any other suggestions?
Steffi Jones_1
Esteemed Contributor

Re: Install of Patch using swinstall

Hi Don,

let us know if you were successful with the download and the istall from there.

Once you downloaded the patch run sh that will create a .text and a .depot file. In the .text file you can find all teh instructions on how to install the patch.

If you get an error running sh or swinstall try to change the mode in which you ftp .

Steffi Jones
James R. Ferguson
Acclaimed Contributor

Re: Install of Patch using swinstall

Hi Again:

What version (date) of the SupportPlus CDROM are you using?

When you do the 'swlist' do you get an error or warning back like "ERROR: Software "PHCO_21187" was not found on host..."?

If 'swinstall' notes "...104 of 104 already installed..." then there is nothing more to install.

...JRF...
Don Curtis_1
Advisor

Re: Install of Patch using swinstall

James,
I have the March '01 version (not sure of the version number if there is one). I don't get an error of any kind, only the non-existance of the patch that, in my mind, should be installed. I understand that the "... 104 of 104..." means there is nothing to install, but I would think that the patches in question would be part of the 104. This is, I think, critical to my system as I cannot build a kernel or set tunable parms in SAM (questions posted in forum as "kernel tuning parms ... or words to that effect). Thanks for the reply.

I am in the process of dl'ing the indiv patch. Kinda slow moving 22meg over 128k of frac T1 but what can ya do? ;)
James R. Ferguson
Acclaimed Contributor

Re: Install of Patch using swinstall

Hi Don:

PHCO_21187 is, in fact, listed as a patch in the March 2001 (SP-0103) GR bundle.

Does a simple 'swlist' without any other options return bundles successfully? Are you running as root? What return value do you get when you do:

# swlist -l fileset -a state i-a patch_state PHCO_21187

# echo $?

...JRF...
Jared Westgate_1
Valued Contributor

Re: Install of Patch using swinstall

I figured I'd throw my 2 cents in on this also... I'd also look at show_patches. I had a situation once where a patch that was installed was not showing up in swlist, but it did in show_patches.

I've actually figured out the problem I was having was that I did not put in the "-l product" or "-l fileset" when I did the swlist. I still use show_patches anyway, though.

Just my 2 cents,
Jared
Don Curtis_1
Advisor

Re: Install of Patch using swinstall

 
James R. Ferguson
Acclaimed Contributor

Re: Install of Patch using swinstall

Hi Don:

You have PHCO_21267 (cumulative SAM/ObAM patch) installed according to the check_patches report. This patch is a successor, although not the last one to PHCO_21187. This is why PHCO_21187 cannot be installed.

If you look at the patch text for PHCO_23436 (that I cited before), you will see this chain of history.

Regards!

...JRF...
Don Curtis_1
Advisor

Re: Install of Patch using swinstall

I dl'd and executed PHCO_23436 and it uncompressed into PHCO_23436.depot and PHCO_23436.text. They are in /tmp. When I attempt to use swinstall or swreg, these progs tell me there is no depot software at the location /tmp. What am I doing wrong?
Don Curtis_1
Advisor

Re: Install of Patch using swinstall

James,
Thanks for pointing that out. I would still like to try PHCO_23436 since it appears the most current SAM related patch (see above reply).

Sorry for just dumping that show_patches output. Should have attached it. It's been one of those days.

Don
Steffi Jones_1
Esteemed Contributor
Solution

Re: Install of Patch using swinstall

Hi Don,

this message usually comes up when there is a typo in the command line or something missing.
try the following:

swinstall -x autoreboot=true -s /tmp/PHCO_23436.depot

(that is all one line)

Steffi
James R. Ferguson
Acclaimed Contributor

Re: Install of Patch using swinstall

Hi Don:

You need to specify (as the depot):

/tmp/PHCO_23436.depot

There is no need to register this. Simply use 'swinstall' and the above as the depot.

...JRF...
Don Curtis_1
Advisor

Re: Install of Patch using swinstall

Got the phco_23436 patch installed without error. Thank you all very much for your help.

Unfortunately, the patch did not fix my bigger problem as I had hoped.

Steffi,
I ask you this since you work for HP. I have been told I cannot get telephonic assistance without a support agreement, or must pay $1200 per incident. I JUST bought HP-UX 11.0. I don't understand this policy and hoped you could explain. Don't mean to put you on the spot. Email dcurtis@lmr-inc.com if you'd rather.

Thanks again all,
Don

Steffi Jones_1
Esteemed Contributor

Re: Install of Patch using swinstall

Hi Don,

here is some information for you:

yes, you need a valid support contract in order to place calls at hp. they come in a lot of different flavors and I'm sure we would be able to find one that would fit your needs. I'm not 100% sure about the pricing for one-incident-calls, but I will research that for you.

Steffi Jones