<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: script for check patches and kernel.any idea in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script-for-check-patches-and-kernel-any-idea/m-p/5005913#M98783</link>
    <description>Hi,&lt;BR /&gt;at a simple level you could maintain a cntral list of all the patches that need to be installed across your machines and then perform a comparison between swlist and this list.&lt;BR /&gt; &lt;BR /&gt;You can also use the security_patch_check as discussed in thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=972676" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=972676&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;and the patch assessment tool:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=886415" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=886415&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please read User Guide to Patch Management:&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/5991-4825/5991-4825.pdf" target="_blank"&gt;http://www.docs.hp.com/en/5991-4825/5991-4825.pdf&lt;/A&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 28 Sep 2006 01:56:49 GMT</pubDate>
    <dc:creator>Peter Godron</dc:creator>
    <dc:date>2006-09-28T01:56:49Z</dc:date>
    <item>
      <title>script for check patches and kernel.any idea</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-check-patches-and-kernel-any-idea/m-p/5005912#M98782</link>
      <description>Hi all&lt;BR /&gt;&lt;BR /&gt;   since there are too many hosts while sometimes developer ask me to check if the oracle,weblogic,siebel etc patches was installed and kernel was successful sets. it always spent lots of my times. so I need now design a script to help me do this job&lt;BR /&gt;&lt;BR /&gt;   for example,a list of all oracle patch and a same enviroment product host kernel,so I need the script to find out which patch I have not installed or which kernel is not correct&lt;BR /&gt;&lt;BR /&gt;   points will given for available reply. thanks for your time&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Sep 2006 00:19:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-check-patches-and-kernel-any-idea/m-p/5005912#M98782</guid>
      <dc:creator>Ming.Dynasty</dc:creator>
      <dc:date>2006-09-28T00:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: script for check patches and kernel.any idea</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-check-patches-and-kernel-any-idea/m-p/5005913#M98783</link>
      <description>Hi,&lt;BR /&gt;at a simple level you could maintain a cntral list of all the patches that need to be installed across your machines and then perform a comparison between swlist and this list.&lt;BR /&gt; &lt;BR /&gt;You can also use the security_patch_check as discussed in thread:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=972676" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=972676&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;and the patch assessment tool:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=886415" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/bizsupport/questionanswer.do?threadId=886415&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Please read User Guide to Patch Management:&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/5991-4825/5991-4825.pdf" target="_blank"&gt;http://www.docs.hp.com/en/5991-4825/5991-4825.pdf&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Sep 2006 01:56:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-check-patches-and-kernel-any-idea/m-p/5005913#M98783</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-09-28T01:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: script for check patches and kernel.any idea</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-check-patches-and-kernel-any-idea/m-p/5005914#M98784</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Peter's suggestions cover the the subject of patches very well.  The idea of maintaining and deploying a common patch archive ("golden image") may be ideal for your environment.&lt;BR /&gt;&lt;BR /&gt;I would urge you to (at least) use the standard patch bundles from the ITRC Patch Database.  These are refreshed twice a year and are cumulative.  That is, application of the latest bundles offers everything and more than its predecessor bundle.  The standard bundles are the most well-tested, comprehensive sets available for the widest range of configurations:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www1.itrc.hp.com/service/patch/releaseIndexPage.do?BC=main" target="_blank"&gt;http://www1.itrc.hp.com/service/patch/releaseIndexPage.do?BC=main&lt;/A&gt;|&lt;BR /&gt;&lt;BR /&gt;A simple:&lt;BR /&gt;&lt;BR /&gt;# swlist&lt;BR /&gt;&lt;BR /&gt;...will show the release dates of these bundles in their description and provides a good marker of the overall patch state of your server.&lt;BR /&gt;&lt;BR /&gt;You might also find:&lt;BR /&gt;&lt;BR /&gt;# show_patches&lt;BR /&gt;&lt;BR /&gt;# check_patches&lt;BR /&gt;&lt;BR /&gt;...very useful tools.  See their respective manpages for more information.&lt;BR /&gt;&lt;BR /&gt;As for comparing kernel configurations, server-to-server, you can use:&lt;BR /&gt;&lt;BR /&gt;# kmtune -l&lt;BR /&gt;&lt;BR /&gt;...on 11.11, or for 11.23:&lt;BR /&gt;&lt;BR /&gt;# kctune&lt;BR /&gt;&lt;BR /&gt;There is no one "correct" kernel.  A "correct" kernel is one that is tuned to provide a particular environment the best behavior and performance.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Thu, 28 Sep 2006 06:10:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-check-patches-and-kernel-any-idea/m-p/5005914#M98784</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-09-28T06:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: script for check patches and kernel.any idea</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-check-patches-and-kernel-any-idea/m-p/5005915#M98785</link>
      <description>Anyone can help me check this script I just wrote which return error when i run it.kmtune.txt is the kernel list which i need to compare with.&lt;BR /&gt;&lt;BR /&gt;crmut20#sh checkkernel kmtune.txt&lt;BR /&gt;checkkernel[6]: Syntax error at line 25 : `done' is not expected&lt;BR /&gt;&lt;BR /&gt;here is the script&lt;BR /&gt;&lt;BR /&gt;--------------------------------------&lt;BR /&gt;list=$1&lt;BR /&gt;state_file=/tmp/kmtune&lt;BR /&gt;&amp;gt;$state_file&lt;BR /&gt;/usr/sbin/kmtune &amp;gt; /tmp/kmtune&lt;BR /&gt;typeset i=1&lt;BR /&gt;grep /tmp/kmtune|while read -r yy&lt;BR /&gt;   do&lt;BR /&gt;    if [ $i -gt 3 ]&lt;BR /&gt;    then&lt;BR /&gt;        unit=echo "$yy" |awk '{print $2}'&lt;BR /&gt;        kernelid=echo "$yy" |awk '{print $1}'&lt;BR /&gt;        unitstandard=more $list |grep $kernelid|'{print $2}'&lt;BR /&gt;          if [ $unit -nq $unitstandard ]&lt;BR /&gt;             then&lt;BR /&gt;               echo "%s \n" "$kernelid" "$unit" "you may modified to" "$kernelid"&lt;BR /&gt;          exit 0&lt;BR /&gt;          fi&lt;BR /&gt;          &lt;BR /&gt;    if [ $i -gt 200 ]&lt;BR /&gt;    then&lt;BR /&gt;    break&lt;BR /&gt;    fi&lt;BR /&gt;    let i=i+1&lt;BR /&gt;    &lt;BR /&gt; done&lt;BR /&gt;-----------------------------------------</description>
      <pubDate>Sun, 01 Oct 2006 20:45:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-check-patches-and-kernel-any-idea/m-p/5005915#M98785</guid>
      <dc:creator>Ming.Dynasty</dc:creator>
      <dc:date>2006-10-01T20:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: script for check patches and kernel.any idea</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-check-patches-and-kernel-any-idea/m-p/5005916#M98786</link>
      <description>Hi,&lt;BR /&gt;check your if-fi statements. There is a mismatch in if's and fi's, so one if statement is not 'closed' with a matching fi.&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Oct 2006 02:50:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-check-patches-and-kernel-any-idea/m-p/5005916#M98786</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2006-10-02T02:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: script for check patches and kernel.any idea</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script-for-check-patches-and-kernel-any-idea/m-p/5005917#M98787</link>
      <description>LoL sorted out&lt;BR /&gt;&lt;BR /&gt;script here for anyone who has the same needed as me&lt;BR /&gt;&lt;BR /&gt;-------------------------------------&lt;BR /&gt;&lt;BR /&gt;list=$1&lt;BR /&gt;state_file=/tmp/kmtune&lt;BR /&gt;&amp;gt;$state_file&lt;BR /&gt;/usr/sbin/kmtune &amp;gt; /tmp/kmtune&lt;BR /&gt;typeset i=1&lt;BR /&gt;while read -r yy&lt;BR /&gt;   do&lt;BR /&gt;    if [ $i -gt 2 ]&lt;BR /&gt;    then&lt;BR /&gt;        unit=`echo "$yy" |awk '{print $2}'`&lt;BR /&gt;         if [ $unit != "-" ];then&lt;BR /&gt;        kernelid=`echo "$yy" |awk '{print $1}'`&lt;BR /&gt;        unitstandardtemp=`more "$list" `&lt;BR /&gt;        unitstandard=`echo "$unitstandardtemp"|grep "$kernelid [ ]"|awk '{print $2}'`&lt;BR /&gt;          if [ $unit != $unitstandard ];then&lt;BR /&gt;               printf  "$kernelid $unit you may modified to $unitstandard \n"&lt;BR /&gt;          fi&lt;BR /&gt;          fi&lt;BR /&gt;    if [ $i -gt 200 ]&lt;BR /&gt;    then&lt;BR /&gt;    break&lt;BR /&gt;    fi &lt;BR /&gt;    fi  &lt;BR /&gt;    let i=i+1&lt;BR /&gt;    &lt;BR /&gt; done &amp;lt;$state_file</description>
      <pubDate>Tue, 03 Oct 2006 01:46:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script-for-check-patches-and-kernel-any-idea/m-p/5005917#M98787</guid>
      <dc:creator>Ming.Dynasty</dc:creator>
      <dc:date>2006-10-03T01:46:28Z</dc:date>
    </item>
  </channel>
</rss>

