Operating System - HP-UX
1832822 Members
3244 Online
110045 Solutions
New Discussion

Software Distributor:swinstall

 
Domenico_8
Occasional Advisor

Software Distributor:swinstall

When using swinstall from the command line, I wonder if it is possible to delay the server reboot when we install a reboot patch.This would be helpful from within an installation script.
Any ideas?
Many thanks in advance.
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Software Distributor:swinstall

I have delayed reboot with the interactive swinstall to reboot when I choose to reboot.

I've never tried that trick on the command line.

I will say the swinstall session will not start without the -x autoreboot=true command line option if any of the patches require a reboot. A quick look at a manual (my hp-9000 servers are in a shipping container) does not show any options I see that would help you do this.

I could write a script that delayed the entire install until a chosen time, say the middle of the night. That would be pretty simple and could also be done with the crontab for root.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Domenico_8
Occasional Advisor

Re: Software Distributor:swinstall

Hello SEP,

Just to be clear,my installation script is scheduled in the crontab but I would like to delay the reboot from within the script.
Could you send me out your proposition as I am not expert in scripting:-.In fact the idea is to install multiple reboot patch package independently and I am not allowed to combine these packages in one reboot package only.The goal is to reboot the server once and not after each installation of a single reboot package.
Thanks.
Stanimir
Trusted Contributor

Re: Software Distributor:swinstall

Hi!

You can try to put to swinstall option:

"-x autoreboot=false"

Refer: #man swinstall

Regards.
David Child_1
Honored Contributor

Re: Software Distributor:swinstall

You mentioned that you were not allowed to combine packages into a single depot. Is this some type of company policy?

Technically you can easily combine these packages using 'swcopy' into the same depot location, then install off that single depot.

I don't know if you will be able to install these packages seperately without rebooting due to dependancies, conflicts, etc.

David