<?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: Search for software in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489362#M363496</link>
    <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 1. This script is pulling out results but with hhuuggee number of ERROR lines.&lt;BR /&gt;&lt;BR /&gt;Like all well-behaved software allows, redirect STDERR to /dev/null :&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt; swlist -l depot -s $S 2&amp;gt;/ dev/null | while read D; do&lt;BR /&gt;      swlist -l product -s $S:$D 2&amp;gt; /dev/null&lt;BR /&gt;... &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 2. Another thing is that I am unable to get the path of the software pulled by the script.&lt;BR /&gt;&lt;BR /&gt;If you want this than you will have to descend to the file level:&lt;BR /&gt;&lt;BR /&gt;# swlist -l file&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
    <pubDate>Tue, 01 Sep 2009 10:36:58 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2009-09-01T10:36:58Z</dc:date>
    <item>
      <title>Search for software</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489359#M363493</link>
      <description>&lt;!--!*#--&gt;Hello All,&lt;BR /&gt;&lt;BR /&gt;I have a number of servers A,B,C etc which have number of depots.&lt;BR /&gt;I want to search these servers for a particular software (that I need to install on another test server)&lt;BR /&gt;&lt;BR /&gt;# swlist -l depot -s abc.efg.xyz.com&lt;BR /&gt;---shows lists of depots---&lt;BR /&gt;  /var/spool/sw/PHSS_30724.depot&lt;BR /&gt;  /var/spool/sw/11i_PA.apps   &amp;lt;&amp;lt;===&lt;BR /&gt;  /var/spool/sw/es_maint &lt;BR /&gt;  /var/spool/sw/cvsdm_11_11_v10800&lt;BR /&gt;---shows lists of depots---&lt;BR /&gt;  &lt;BR /&gt;But these depot/directories will in turn have a number of softwares.&lt;BR /&gt;&lt;BR /&gt;# swlist -l product -s abc.efg.xyz.com:/var/spool/sw/11i_PA.apps&lt;BR /&gt;  --------------&lt;BR /&gt;  --------------&lt;BR /&gt;  MeasureWare           C.03.72.00     MeasureWare Software/UX&lt;BR /&gt;  MeasurementInt        C.03.72.00     HP-UX Measurement Interface for 11i&lt;BR /&gt;  Mozilla               1.4.0.00.00    Mozilla 1.4&lt;BR /&gt;  MozillaSrc            1.4.0.00.00    Mozilla 1.4 Source Distribution&lt;BR /&gt;  NetscapeDirSvr6       B.06.11        The Netscape Directory Server v6&lt;BR /&gt;  NisLdapServer         B.03.10        The NIS/LDAP Gateway (ypldapd)&lt;BR /&gt;  --------------&lt;BR /&gt;  --------------&lt;BR /&gt;&lt;BR /&gt;So, how can I search for a particular software using least number of commands, if possible.&lt;BR /&gt;  &lt;BR /&gt;I will be doing all these activities from my test server.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance..&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 01 Sep 2009 06:24:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489359#M363493</guid>
      <dc:creator>UniRock</dc:creator>
      <dc:date>2009-09-01T06:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: Search for software</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489360#M363494</link>
      <description>&lt;!--!*#--&gt;&amp;gt;how can I search for a particular software using least number of commands&lt;BR /&gt;&lt;BR /&gt;If you know the name of the software, you don't have to list all products.&lt;BR /&gt;&lt;BR /&gt;So of you have S servers and each has D' depots and each has P' products, you need two nested for/while loops.&lt;BR /&gt;&lt;BR /&gt;for S in $(&amp;lt; list-of-servers); do&lt;BR /&gt;   swlist -l depot -s $S | while read D; do&lt;BR /&gt;      swlist -l product -s $S:$D&lt;BR /&gt;      # if you find what you want, you can use "break 2"&lt;BR /&gt;   done&lt;BR /&gt;done</description>
      <pubDate>Tue, 01 Sep 2009 06:43:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489360#M363494</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-09-01T06:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Search for software</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489361#M363495</link>
      <description>&lt;!--!*#--&gt;Hello Dennis,&lt;BR /&gt;&lt;BR /&gt;The script is pulling things good..&lt;BR /&gt;&lt;BR /&gt;Script is:&lt;BR /&gt;----------------&lt;BR /&gt;for S in  xxxx.xxx.xx.com yyyy.yyy.yy.com ; do&lt;BR /&gt;   swlist -l depot -s $S | while read D; do&lt;BR /&gt;      swlist -l product -s $S:$D &lt;BR /&gt;   done&lt;BR /&gt;done&lt;BR /&gt;----------------&lt;BR /&gt;&lt;BR /&gt;# ./script1 | grep -i cifs&lt;BR /&gt;&lt;BR /&gt;----Output truncated----&lt;BR /&gt;&lt;BR /&gt;ERROR:   There is currently no depot software on host&lt;BR /&gt;         "yyyy.yyy.yy.com" at location "/abcd/depot". Make sure that&lt;BR /&gt;         an absolute pathname is specified for location (beginning with&lt;BR /&gt;         "/").&lt;BR /&gt;ERROR:   More information may be found in the daemon logfile on this&lt;BR /&gt;         target (default location is&lt;BR /&gt;         xxxx.xxx.xx.com:/var/adm/sw/swagentd.log).&lt;BR /&gt;  CIFS-Development      A.01.09.04     CIFS/9000 server source code files&lt;BR /&gt;  CIFS-Server           A.01.09.04     CIFS/9000 (Samba) File and Print Services&lt;BR /&gt;  CIFS-Client   A.01.08        HP CIFS/9000 Client&lt;BR /&gt;ERROR:   There is currently no depot software on host&lt;BR /&gt;         "xxxx.xx.xx.com" at location "/tmp/iether.depot". Make sure&lt;BR /&gt;         that an absolute pathname is specified for location (beginning&lt;BR /&gt;         with "/").&lt;BR /&gt;&lt;BR /&gt;Points of concern: &lt;BR /&gt;1. This script is pulling out results but with hhuuggee number of ERROR lines.&lt;BR /&gt;2. Another thing is that I am unable to get the path of the software pulled by the script.&lt;BR /&gt; &lt;BR /&gt;Any solution for this? &lt;BR /&gt;Thanks..</description>
      <pubDate>Tue, 01 Sep 2009 07:50:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489361#M363495</guid>
      <dc:creator>UniRock</dc:creator>
      <dc:date>2009-09-01T07:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Search for software</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489362#M363496</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 1. This script is pulling out results but with hhuuggee number of ERROR lines.&lt;BR /&gt;&lt;BR /&gt;Like all well-behaved software allows, redirect STDERR to /dev/null :&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt; swlist -l depot -s $S 2&amp;gt;/ dev/null | while read D; do&lt;BR /&gt;      swlist -l product -s $S:$D 2&amp;gt; /dev/null&lt;BR /&gt;... &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; 2. Another thing is that I am unable to get the path of the software pulled by the script.&lt;BR /&gt;&lt;BR /&gt;If you want this than you will have to descend to the file level:&lt;BR /&gt;&lt;BR /&gt;# swlist -l file&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 01 Sep 2009 10:36:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489362#M363496</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-09-01T10:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Search for software</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489363#M363497</link>
      <description>&lt;!--!*#--&gt;Hi Again..&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I am unable to get the path of the software pulled by the script.&lt;BR /&gt;&lt;BR /&gt;By this I mean that I cannot get the path where the software depot is placed on the server.&lt;BR /&gt;In other words..I have mentioned three servers to search for a particular software. Script pulls out the software but how do I know where this software is placed and on which server??&lt;BR /&gt;&lt;BR /&gt;BTW, redirection works nice.&lt;BR /&gt;&lt;BR /&gt;Thanks..</description>
      <pubDate>Wed, 02 Sep 2009 01:08:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489363#M363497</guid>
      <dc:creator>UniRock</dc:creator>
      <dc:date>2009-09-02T01:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Search for software</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489364#M363498</link>
      <description>&lt;!--!*#--&gt;&amp;gt;1. This script is pulling out results but with hhuuggee number of ERROR lines.&lt;BR /&gt;&lt;BR /&gt;Oops, I did some hand waving and didn't test it.  There were comment lines.&lt;BR /&gt;&lt;BR /&gt;This should work better, unless you have depots you registered but used rm to remove:&lt;BR /&gt;for S in xxxx.xxx.xx.com yyyy.yyy.yy.com ; do&lt;BR /&gt;   swlist -l depot -s $S | grep -v "^#" |&lt;BR /&gt;   while read D; do&lt;BR /&gt;      swlist -l product -s $S:$D&lt;BR /&gt;   done&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&amp;gt;but how do I know where this software is placed and on which server?&lt;BR /&gt;&lt;BR /&gt;You need to grep for two patterns:&lt;BR /&gt;# ./script1 | grep -i -e Internet -e Target:&lt;BR /&gt;# Target:  XXX:/tmp/depot&lt;BR /&gt;# Target:  XXX:/var/tmp/InternetSrvcs.11_23&lt;BR /&gt;  InternetSrvcs   B.11.23 General network applications and daemons</description>
      <pubDate>Wed, 02 Sep 2009 03:27:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489364#M363498</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-09-02T03:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Search for software</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489365#M363499</link>
      <description>&lt;!--!*#--&gt;Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;If have edited the script to:&lt;BR /&gt;-----------------------------&lt;BR /&gt;echo "Enter the name of the software to search for: "&lt;BR /&gt;read P&lt;BR /&gt;for S in casea.cup.hp.com hpindml.cup.hp.com vick2.atl.hp.com; do&lt;BR /&gt;   swlist -l depot -s $S 2&amp;gt; /dev/null | while read D; do&lt;BR /&gt;   swlist -l product -s $S:$D 2&amp;gt; /dev/null | grep -v "# Contacting" | grep -i -e $P -e target&lt;BR /&gt;   done&lt;BR /&gt;done&lt;BR /&gt;-----------------------------&lt;BR /&gt;&lt;BR /&gt;And it is working perfect as I wished.&lt;BR /&gt;Thanks again Dennis for your help..</description>
      <pubDate>Wed, 02 Sep 2009 05:14:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489365#M363499</guid>
      <dc:creator>UniRock</dc:creator>
      <dc:date>2009-09-02T05:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Search for software</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489366#M363500</link>
      <description>&amp;gt;If have edited the script to:&lt;BR /&gt;&lt;BR /&gt;You really should keep my grep between the first swlist and the "while".  No need to make swlist sweat by looking up "#" names.</description>
      <pubDate>Wed, 02 Sep 2009 07:38:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/search-for-software/m-p/4489366#M363500</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-09-02T07:38:10Z</dc:date>
    </item>
  </channel>
</rss>

