<?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: Find corrupt packages installed on system in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534415#M368604</link>
    <description>The script lists every file contained in the product and then checks for its existence.&lt;BR /&gt;&lt;BR /&gt;Some of our filesets are pretty large and checking for each of the file will be very time consuming.&lt;BR /&gt;Doesn't look an efficient approach to me.</description>
    <pubDate>Wed, 18 Nov 2009 05:39:22 GMT</pubDate>
    <dc:creator>Vibhor Kumar Agarwal</dc:creator>
    <dc:date>2009-11-18T05:39:22Z</dc:date>
    <item>
      <title>Find corrupt packages installed on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534406#M368595</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I want to find the corrupt packages installed on the system.&lt;BR /&gt;With corrupt my limitation is only to missing files.&lt;BR /&gt;&lt;BR /&gt;swverify gives the details. However, it displays package consistency based on size, mtime, missing, and many other parameters.&lt;BR /&gt;&lt;BR /&gt;I want to find the corrupt packages automatically. At the end of swverify it gives a log of swjob, parsing it for missing files does the trick. But this is a manual step.&lt;BR /&gt;&lt;BR /&gt;How can this be obtained automatically.&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 16 Nov 2009 11:19:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534406#M368595</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2009-11-16T11:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Find corrupt packages installed on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534407#M368596</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; At the end of swverify it gives a log of swjob, parsing it for missing files does the trick. But this is a manual step.&lt;BR /&gt;&lt;BR /&gt;I would hope that corrupt filesets would be a rare exception.  They should be if you are following good practices.&lt;BR /&gt;&lt;BR /&gt;What's hard about writing a script to parse the 'swjob' for missing files?  I understand that launching it is a "manual step", but again, how often do you expect problems?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 16 Nov 2009 12:43:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534407#M368596</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-11-16T12:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Find corrupt packages installed on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534408#M368597</link>
      <description>One of our applications failed due to an dependency package which was partially installed (files were missing).&lt;BR /&gt;&lt;BR /&gt;I want to add that logic in the installer which detects if pre-requisites packages are missing some files, issue a warning and exit.&lt;BR /&gt;&lt;BR /&gt;This has to be automatic now, any tips?</description>
      <pubDate>Mon, 16 Nov 2009 13:12:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534408#M368597</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2009-11-16T13:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Find corrupt packages installed on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534409#M368598</link>
      <description>&amp;gt;One of our applications failed due to an dependency package which was partially installed (files were missing).&lt;BR /&gt;&lt;BR /&gt;I'm not sure how it is possible for swinstall to be missing files.&lt;BR /&gt;&lt;BR /&gt;Perhaps all you need to do is find the "state" of each fileset?&lt;BR /&gt;swlist -l fileset -a state \*&lt;BR /&gt;You should replace \* by your list of SD products/bundles.</description>
      <pubDate>Mon, 16 Nov 2009 14:02:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534409#M368598</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-11-16T14:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Find corrupt packages installed on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534410#M368599</link>
      <description>I manually deleted a file of the fileset.&lt;BR /&gt;&lt;BR /&gt;swlist -l fileset -a state Test&lt;BR /&gt;Test.Test     configured&lt;BR /&gt;&lt;BR /&gt;Gives the output as "configured"&lt;BR /&gt;&lt;BR /&gt;though swverify shows errors and on going in the details of swjob, it shows missing file.&lt;BR /&gt;&lt;BR /&gt;What can i conclude with "state" option?</description>
      <pubDate>Tue, 17 Nov 2009 06:09:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534410#M368599</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2009-11-17T06:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: Find corrupt packages installed on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534411#M368600</link>
      <description>&amp;gt;Vibhor: I manually deleted a file of the fileset.&lt;BR /&gt;&lt;BR /&gt;What type of consistency are you looking for?  If you have random root attacks on your product, you'll need to do swverify on the whole thing.&lt;BR /&gt;&lt;BR /&gt;I don't think this is worth it.&lt;BR /&gt;You may want to have a script that users can run if something totally unexpected happens and that will run swverify and then look at the swjob output or directly from /var/adm/sw/swverify.log.&lt;BR /&gt;</description>
      <pubDate>Tue, 17 Nov 2009 10:54:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534411#M368600</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-11-17T10:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Find corrupt packages installed on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534412#M368601</link>
      <description>&amp;gt; look at the swjob output or directly from /var/adm/sw/swverify.log.&lt;BR /&gt;&lt;BR /&gt;Okay, can i somehow automatically parse the swjob output that comes after swverfiy. If I can achieve this, i am good to go.</description>
      <pubDate>Tue, 17 Nov 2009 13:42:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534412#M368601</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2009-11-17T13:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Find corrupt packages installed on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534413#M368602</link>
      <description>So you only want to find files that SD is supposed to know about, but that are missing?  We can do that, but I warn you that the beauty of anything is lost when inspected too closely....&lt;BR /&gt;&lt;BR /&gt;Try the attached script I banged out.  I flag the files that SD expects to change. It can take as an argument anything that is swlist-able, but defaults to everything.&lt;BR /&gt;&lt;BR /&gt;Bob</description>
      <pubDate>Tue, 17 Nov 2009 23:02:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534413#M368602</guid>
      <dc:creator>Bob E Campbell</dc:creator>
      <dc:date>2009-11-17T23:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Find corrupt packages installed on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534414#M368603</link>
      <description>D'Oh!  I meant to print the fileset as well.  That is left as an exercise for the reader :-)</description>
      <pubDate>Tue, 17 Nov 2009 23:04:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534414#M368603</guid>
      <dc:creator>Bob E Campbell</dc:creator>
      <dc:date>2009-11-17T23:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Find corrupt packages installed on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534415#M368604</link>
      <description>The script lists every file contained in the product and then checks for its existence.&lt;BR /&gt;&lt;BR /&gt;Some of our filesets are pretty large and checking for each of the file will be very time consuming.&lt;BR /&gt;Doesn't look an efficient approach to me.</description>
      <pubDate>Wed, 18 Nov 2009 05:39:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534415#M368604</guid>
      <dc:creator>Vibhor Kumar Agarwal</dc:creator>
      <dc:date>2009-11-18T05:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Find corrupt packages installed on system</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534416#M368605</link>
      <description>Not sure how else you are going to find missing files other than comparing what you have to what you expect.&lt;BR /&gt;&lt;BR /&gt;If you mean the fact that it was in a shell script, it took me 5 minutes to write and can check an entire rx2600 in 2.5 minutes. In fact, it showed me that somebody moved /opt/java6 (I wonder if it was me).&lt;BR /&gt;&lt;BR /&gt;The command "swverify \*" will do the same check and more in about 5 minutes.  This is what I would recommend.  I do not recommend using it only for missing files, unplanned changes to binaries or permissions is hopefully of interest to someone...&lt;BR /&gt;&lt;BR /&gt;Using "swlist -l fileset -a state |\&lt;BR /&gt;         grep -e corrupt -e transient"&lt;BR /&gt;&lt;BR /&gt;runs in one second, but will never tell me anything about missing files, just specific types of meta data corruption in IPD data.</description>
      <pubDate>Wed, 18 Nov 2009 06:52:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-corrupt-packages-installed-on-system/m-p/4534416#M368605</guid>
      <dc:creator>Bob E Campbell</dc:creator>
      <dc:date>2009-11-18T06:52:50Z</dc:date>
    </item>
  </channel>
</rss>

