<?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 to gather some lan information in HPUX 11.11 - 11.23 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-gather-some-lan-information-in-hpux-11-11-11-23/m-p/4460050#M679971</link>
    <description>Oops, I need a "," to separate the two awk fields:&lt;BR /&gt;netstat -in | grep $i | awk '{print $1, $2}') |</description>
    <pubDate>Wed, 15 Jul 2009 09:03:53 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2009-07-15T09:03:53Z</dc:date>
    <item>
      <title>Script to gather some lan information in HPUX 11.11 - 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-gather-some-lan-information-in-hpux-11-11-11-23/m-p/4460048#M679969</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to write a script to gather information about standby lan cards in clusters. I need to check which lans are standby and I need to obtain the values of MTU for these lans to pass them to a tcpdump:&lt;BR /&gt;&lt;BR /&gt;tcpdump -i &lt;LAN&gt; –n –v -s &lt;MTU&gt; -c 1 'ether[20:2] == 0x2000'&lt;BR /&gt;&lt;BR /&gt;I can obtain the standby lan cards from:&lt;BR /&gt;&lt;BR /&gt;server1:/&amp;gt;# cmviewcl -v |grep STANDBY | awk '{print$4}'&lt;BR /&gt;lan7&lt;BR /&gt;lan8&lt;BR /&gt;&lt;BR /&gt;..and the MTU from:&lt;BR /&gt;&lt;BR /&gt;server1:/&amp;gt;#  for i in `cmviewcl -v |grep STANDBY | awk '{print$4}'`^Jdo^Jnetstat -in | grep $i | awk '{print$1$2}'^Jdone&lt;BR /&gt;lan7*1500&lt;BR /&gt;lan8*1500&lt;BR /&gt;&lt;BR /&gt;But I did not do shell scripting for a long time and I do not remember how to pass these values to the tcpdump. Any help will be appreciated !&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/MTU&gt;&lt;/LAN&gt;</description>
      <pubDate>Wed, 15 Jul 2009 07:54:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-gather-some-lan-information-in-hpux-11-11-11-23/m-p/4460048#M679969</guid>
      <dc:creator>Santos Vega</dc:creator>
      <dc:date>2009-07-15T07:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Script to gather some LAN information in HPUX 11.11 - 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-gather-some-lan-information-in-hpux-11-11-11-23/m-p/4460049#M679970</link>
      <description>&lt;!--  !*#  --&gt;&lt;P&gt;&amp;gt;I do not remember how to pass these values to the tcpdump.&lt;BR /&gt;&lt;BR /&gt;for i in $(cmviewcl -v | grep STANDBY | awk '{print $4}'); do&lt;BR /&gt;&amp;nbsp;&amp;nbsp; netstat -in | grep $i | awk'{print $1, $2}') |&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; read LAN MTU dummy&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tcpdump -i $LAN -n -v -s $MTU -c 1 'ether[20:2] == 0x2000'&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;(I'm not sure why you had a "*" between the two?)&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2011 04:52:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-gather-some-lan-information-in-hpux-11-11-11-23/m-p/4460049#M679970</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-08-29T04:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script to gather some lan information in HPUX 11.11 - 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-gather-some-lan-information-in-hpux-11-11-11-23/m-p/4460050#M679971</link>
      <description>Oops, I need a "," to separate the two awk fields:&lt;BR /&gt;netstat -in | grep $i | awk '{print $1, $2}') |</description>
      <pubDate>Wed, 15 Jul 2009 09:03:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-gather-some-lan-information-in-hpux-11-11-11-23/m-p/4460050#M679971</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-15T09:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script to gather some lan information in HPUX 11.11 - 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-gather-some-lan-information-in-hpux-11-11-11-23/m-p/4460051#M679972</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thank you very much! I had to add a "sed" to get rid of the "*", so the script is:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;for i in `cmviewcl -v |grep STANDBY | awk '{print$4}'`&lt;BR /&gt;&amp;gt;do&lt;BR /&gt;&amp;gt;netstat -in |sed 's/*//'| grep $i | awk '{print $1,$2}' | read LAN MTU dummy&lt;BR /&gt;&amp;gt;/usr/local/sbin/tcpdump -i $LAN -n -v -s $MTU -c 1 'ether[20:2] == 0x2000'&lt;BR /&gt;&amp;gt;done&lt;BR /&gt;&lt;BR /&gt;..and now it works.&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Wed, 15 Jul 2009 09:33:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-gather-some-lan-information-in-hpux-11-11-11-23/m-p/4460051#M679972</guid>
      <dc:creator>Santos Vega</dc:creator>
      <dc:date>2009-07-15T09:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Script to gather some lan information in HPUX 11.11 - 11.23</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-to-gather-some-lan-information-in-hpux-11-11-11-23/m-p/4460052#M679973</link>
      <description>&amp;gt;I had to add a "sed" to get rid of the "*", so the script is:&lt;BR /&gt;&lt;BR /&gt;You can change awk to do that, also the grep.&lt;BR /&gt;Where is the "*", attached to field $1 or $2?</description>
      <pubDate>Wed, 15 Jul 2009 10:31:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-to-gather-some-lan-information-in-hpux-11-11-11-23/m-p/4460052#M679973</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2009-07-15T10:31:28Z</dc:date>
    </item>
  </channel>
</rss>

