<?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: To search multiple strings in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5295365#M36334</link>
    <description>&lt;P&gt;As far as perl goes, I guess it depends on what your management defines as "install" as there are versions that can be obtained or built that do not require a system-wide installation or special privileges.&amp;nbsp; It might be hard to find one pre-built and supported on a VMS release that old, but it may build.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You've also got TPU on the system (it is the foundation of the EVE editor).&amp;nbsp; It would take some effort to learn the syntax, but TPU is a language developed &lt;U&gt;expressly&lt;/U&gt; for text processing and can be made to do nearly anything you want (both LSE and VAX Notes were implemented in TPU).&amp;nbsp; The TPU documents are available online with the regular VMS OS documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2011 13:20:39 GMT</pubDate>
    <dc:creator>Mike Kier</dc:creator>
    <dc:date>2011-08-09T13:20:39Z</dc:date>
    <item>
      <title>To search multiple strings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5294397#M36326</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote a script for monitoring a remote box ( Unix box), for this i get the status of the server in a file and search for the faults, as i now need to modify the search, i would like to know if this is possible:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;current search :&lt;/P&gt;&lt;PRE&gt;sear DISK1:[anup]out.txt ims,down/match=and&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;this was used as there were 4 unix boxes, but now 2 of them have been removed and hence not required to be monitored, but the other&amp;nbsp;2 are to be monitored.&lt;/P&gt;&lt;P&gt;The names of the boxes are:&lt;/P&gt;&lt;P&gt;ims01, ims02, ims21, ims31&lt;/P&gt;&lt;P&gt;ims01 and 02 are no more required but 21 and 31 are required.&lt;/P&gt;&lt;P&gt;i need to search :&lt;/P&gt;&lt;P&gt;"(ims21 or ims31), down/match=and"&lt;/P&gt;&lt;P&gt;&amp;nbsp;is this possible?&lt;/P&gt;&lt;P&gt;Kindly help me identifying the possible solution.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2011 15:51:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5294397#M36326</guid>
      <dc:creator>anupav</dc:creator>
      <dc:date>2011-08-08T15:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: To search multiple strings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5294413#M36327</link>
      <description>&lt;P&gt;[ If you need further help with this, you may want to show the EXACT format of out.txt in the topic or TXT attachement. ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Change the AND or and (implied) OR:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ search/wild out.txt "ims21*down", "ims31*down"﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or, use a search tool with regular expression&amp;nbsp;capability, liek AWK or PERL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ perl -ne "print if /(ims21|ims32).*down/i" out.txt﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fwiw,&lt;/P&gt;&lt;P&gt;Hein&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2011 16:04:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5294413#M36327</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2011-08-08T16:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: To search multiple strings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5294461#M36328</link>
      <description>&lt;P&gt;&amp;gt;I wrote a script for monitoring a remote box (Unix box),﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wouldn't it be easier to monitor your Unix boxes using Unix commands and scripts?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2011 17:57:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5294461#M36328</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-08-08T17:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: To search multiple strings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5294477#M36329</link>
      <description>&lt;P&gt;To add to Hein's post, if you are running TCP/IP Services, you likely have a flavor of awk on your system in SYS$COMMON:[SYSHLP.EXAMPLES.TCPIP.SNMP]GAWK﻿&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Flavors of perl are freely available, you just need to download and install them.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2011 18:11:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5294477#M36329</guid>
      <dc:creator>Mike Kier</dc:creator>
      <dc:date>2011-08-08T18:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: To search multiple strings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5294525#M36330</link>
      <description>It's easier to monitor VMS boxes from Unix servers, too.&lt;BR /&gt;&lt;BR /&gt;And there are existing monitoring tools that can watch OpenVMS, and Mike mentions one of the main means for that: SNMP.</description>
      <pubDate>Mon, 08 Aug 2011 18:54:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5294525#M36330</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2011-08-08T18:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: To search multiple strings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5294785#M36331</link>
      <description>&lt;P&gt;Anup,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The DCL SEARCH command doesn't do complex expressions. If you're recent enough, wildcards might help. If not, you can achieve what you want as a pair of searches piped together:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;$ PIPE SEARCH DISK1:[anup]out.txt ims21, ims31 | SEARCH SYS$PIPE down

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;So, the first&amp;nbsp;SEARCH&amp;nbsp;finds all lines containing "ims21" or "ims31" (easy to add any new nodes to the list). The second finds those containing "down".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That said, I'd go with Perl. You can be far more specific with a regular expression.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2011 00:57:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5294785#M36331</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2011-08-09T00:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: To search multiple strings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5295149#M36332</link>
      <description>&lt;P&gt;Thanks for the reply, but i am not in a position to install other tools for monitoring i am authorized to use only the DCL commands and write a script so that it can search. and the pipe command does not work here as the version is V6.2-1H2.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2011 09:54:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5295149#M36332</guid>
      <dc:creator>anupav</dc:creator>
      <dc:date>2011-08-09T09:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: To search multiple strings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5295207#M36333</link>
      <description>&lt;P&gt;The following is somewhat crude, but with the restriction of V6.2, it should work.&amp;nbsp; Implement the "pipe" functions using a temp file.&amp;nbsp; Place the output of the first search into a temp file and then search that for "down".&amp;nbsp; Clean up the tempfile when done and there you go...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2011 11:04:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5295207#M36333</guid>
      <dc:creator>abrsvc</dc:creator>
      <dc:date>2011-08-09T11:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: To search multiple strings</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5295365#M36334</link>
      <description>&lt;P&gt;As far as perl goes, I guess it depends on what your management defines as "install" as there are versions that can be obtained or built that do not require a system-wide installation or special privileges.&amp;nbsp; It might be hard to find one pre-built and supported on a VMS release that old, but it may build.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You've also got TPU on the system (it is the foundation of the EVE editor).&amp;nbsp; It would take some effort to learn the syntax, but TPU is a language developed &lt;U&gt;expressly&lt;/U&gt; for text processing and can be made to do nearly anything you want (both LSE and VAX Notes were implemented in TPU).&amp;nbsp; The TPU documents are available online with the regular VMS OS documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2011 13:20:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/to-search-multiple-strings/m-p/5295365#M36334</guid>
      <dc:creator>Mike Kier</dc:creator>
      <dc:date>2011-08-09T13:20:39Z</dc:date>
    </item>
  </channel>
</rss>

