<?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: help in script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-script/m-p/4652611#M677032</link>
    <description>&lt;!--!*#--&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;To run a command with a list as you are asking could look something like:&lt;BR /&gt;&lt;BR /&gt;# cat ./myrun&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;while read HOST&lt;BR /&gt;do&lt;BR /&gt;    echo "HOST=${HOST}"&lt;BR /&gt;    ovtopodump -lr ${HOST}|awk '/INTERFACE DESCRIPTION/' &lt;BR /&gt;done &amp;lt; ./myhosts&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;...where the 'myhosts' file has lines of server hostname's, one per line.&lt;BR /&gt;&lt;BR /&gt;You said:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; INTERFACE DESCRIPTION should be compared, if yes then command should be executed.&lt;BR /&gt;&lt;BR /&gt;Compared to what? and what should be executed?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 24 Jun 2010 12:31:48 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2010-06-24T12:31:48Z</dc:date>
    <item>
      <title>help in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-script/m-p/4652610#M677031</link>
      <description>Hi Experts,&lt;BR /&gt;&lt;BR /&gt;please help me on this&lt;BR /&gt;&lt;BR /&gt;If i run this command &lt;BR /&gt;ovtopodump -lr &lt;NODE name=""&gt;|awk '/INTERFACE DESCRIPTION/ &lt;BR /&gt;&lt;BR /&gt;The o/p will be like this&lt;BR /&gt;&lt;BR /&gt;        INTERFACE DESCRIPTION:  Loopback0&lt;BR /&gt;        INTERFACE DESCRIPTION:  Loopback1&lt;BR /&gt;        INTERFACE DESCRIPTION:  Serial0/2/0:0&lt;BR /&gt;        INTERFACE DESCRIPTION:  FastEthernet0/1&lt;BR /&gt;        &lt;BR /&gt;&lt;BR /&gt;I need to automate this command &lt;BR /&gt;1.&lt;NODE name=""&gt; should be taken from a file&lt;BR /&gt;2. INTERFACE DESCRIPTION should be compared, if yes then command should be executed.&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;/NODE&gt;&lt;/NODE&gt;</description>
      <pubDate>Thu, 24 Jun 2010 12:16:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-script/m-p/4652610#M677031</guid>
      <dc:creator>Anish Kumar</dc:creator>
      <dc:date>2010-06-24T12:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: help in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-script/m-p/4652611#M677032</link>
      <description>&lt;!--!*#--&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;To run a command with a list as you are asking could look something like:&lt;BR /&gt;&lt;BR /&gt;# cat ./myrun&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;while read HOST&lt;BR /&gt;do&lt;BR /&gt;    echo "HOST=${HOST}"&lt;BR /&gt;    ovtopodump -lr ${HOST}|awk '/INTERFACE DESCRIPTION/' &lt;BR /&gt;done &amp;lt; ./myhosts&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;...where the 'myhosts' file has lines of server hostname's, one per line.&lt;BR /&gt;&lt;BR /&gt;You said:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; INTERFACE DESCRIPTION should be compared, if yes then command should be executed.&lt;BR /&gt;&lt;BR /&gt;Compared to what? and what should be executed?&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF... &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Jun 2010 12:31:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-script/m-p/4652611#M677032</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-24T12:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: help in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-script/m-p/4652612#M677033</link>
      <description>Hi Kumar&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Script right by Fergunson should work&lt;BR /&gt;&lt;BR /&gt;Another option:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;for i in `/tmp/myhost`&lt;BR /&gt;do&lt;BR /&gt;ovtopodump -lr $i|awk '/INTERFACE DESCRIPTION/'&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Regards.&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Jun 2010 15:46:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-script/m-p/4652612#M677033</guid>
      <dc:creator>nightwich</dc:creator>
      <dc:date>2010-06-25T15:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: help in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-script/m-p/4652613#M677034</link>
      <description>Hi Nightwatch,&lt;BR /&gt;&amp;gt;&amp;gt;for i in `/tmp/myhost`&lt;BR /&gt;&lt;BR /&gt;It should be like this you forget the "cat"&lt;BR /&gt;&lt;BR /&gt;for i in `cat /tmp/myhost`&lt;BR /&gt;do&lt;BR /&gt;ovtopodump -lr $i|awk '/INTERFACE DESCRIPTION/'&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Sat, 26 Jun 2010 02:15:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-script/m-p/4652613#M677034</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2010-06-26T02:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: help in script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-in-script/m-p/4652614#M677035</link>
      <description>&amp;gt;Suraj: It should be like this, you forget the cat&lt;BR /&gt;&lt;BR /&gt;Or just toss the cat:&lt;BR /&gt;for i in $(&amp;lt; /tmp/myhost); do</description>
      <pubDate>Sat, 26 Jun 2010 19:03:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-in-script/m-p/4652614#M677035</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2010-06-26T19:03:02Z</dc:date>
    </item>
  </channel>
</rss>

