<?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: Need shell script to find IPs when instance names are known in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-to-find-ips-when-instance-names-are-known/m-p/4480979#M680342</link>
    <description>Hi Shiv:&lt;BR /&gt;&lt;BR /&gt;Perhaps you want:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;while read LAN X do&lt;BR /&gt;     ifconfig ${LAN}|awk 'NR==1 {LAN=$1};NR==2 {print LAN,$2}'&lt;BR /&gt;done &amp;lt; fileofnames&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
    <pubDate>Mon, 17 Aug 2009 18:47:59 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2009-08-17T18:47:59Z</dc:date>
    <item>
      <title>Need shell script to find IPs when instance names are known</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-to-find-ips-when-instance-names-are-known/m-p/4480978#M680341</link>
      <description>Hi,&lt;BR /&gt; &lt;BR /&gt;I have a file having instance names.&lt;BR /&gt;&lt;BR /&gt;Say for example:&lt;BR /&gt;abc&lt;BR /&gt;def&lt;BR /&gt;lmn&lt;BR /&gt;opr&lt;BR /&gt;xyz&lt;BR /&gt;&lt;BR /&gt;I want to find IP corrresponding to each of the instance and want to write in a new file&lt;BR /&gt;having instance and its IP.&lt;BR /&gt;&lt;BR /&gt;Can someone suggest a shell script ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Shiv</description>
      <pubDate>Mon, 17 Aug 2009 18:40:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-to-find-ips-when-instance-names-are-known/m-p/4480978#M680341</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2009-08-17T18:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Need shell script to find IPs when instance names are known</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-to-find-ips-when-instance-names-are-known/m-p/4480979#M680342</link>
      <description>Hi Shiv:&lt;BR /&gt;&lt;BR /&gt;Perhaps you want:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;while read LAN X do&lt;BR /&gt;     ifconfig ${LAN}|awk 'NR==1 {LAN=$1};NR==2 {print LAN,$2}'&lt;BR /&gt;done &amp;lt; fileofnames&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Aug 2009 18:47:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-to-find-ips-when-instance-names-are-known/m-p/4480979#M680342</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-08-17T18:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need shell script to find IPs when instance names are known</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-to-find-ips-when-instance-names-are-known/m-p/4480980#M680343</link>
      <description>In case i want to use nslookup on each of the instance having listed in a text file. Then how the script will look like ?</description>
      <pubDate>Mon, 17 Aug 2009 19:14:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-to-find-ips-when-instance-names-are-known/m-p/4480980#M680343</guid>
      <dc:creator>Shivkumar</dc:creator>
      <dc:date>2009-08-17T19:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need shell script to find IPs when instance names are known</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-to-find-ips-when-instance-names-are-known/m-p/4480981#M680344</link>
      <description>would you be looking for something like this then ?&lt;BR /&gt;&lt;BR /&gt;for i in `cat /tmp/fileofinstances`&lt;BR /&gt;do&lt;BR /&gt;name=`ifconfig $i | awk 'NR==2 {print LAN,$2}'| \&lt;BR /&gt;nslookup|grep ^Name|cut -d: -f2| tr -s " "|cut -d" " -f 2`&lt;BR /&gt;echo $i"  "$name&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Aug 2009 19:35:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/need-shell-script-to-find-ips-when-instance-names-are-known/m-p/4480981#M680344</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-08-17T19:35:49Z</dc:date>
    </item>
  </channel>
</rss>

