<?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: dynamically set the IP address in DISPLAY variable in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355027#M345261</link>
    <description>crickets ....</description>
    <pubDate>Wed, 11 Feb 2009 03:39:31 GMT</pubDate>
    <dc:creator>TwoProc</dc:creator>
    <dc:date>2009-02-11T03:39:31Z</dc:date>
    <item>
      <title>dynamically set the IP address in DISPLAY variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355020#M345254</link>
      <description>I need dynamically set the IP address in DISPLAY variable. After I using windows command line telnet to HP UX 11i version 1, I run who am I -muR, it give me the part of ip address like ::ffff:172.16.12. The acctual ip address should be 172.16.123.87. How can I get the full ipv4 address or ipv4-mapped-ipv6 address.</description>
      <pubDate>Mon, 09 Feb 2009 19:07:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355020#M345254</guid>
      <dc:creator>david.deng</dc:creator>
      <dc:date>2009-02-09T19:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically set the IP address in DISPLAY variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355021#M345255</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;few way to do it.&lt;BR /&gt;&lt;BR /&gt;HOSTNAME is already set.&lt;BR /&gt;&lt;BR /&gt;So you can use nslookup or dig to get the ip address.&lt;BR /&gt;&lt;BR /&gt;You will need to script it into a variable.&lt;BR /&gt;&lt;BR /&gt;The exact data you want comes from ifconfig&lt;BR /&gt;&lt;BR /&gt;In HP-UX ifconfig is a root only command and you need to give all users sudo permission to use it in order to do what you want.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 09 Feb 2009 19:39:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355021#M345255</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-02-09T19:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically set the IP address in DISPLAY variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355022#M345256</link>
      <description>How about...&lt;BR /&gt;$&amp;gt; DISPLAY=$(who am i -R |sed -e "s/^.*(//" -e "s/)$/:0.0")&lt;BR /&gt;$&amp;gt; echo $DISPLAY&lt;BR /&gt;&lt;BR /&gt;See if that works for you.</description>
      <pubDate>Mon, 09 Feb 2009 20:18:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355022#M345256</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2009-02-09T20:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically set the IP address in DISPLAY variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355023#M345257</link>
      <description>The problem is who am i -R only return part of the ip address.</description>
      <pubDate>Mon, 09 Feb 2009 20:22:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355023#M345257</guid>
      <dc:creator>david.deng</dc:creator>
      <dc:date>2009-02-09T20:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically set the IP address in DISPLAY variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355024#M345258</link>
      <description>Hi David:&lt;BR /&gt;&lt;BR /&gt;TwoProc meant to include a closing delimiter to his second 'sed' script:&lt;BR /&gt;&lt;BR /&gt;# DISPLAY=$(who am i -R |sed -e "s/^.*(//" -e "s/)$/:0.0/")&lt;BR /&gt;&lt;BR /&gt;Regards! :-)&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 09 Feb 2009 20:25:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355024#M345258</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-02-09T20:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically set the IP address in DISPLAY variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355025#M345259</link>
      <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;Your scripts works only when the "who am I" return the whole ip address. Right now if I using  Exceed CDE to login, "who am I" return whole ip. However, if I using telnet from windows command line to login, "who am I" only return ip address like ::ffff:172.16.12.</description>
      <pubDate>Mon, 09 Feb 2009 20:37:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355025#M345259</guid>
      <dc:creator>david.deng</dc:creator>
      <dc:date>2009-02-09T20:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically set the IP address in DISPLAY variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355026#M345260</link>
      <description>Thanks for the catch on that James.  I did leave it off.&lt;BR /&gt;&lt;BR /&gt;David, I didn't try with a Windows Telnet - sorry I just used ssh command.  Which brings up the question... Why are you using telnet?  Why is it still enabled on your server?  From a security standpoint - it really should be turned off, and you should convert to ssh.  You can download a free version of "putty" to get the same character based interface, and it CAN forward X11 data in the tunnel, so that you can still connect to your Exceed display.&lt;BR /&gt;&lt;BR /&gt;I know that's not what you asked - just trying to pass on some advice.  Feel free to ignore if you have circumstances that allow telnets use without risk.&lt;BR /&gt;&lt;BR /&gt;Sadly, I can't test the problem using telnet for you, because I don't have any systems that have it turned on anylonger.  &lt;BR /&gt;&lt;BR /&gt;However, you *could* try just this one thing:&lt;BR /&gt;add your ip address to the HP server's /etc/hosts file.  That way, instead of listing an IP address from "who am i -R" you'd get a machine name instead.On my server, if the server knows my machine name (via /etc/hosts, dns, whatever and however) it prints that instead of an IP address.  And DISPLAY=urcomputer:0.0 or DISPLAY=urcomputer.urdomain.com:0.0 or DISPLAY=xxx.xxx.xxx.xxx:0.0 is all just as good as any of the others.&lt;BR /&gt;&lt;BR /&gt;This last suggestion, at least to me - might stand a reasonable chance of working out for you via telnet, in combination with the fixed DISPLAY command that JRF posted.&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Feb 2009 21:24:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355026#M345260</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2009-02-09T21:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: dynamically set the IP address in DISPLAY variable</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355027#M345261</link>
      <description>crickets ....</description>
      <pubDate>Wed, 11 Feb 2009 03:39:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dynamically-set-the-ip-address-in-display-variable/m-p/4355027#M345261</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2009-02-11T03:39:31Z</dc:date>
    </item>
  </channel>
</rss>

