SUMMARY: Script to check for installed patches

From: Mark Gosselin <gosselinm_at_netscout.com>
Date: Fri Apr 20 2001 - 09:28:43 EDT
Thanks to all who responded.... Everyone pointed to patchdiag from
SunSolve. Normally, that would work
great for me. However, I'm goign to need to modify whatever I use to check
patch installs on HP and AIX as
well......

Moti Levi provided me with a simple script to start with. I should be able
to modify it to check other OSes....

#! /bin/sh
PATCH_LIST=filename
for patch in `cat $PATCH_LIST` ;do
 showrev -p |grep $patch > /dev/null 2>&1
    if [ $? -eq 1 ] ;then
       echo "$patch is not installed !"
    fi
done

Thanks again for all your help.....

Mark Gosselin
NetScout Systems

----- Forwarded by Mark Gosselin/NetScout on 04/20/01 09:38 AM -----
                                                                                                                                                  
                    "Mark Gosselin"                                                                                                               
                    <gosselinm@netscout.com        To:     sunmanagers@sunmanagers.org                                                            
                    >                              cc:                                                                                            
                    Sent by:                       Subject:     Script to check for installed patches                                             
                    sunmanagers-admin@sunma                                                                                                       
                    nagers.org                                                                                                                    
                                                                                                                                                  
                                                                                                                                                  
                    04/19/01 03:11 PM                                                                                                             
                                                                                                                                                  
                                                                                                                                                  




Does anyone on this list happen to have a script that will take a
pre-determined list of patches,
check to see that each is installed and report back which are not there???
I have a use for such
a script, but am lacking in time to create one myself.... Anything at all
that may or may not need
modification would be helpful.....

Thanks,
Mark Gosselin
NetScout Systems


_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Apr 20 14:28:43 2001

This archive was generated by hypermail 2.1.8 : Wed Mar 23 2016 - 16:24:53 EDT