<?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: GETTING IPADDRESS in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615272#M37401</link>
    <description>Since this is -probably- related to setting the display, you can get just the IP address from:&lt;BR /&gt;&lt;BR /&gt;who am i -u | awk '{print $8}'&lt;BR /&gt;&lt;BR /&gt;Party on Dude!&lt;BR /&gt;James</description>
    <pubDate>Fri, 16 Nov 2001 10:02:29 GMT</pubDate>
    <dc:creator>James Beamish-White</dc:creator>
    <dc:date>2001-11-16T10:02:29Z</dc:date>
    <item>
      <title>GETTING IPADDRESS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615269#M37398</link>
      <description>Hi,&lt;BR /&gt;    When I do "who am I -R "the output gives me my terminal no. and the hostname (if defined in /etc/hosts) or ipaddress if not defined in /etc/hosts file.&lt;BR /&gt;Are there any other ways by which I can get the ipaddress for the connection ?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Hemant</description>
      <pubDate>Fri, 16 Nov 2001 09:53:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615269#M37398</guid>
      <dc:creator>Hemant_2</dc:creator>
      <dc:date>2001-11-16T09:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: GETTING IPADDRESS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615270#M37399</link>
      <description>"who -T" will give you the IP addresses of all users logged in.&lt;BR /&gt;You can grep for your login name / tty from this list, if you want.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Nov 2001 09:58:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615270#M37399</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-11-16T09:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: GETTING IPADDRESS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615271#M37400</link>
      <description>Hi, &lt;BR /&gt;you can try :&lt;BR /&gt;who -u | grep $(who am i| awk '{ print $2 }')&lt;BR /&gt;&lt;BR /&gt;Fr??d??ric</description>
      <pubDate>Fri, 16 Nov 2001 10:02:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615271#M37400</guid>
      <dc:creator>Frederic Sevestre</dc:creator>
      <dc:date>2001-11-16T10:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: GETTING IPADDRESS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615272#M37401</link>
      <description>Since this is -probably- related to setting the display, you can get just the IP address from:&lt;BR /&gt;&lt;BR /&gt;who am i -u | awk '{print $8}'&lt;BR /&gt;&lt;BR /&gt;Party on Dude!&lt;BR /&gt;James</description>
      <pubDate>Fri, 16 Nov 2001 10:02:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615272#M37401</guid>
      <dc:creator>James Beamish-White</dc:creator>
      <dc:date>2001-11-16T10:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: GETTING IPADDRESS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615273#M37402</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Do a who -R and and filter out the hostname. with nslookup you should be able to get te ip-adress.&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Fri, 16 Nov 2001 10:03:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615273#M37402</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2001-11-16T10:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: GETTING IPADDRESS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615274#M37403</link>
      <description>Hi All,&lt;BR /&gt;       Thanks for you very fast replies but I want to get ipaddress without using "who" or /etc/hosts for a session.&lt;BR /&gt;The situation is like this,&lt;BR /&gt;In /etc/hosts file 2 different  ip address have same hostname but who am i will always show me this common "hostname" so I need to avoid using "who" and /etc/hosts file. &lt;BR /&gt;So based on say terminal name which will be different for both.&lt;BR /&gt;That is what I meant.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hemant</description>
      <pubDate>Fri, 16 Nov 2001 10:18:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615274#M37403</guid>
      <dc:creator>Hemant_2</dc:creator>
      <dc:date>2001-11-16T10:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: GETTING IPADDRESS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615275#M37404</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;try netstat -an&lt;BR /&gt;&lt;BR /&gt;Gideon</description>
      <pubDate>Fri, 16 Nov 2001 10:34:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615275#M37404</guid>
      <dc:creator>G. Vrijhoeven</dc:creator>
      <dc:date>2001-11-16T10:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: GETTING IPADDRESS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615276#M37405</link>
      <description>I wrote the following C program to get around a similar problem - I didn't want to reverse lookup the IP address but there's no way to tell 'who' not to do this.&lt;BR /&gt;&lt;BR /&gt;This program emulates a 'who -u' by reading the utmpx file and displaying a list of users currently logged in, but prints the IP address as stored in the utmpx entry instead of resolving the hostname.&lt;BR /&gt;&lt;BR /&gt;Compile as follows (you'll need gcc or the ANSI C compiler)&lt;BR /&gt;&lt;BR /&gt;$ cc -Ae mywho.c -o mywho&lt;BR /&gt;&lt;BR /&gt;Have fun...</description>
      <pubDate>Fri, 16 Nov 2001 12:44:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615276#M37405</guid>
      <dc:creator>Steven Gillard_2</dc:creator>
      <dc:date>2001-11-16T12:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: GETTING IPADDRESS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615277#M37406</link>
      <description>See man last:&lt;BR /&gt;&lt;BR /&gt;i.e:&lt;BR /&gt;&lt;BR /&gt;last -20 -R  pts/ty</description>
      <pubDate>Fri, 16 Nov 2001 13:39:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615277#M37406</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2001-11-16T13:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: GETTING IPADDRESS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615278#M37407</link>
      <description>Try &lt;BR /&gt;&lt;BR /&gt;ip=`env | grep TERM`&lt;BR /&gt;nslookup $ip</description>
      <pubDate>Fri, 16 Nov 2001 13:53:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615278#M37407</guid>
      <dc:creator>Krishna Prasad</dc:creator>
      <dc:date>2001-11-16T13:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: GETTING IPADDRESS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615279#M37408</link>
      <description>Would getip command be useful here?&lt;BR /&gt;&lt;BR /&gt;   getip hostname&lt;BR /&gt;&lt;BR /&gt;returns the IP address of the host.&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Nov 2001 14:20:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615279#M37408</guid>
      <dc:creator>Fred Martin_1</dc:creator>
      <dc:date>2001-11-16T14:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: GETTING IPADDRESS</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615280#M37409</link>
      <description>Hi ,&lt;BR /&gt;     Steven Gillard has provided the a very nice C program and these has solved my problem.&lt;BR /&gt;Thanks very much Steven !&lt;BR /&gt;&lt;BR /&gt;And also thanks to all who spend there time giving me a solution.&lt;BR /&gt;&lt;BR /&gt;And also THANKS to HP forum.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Hemant&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Nov 2001 14:21:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/getting-ipaddress/m-p/2615280#M37409</guid>
      <dc:creator>Hemant_2</dc:creator>
      <dc:date>2001-11-16T14:21:42Z</dc:date>
    </item>
  </channel>
</rss>

