<?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: Find client IP addresses that connecto UNIX server. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587947#M230898</link>
    <description>This question has been asked recently and the answer is, as long as the dns can resolve the IP address of the host, you will see the dns provided name not the IP. And when it comes to MAC addresses, you are getting into arp/rarp tables and unless you are willing to do some programming, there is no way of getting MAC addresses of connected systems from the OS level commands as far as I know.&lt;BR /&gt;&lt;BR /&gt;To get the host IP addresses you need to wrap your "who -r" command in some sort of a script .</description>
    <pubDate>Thu, 21 Jul 2005 10:33:09 GMT</pubDate>
    <dc:creator>Mel Burslan</dc:creator>
    <dc:date>2005-07-21T10:33:09Z</dc:date>
    <item>
      <title>Find client IP addresses that connecto UNIX server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587946#M230897</link>
      <description>Hello,&lt;BR /&gt;   I am running HP-UX 11.0 on L2000 HP9000 server.  You can run who -r to get the host name of users connected to the system.  &lt;BR /&gt;How can I get the IP address of that PC.&lt;BR /&gt;&lt;BR /&gt;The server must know the host name , IP, and MAC addresses of all that are connected to it.&lt;BR /&gt;IS there a command that will show this information to me?</description>
      <pubDate>Thu, 21 Jul 2005 10:27:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587946#M230897</guid>
      <dc:creator>David Johnson_6</dc:creator>
      <dc:date>2005-07-21T10:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Find client IP addresses that connecto UNIX server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587947#M230898</link>
      <description>This question has been asked recently and the answer is, as long as the dns can resolve the IP address of the host, you will see the dns provided name not the IP. And when it comes to MAC addresses, you are getting into arp/rarp tables and unless you are willing to do some programming, there is no way of getting MAC addresses of connected systems from the OS level commands as far as I know.&lt;BR /&gt;&lt;BR /&gt;To get the host IP addresses you need to wrap your "who -r" command in some sort of a script .</description>
      <pubDate>Thu, 21 Jul 2005 10:33:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587947#M230898</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-07-21T10:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Find client IP addresses that connecto UNIX server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587948#M230899</link>
      <description>With name resolution in place you will get the system name, other wise you will get the IP.&lt;BR /&gt;&lt;BR /&gt;Do not see any options for the MAC&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Jul 2005 10:35:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587948#M230899</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-07-21T10:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Find client IP addresses that connecto UNIX server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587949#M230900</link>
      <description>By the way, who -r will tell you what run level you are at.&lt;BR /&gt;&lt;BR /&gt;Use the 'who -RT' or 'who -um'&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Jul 2005 10:36:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587949#M230900</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-07-21T10:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Find client IP addresses that connecto UNIX server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587950#M230901</link>
      <description>Thank you, for your answers.&lt;BR /&gt;&lt;BR /&gt;I am trying to send a file to a client that is not resolved in DNS.  I can get the host name becasue it signs in to the server, but I need the IP address.</description>
      <pubDate>Thu, 21 Jul 2005 10:40:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587950#M230901</guid>
      <dc:creator>David Johnson_6</dc:creator>
      <dc:date>2005-07-21T10:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Find client IP addresses that connecto UNIX server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587951#M230902</link>
      <description>A quick/dirty script to help.&lt;BR /&gt;&lt;BR /&gt;LOOKUP=`who -um | awk '{print $NF}'`&lt;BR /&gt;nslookup $line&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The last field in the 'who -um' will be the name or IP, depending on resolution.&lt;BR /&gt;&lt;BR /&gt;Do the nslookup command the the result. Be it name or IP address you will get a result.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Jul 2005 10:52:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587951#M230902</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-07-21T10:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Find client IP addresses that connecto UNIX server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587952#M230903</link>
      <description>This is what I came up for listing the "who -R" output with IP addresses instead of hostnames.&lt;BR /&gt;(Beware, it is NOT error-proof as it is a quick hack)&lt;BR /&gt;&lt;BR /&gt;who -R | while read u p m d t h&lt;BR /&gt;do&lt;BR /&gt;hh=`echo $h | cut -d"(" -f2 | cut -")" -f1`&lt;BR /&gt;hh1=`echo $hh -cut -c1`&lt;BR /&gt;case "$hh1" in&lt;BR /&gt;[0-9] ) hip=$hh ;;&lt;BR /&gt;* ) hip=`nslookup $hh|grep ^Address|cut -d: -f2|sed -e "1,1s/  //"` ;;&lt;BR /&gt;esac&lt;BR /&gt;echo $u"\t"$p"\t"$m" "$t"\t"$hip&lt;BR /&gt;done&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Jul 2005 11:13:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587952#M230903</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-07-21T11:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Find client IP addresses that connecto UNIX server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587953#M230904</link>
      <description>Sorry, there was a typo in the above response, which is corrected below&lt;BR /&gt;&lt;BR /&gt;who -R | while read u p m d t h&lt;BR /&gt;do&lt;BR /&gt;hh=`echo $h | cut -d"(" -f2 | cut -d")" -f1`&lt;BR /&gt;hh1=`echo $hh -cut -c1`&lt;BR /&gt;case "$hh1" in&lt;BR /&gt;[0-9] ) hip=$hh ;;&lt;BR /&gt;* ) hip=`nslookup $hh|grep ^Address|cut -d: -f2|sed -e "1,1s/ //"` ;;&lt;BR /&gt;esac&lt;BR /&gt;echo $u"\t"$p"\t"$m" "$t"\t"$hip&lt;BR /&gt;done</description>
      <pubDate>Thu, 21 Jul 2005 11:21:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587953#M230904</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-07-21T11:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Find client IP addresses that connecto UNIX server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587954#M230905</link>
      <description>So I am assuming there in no strait out command to get the IP addresses like the you get the host names?  I cannot use nslookup to resolve the Host names in DNS.  The entries on new client may not be in for weeks at a time.&lt;BR /&gt;&lt;BR /&gt;Last -R, who -u know the host names.  Nestat knows the IP address, and arp knows the MAC address.  There is no way to put them together without DNS?&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Jul 2005 11:41:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587954#M230905</guid>
      <dc:creator>David Johnson_6</dc:creator>
      <dc:date>2005-07-21T11:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Find client IP addresses that connecto UNIX server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587955#M230906</link>
      <description>Depending on how the /etc/nsswitch.conf is configured and how much info is contained in the /etc/hosts file, you may still be able to use the nslookup command.&lt;BR /&gt;&lt;BR /&gt;To put all together so you can get name, IP, MAC - you will need to script this. No single command to get all of this info.&lt;BR /&gt;</description>
      <pubDate>Thu, 21 Jul 2005 11:50:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587955#M230906</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2005-07-21T11:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Find client IP addresses that connecto UNIX server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587956#M230907</link>
      <description>Ok, thank you for your help.</description>
      <pubDate>Thu, 21 Jul 2005 12:17:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587956#M230907</guid>
      <dc:creator>David Johnson_6</dc:creator>
      <dc:date>2005-07-21T12:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Find client IP addresses that connecto UNIX server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587957#M230908</link>
      <description>As I have stated in my earlier repsonse, info is available but you need to program and put the things together.&lt;BR /&gt;&lt;BR /&gt;arp -a &lt;BR /&gt;&lt;BR /&gt;command will give you the contents of the arp table which will include the hostname (if resolvable by nsswitch.conf/hosts/dns combination) host interface IP address and host interface MAC address in a rather uniform format. All you have to do is use the right combination of, who, grep, cut, awk, nslookup and arp commands to extract the information you need and put them to output of your choice. Wish I had enough time to help you out with the script but today is not one of those days :)</description>
      <pubDate>Thu, 21 Jul 2005 12:18:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587957#M230908</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-07-21T12:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Find client IP addresses that connecto UNIX server.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587958#M230909</link>
      <description>I am confused...  If who is giving you the nodename, then it must have some sort of name resolution working for the name/address.  Because, as stated before and verified by a test I just ran on my machine, if the name/address does not exist in the DNS, then who -am gives the address in the last column.</description>
      <pubDate>Thu, 21 Jul 2005 12:39:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-client-ip-addresses-that-connecto-unix-server/m-p/3587958#M230909</guid>
      <dc:creator>Alan Meyer_4</dc:creator>
      <dc:date>2005-07-21T12:39:20Z</dc:date>
    </item>
  </channel>
</rss>

