Operating System - HP-UX
1834870 Members
2649 Online
110070 Solutions
New Discussion

Re: Support Plus install - depots

 
SOLVED
Go to solution
Tom Dawson
Regular Advisor

Support Plus install - depots

Hi,

I'm planning to install HWEnable11i and GOLDQPK11i from the June 2002 Support Plus Cd this weekend. Usually I use sam for something like this. But I want to do it via the command line since I'll be connected remotely via a VPN connection. If I mount the CD at /cdrom, would the following commands be appropriate?

nohup swinstall -x autoreboot=true -x patch_match_target=true -s /cdrom/HWEnable11i > mylog1 2>&1 &

nohup swinstall -x autoreboot=true -x patch_match_target=true -s /cdrom/GOLDQPK11i > mylog2 2>&1 &

Do I need to register the depots first?

TIA,
Tom
9 REPLIES 9
Pete Randall
Outstanding Contributor
Solution

Re: Support Plus install - depots

Tom,

My only concern would be identifying the depots properly. You can do an interactive install with
"swinstall -s /cdrom/HWEnable11i"
(and the other, of course) and cancel after the analysis phase. I don't believe you have to register first.

Good luck,
Pete

Pete
S.K. Chan
Honored Contributor

Re: Support Plus install - depots

I usually do an interactive install (ie the "-s" option with swinstall) so that I can see what's going on, after all the output will be captured in swinstall.log anyway. You do not need to swreg the depot. You only register a depot if you want that depot to be accessed from a remote machine.
Hai Nguyen_1
Honored Contributor

Re: Support Plus install - depots

Tom,

Your commands are correct. You do not have to register the depot provided that the /cdrom is mounted localy to the box you log on remotely. I prefer to change the order of the two commands since HWEnable11i should be the last to apply. To test out your commands now, you can include "-p" without quote which will run the commands in preview mode only.

Hai
Tom Dawson
Regular Advisor

Re: Support Plus install - depots

Pete, S.K.,

Thanks. I notice that the common thread in both your answers is that you both usually do an interactive install.

I was wanting to "start it and forget it" only because my VPN has a tendency to time out. Thus killing my telnet session and any processes associated with it.

Would you recommend against the non-interactive install? This is a test/development server.

Tom
Hai Nguyen_1
Honored Contributor

Re: Support Plus install - depots

Tom,

If you want to use nohup in this case, you may not want to start the commands in the root dir. Since the file nohup.out will be created in a directory where nohup is run. Just to avoid this file from getting so big that it may fill up the root filesystem.

Hai
Martin Johnson
Honored Contributor

Re: Support Plus install - depots

I usually do my major installs from the console - interactively. Less potential problems and you're with the machine if problems occur. (Murphy is always looking over my shoulder.)

I have had several upgrades that resulted in an unbootable system. Hard to deal with that remotely.

HTH
Marty
S.K. Chan
Honored Contributor

Re: Support Plus install - depots

I tend to agree with Martin. If it's a one or two individual patches install, non-interactive method is probably ok. Though I do not see any problem with your syntax, it's a matter of preference. Nothing against non-interactive method. I guess it's up to you then which way you want to go.
Tom Dawson
Regular Advisor

Re: Support Plus install - depots

All,

Thanks! Since it wasn't a production machine, I decided to live dangerously. But the GOLDQPK11i install didn't like me being remote. It generated the following error:

ERROR: This Agent session lost the RPC connection to the Controller
or Target Agent that initiated the session. Agent detected
lost connection. The session is being shut down. (pid=4128)

However, the HWEnable11i install seemed to go okay being remote. But our hardware is so old ( D330's ) that we may not have actually done any updates.

Thanks to all!
Tom
Bryan Payne
Occasional Advisor

Re: Support Plus install - depots

I usually just put them in a depot on a server, and then make a script like this:
swinstall -x patch_match_target=true -x enforce_dependencies=true -x mount_all_filesystems=false -x reinstall=false -x autoreboot=true -s :/depot/S700_S800/11i/patches/HWEnable11i \*

Or you can schedule from the gui to install later. To enable remote support touch /var/adm/sw/.sdkey before going into swinstall