Operating System - HP-UX
1833789 Members
2696 Online
110063 Solutions
New Discussion

How do I determine if installation of a depot requires a reboot

 
SOLVED
Go to solution
Peter Kain
Advisor

How do I determine if installation of a depot requires a reboot

I want to install the bundle ShadowPassword.
The bundle contains 20 patches as well as the
product.

I now know that only 1 of the 20 patches
require a reboot but lets assume you don't
know this.

From the command line I want to determine if
the package requires a reboot (I know that I
can get this information via interactive
swlist or swinstall under product desc)

I also want to know which patch requires the
reboot since may already have it installed.

What I came up seems overly complex, anyone
have a better way?

swlist -v -l fileset -s /tmp/ShadowPassword_B.01.00.00_HP-UX_B.11.11_32+64.depot | grep -e "# PH" -e is_reboot | uniq
...
# PHCO_28194
is_reboot false
# PHNE_23502
is_reboot true
# PHSS_26492
is_reboot false
# PHSS_26493
is_reboot false




9 REPLIES 9
Jeff Schussele
Honored Contributor

Re: How do I determine if installation of a depot requires a reboot

Hi,

How about

swlist -l fileset -v @ hostname:/path/to/depot | grep reboot | grep true

If you get *anything* back then it's a reboot bundle/product/patch
Doesn't matter if you get one OR many - it's *still* a reboot.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Chapaya
Frequent Advisor

Re: How do I determine if installation of a depot requires a reboot

Hi ,

If you install PHKL patches , reboot is required .
Patches like PHNE & PHSS usualy dont need reboot .

Bye ,
Eran.
Steven E. Protter
Exalted Contributor

Re: How do I determine if installation of a depot requires a reboot

i have a simple method.

swinstall -s /full_path_of_depot \*
fail=$?

if [ $fail -ne 1 ]
then
echo "Install failed restart may be needed"
else
echo "Install successful."
fi


The install will fail kicking a specific error code. You can trap that and take appropriate action.

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
Leif Halvarsson_2
Honored Contributor

Re: How do I determine if installation of a depot requires a reboot

Hi,

Perhaps the easiest way. When you extract the downloaded patch file you get two files, one .depot and one .text. In the .test file you can find information about the patch, also if reboot is needed.
Sridhar Bhaskarla
Honored Contributor

Re: How do I determine if installation of a depot requires a reboot

Hi,

My way of doing is not much different than yours. Except I check for the attribute is_reboot.

For ex.,
swlist -l fileset -a is_reboot -s /mydepot/krng

# PHKL_27750
PHKL_27750.CORE2-KRN true
PHKL_27750.CORE2-KRN true
# PHKL_27766
PHKL_27766.CORE2-KRN true
PHKL_27766.CORE2-KRN true
# RandomNumGen
RandomNumGen.RNG-DKRN false
RandomNumGen.RNG-DKRN false
RandomNumGen.RNG-KRN true
RandomNumGen.RNG-KRN true

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
sam_111
Trusted Contributor
Solution

Re: How do I determine if installation of a depot requires a reboot

I use SAM for all these. It gives which patch needs reboot.

I think the way you did is the best. It is almost the same way which I tried. Hats off

regards,

sam
"Hard Work always Pays off"
Sanjiv Sharma_1
Honored Contributor

Re: How do I determine if installation of a depot requires a reboot

Hi,

Patch basics:

Kernel Patches
PHKL_12345
installation usually causes reboots
Network Patches
PHNE_23456
installation may cause reboot
Commands Patches
PHCO_34567
no reboot
Subsystem Patches
PHSS_45678
usually no reboot

Thank you,
Everything is possible
Mike Stroyan
Honored Contributor

Re: How do I determine if installation of a depot requires a reboot

You can use the -a option to look at just one attribute. You still need to use -l fileset because the is_reboot attribute is at the fileset level rather than the product level.

swlist -l fileset -a is_reboot -s \
/tmp/ShadowPassword_B.01.00.00_HP-UX_B.11.11_32+64.depot
Peter Kain
Advisor

Re: How do I determine if installation of a depot requires a reboot

Thanks for all the answers. Sorry it took so long to assign points.