Operating System - HP-UX
1831614 Members
2190 Online
110027 Solutions
New Discussion

How to cancel reboot after patch installation ( interactive swinstall )

 
SOLVED
Go to solution
Burhan Halilov_1
Occasional Contributor

How to cancel reboot after patch installation ( interactive swinstall )

After a planned patch installation ( the patch required reboot ) we realized that it's not a good time to reboot. I'm sure many of you gurus have been in the same situation. Now I'm looking at the swinstall screen and I'm only one click away from reboot.

I experimented on another system and so far I have no solution :
Closing the telnet session reboots ( tested )
Renaming/moving /sbin/shutdown and /sbin/reboot commands also does not help, system reboots anyway ( tested )
9 REPLIES 9
Alberto Ochoa
Advisor

Re: How to cancel reboot after patch installation ( interactive swinstall )

Have you tried in your test system by killing the swagent? From the man pages: The
reboot command is defined by the swagent option: reboot_cmd."
Learn-Share-Help, in any order.
Alberto Ochoa
Advisor

Re: How to cancel reboot after patch installation ( interactive swinstall )

Try only on a real test system purposes. If succeed, reboot the test system so you can see that everything is ok. Because of the kernel rebuilding I think the best option is to reboot the productive system in the state that it is now (waiting for you to clik for the reboor).
Learn-Share-Help, in any order.
Sanjiv Sharma_1
Honored Contributor

Re: How to cancel reboot after patch installation ( interactive swinstall )

Hi,

Copy the patch in any folder.
Say /abc
# cd /abc
# sh patch.shar
# swinstall -s /abc/patch.depot

Once the patch installation is completed it will ask you to press "ok" when ready to reboot.

Don't use the installation command which is given with the patch description.

Example
swinstall -x autoreboot=true -x patch_match_target=true -s /tmp/PHCO_23004.depot

Here it will automatically reboot w/o asking.

hth.

Everything is possible
Shaikh Imran
Honored Contributor

Re: How to cancel reboot after patch installation ( interactive swinstall )

Hi,
Not the Solution to your problem but maybe a workaround.
Try Using swcopy first i suppose this will tell you that the system requires a reboot while installation.


Regards,

I'll sleep when i am dead.
Ravi_8
Honored Contributor

Re: How to cancel reboot after patch installation ( interactive swinstall )

Hi,

open another session to that m/c and kill swinstall process.
never give up
Karthik S S
Honored Contributor

Re: How to cancel reboot after patch installation ( interactive swinstall )

Simply close the terminal window from where you invoked swinstall.

-KarthiK S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn
Albert Smith_1
Regular Advisor

Re: How to cancel reboot after patch installation ( interactive swinstall )

If I recall correctly if you are doing the swinstall interativley I think you can use the following option:

-x autoreboot=false
Dietmar Konermann
Honored Contributor
Solution

Re: How to cancel reboot after patch installation ( interactive swinstall )

Burhan,

of course this is neither supported nor is it reccomended. :) When you look at the running sw* processes you should see two swagent processes, one 'source agent' (1st arg is the depot path) and one 'target agent' (1st arg is usually '/'). Pick the PID of the target agent and kill it with -9.

Best regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Robert Binkhorst
Trusted Contributor

Re: How to cancel reboot after patch installation ( interactive swinstall )

Yeah,

AFAIK, you'll need to keep that window open!

Good luck!

Robert
linux: the choice of a GNU generation