<?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 PC Name or IP Address in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300758#M567508</link>
    <description>WHen I do a who nothing shows.  I will try the Baan/Unix script.</description>
    <pubDate>Wed, 09 Jun 2004 15:44:01 GMT</pubDate>
    <dc:creator>Bob Ferro</dc:creator>
    <dc:date>2004-06-09T15:44:01Z</dc:date>
    <item>
      <title>FInd PC Name or IP Address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300755#M567505</link>
      <description>I have a Unix 11i system running BaanIV as the application.  The user connects to BaanIV thru a Windows Client tool.  Under normal conditions, I could do a grep and find the PC name for the user.  This was very helpful when you wanted to identify who is logged on and where.  I had to make a change and substitute a Unix script to interface between the PC and Unix.  This was so a user could not log on more than their max amounts.  By doing this I cannot find out where a user is logged at.  Is there a way to query the Unix system to find either the PC name or the IP address?  I tried netstat but to no avail.  Our clients are running either NT or 2000.&lt;BR /&gt;Thanks,&lt;BR /&gt;Bob</description>
      <pubDate>Wed, 09 Jun 2004 15:33:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300755#M567505</guid>
      <dc:creator>Bob Ferro</dc:creator>
      <dc:date>2004-06-09T15:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: FInd PC Name or IP Address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300756#M567506</link>
      <description>How are they logging in?  Do the users show up if you do a 'who' command?  If so, try 'who -R'.&lt;BR /&gt;&lt;BR /&gt;If you have lsof installed, that may be able to do it as well.</description>
      <pubDate>Wed, 09 Jun 2004 15:36:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300756#M567506</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-06-09T15:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: FInd PC Name or IP Address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300757#M567507</link>
      <description>Used to use Baan, 3.1....&lt;BR /&gt;&lt;BR /&gt;Had a script like this:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;# triton31.usage&lt;BR /&gt;#&lt;BR /&gt;# Geoff Wild October 1998&lt;BR /&gt;# Set up environment&lt;BR /&gt;BSE=/usr6/triton3.1/bse&lt;BR /&gt;BSE_TMP=$BSE/tmp&lt;BR /&gt;PATH=$PATH:$BSE/bin&lt;BR /&gt;export BSE BSE_TMP PATH&lt;BR /&gt;# Set up logfile&lt;BR /&gt;logfile=/tmp/triton.usage.log&lt;BR /&gt;if [ -f $logfile ];&lt;BR /&gt;then&lt;BR /&gt;        rm $logfile&lt;BR /&gt;        touch $logfile&lt;BR /&gt;else&lt;BR /&gt;        touch $logfile&lt;BR /&gt;fi&lt;BR /&gt;echo `date`  &amp;gt;&amp;gt;$logfile 2&amp;gt;&amp;amp;1; /usr6/triton3.1/bse/bin/licmon6.1 -w|grep -v SERVER| wc|awk '{print "T&lt;BR /&gt;here are",$1, "Triton 3.1 Users"}' &amp;gt;&amp;gt;$logfile 2&amp;gt;&amp;amp;1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;That may give you some idea - I'm sure there is a command to list userids connected...&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jun 2004 15:41:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300757#M567507</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-06-09T15:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: FInd PC Name or IP Address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300758#M567508</link>
      <description>WHen I do a who nothing shows.  I will try the Baan/Unix script.</description>
      <pubDate>Wed, 09 Jun 2004 15:44:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300758#M567508</guid>
      <dc:creator>Bob Ferro</dc:creator>
      <dc:date>2004-06-09T15:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: FInd PC Name or IP Address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300759#M567509</link>
      <description>Maybe something like this:&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;# Modification Log&lt;BR /&gt;#&lt;BR /&gt;# Edited by        Description                  Date&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# Setup Environment&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;BSE=/usr6/triton3.1/bse&lt;BR /&gt;BSE_TMP=$BSE/tmp&lt;BR /&gt;PATH=$PATH:$BSE/bin&lt;BR /&gt;export BSE BSE_TMP PATH&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;#&lt;BR /&gt;date&lt;BR /&gt;licmon6.1 &amp;lt;&amp;lt; EOF  | grep -v -E 'licmon|END'&lt;BR /&gt;u&lt;BR /&gt;quit&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;licmon6.1 &amp;lt;&amp;lt; EOF | awk '{print $3}'|grep -v -E 'jamaica|USER'| awk '{FS="."} {print $1}' | sort | uniq -c | sort -nr | grep -vE "^   [0-9] $"&lt;BR /&gt;who&lt;BR /&gt;quit&lt;BR /&gt;EOF&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Jun 2004 15:47:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300759#M567509</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-06-09T15:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: FInd PC Name or IP Address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300760#M567510</link>
      <description>Bob,&lt;BR /&gt;&lt;BR /&gt;We use baan here too on different platforms. I normally use the netstat comand to find the client bshell user's hostname or ipaddress. You mentioned that "I tried netstat but to no avail.", ca you elaborate on that.&lt;BR /&gt;&lt;BR /&gt;What I normally do is,&lt;BR /&gt;# netstat -an | grep "\.7150" | awk {'print $5'} --&amp;gt; for users signing on via blogind method &lt;BR /&gt;or&lt;BR /&gt;# netstat -an | grep "\.512" | awk {'print $5'} --&amp;gt; for logged on via rexec.&lt;BR /&gt;&lt;BR /&gt;regds,&lt;BR /&gt;Abdul.</description>
      <pubDate>Wed, 09 Jun 2004 16:32:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300760#M567510</guid>
      <dc:creator>Abdul Rahiman</dc:creator>
      <dc:date>2004-06-09T16:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: FInd PC Name or IP Address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300761#M567511</link>
      <description>did you try this:&lt;BR /&gt;#last -R&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Jun 2004 00:41:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300761#M567511</guid>
      <dc:creator>Norman_21</dc:creator>
      <dc:date>2004-06-10T00:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: FInd PC Name or IP Address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300762#M567512</link>
      <description>Thanks for everyone answer but the netstat give me the IP address but not the hostname (PC name).  Normally when Baan use the bshell6.1 program, you can do a grep on a username and find the hostname, i.e. bferro@mypc where mypc is my hostname.  When you intercept this process with a script, you look that visibility.  How does Baan get the info?&lt;BR /&gt;&lt;BR /&gt;Thanks again&lt;BR /&gt;Bob</description>
      <pubDate>Thu, 10 Jun 2004 15:20:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300762#M567512</guid>
      <dc:creator>Bob Ferro</dc:creator>
      <dc:date>2004-06-10T15:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: FInd PC Name or IP Address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300763#M567513</link>
      <description>Hi Bob,&lt;BR /&gt;&lt;BR /&gt;If you drop the -n from the netstat command it will attempt hostname lookups &amp;amp; display that instead. Of course the PCs *must* be in DNS to get a name returned. If the IP is not resolvable then netstat will return the IP.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 10 Jun 2004 15:23:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300763#M567513</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-06-10T15:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: FInd PC Name or IP Address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300764#M567514</link>
      <description>Hi Jeff,&lt;BR /&gt;&lt;BR /&gt;Most of the PCs use DHCP (dynamic IP).  The funny thing is that if you grep the Unix/BaanIV user name, the hostname or PC name would be displayed.  Now that I use a Unix script instead of the BaanIV bshell6.1 program, I don't see it anymore.</description>
      <pubDate>Fri, 11 Jun 2004 14:00:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300764#M567514</guid>
      <dc:creator>Bob Ferro</dc:creator>
      <dc:date>2004-06-11T14:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: FInd PC Name or IP Address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300765#M567515</link>
      <description>Could you post the unix script that you are using to invoke the bshell pls..?&lt;BR /&gt;&lt;BR /&gt;~Abdul.</description>
      <pubDate>Fri, 11 Jun 2004 14:44:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300765#M567515</guid>
      <dc:creator>Abdul Rahiman</dc:creator>
      <dc:date>2004-06-11T14:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: FInd PC Name or IP Address</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300766#M567516</link>
      <description>The Unix script is attached and the following is the results of the "ps -ef | grep rroth" command where rroth is the userid.&lt;BR /&gt;&lt;BR /&gt;rroth 25266   623  0 14:29:50 ?  0:00 /bin/ksh /baan/bse/bin/script6.2 -1 545 0 1&lt;BR /&gt;   rroth 25275 25266  0 14:29:51 ?  0:06 /baan/bse/bin/bshell -1 545 0 1&lt;BR /&gt;   rroth 25276 25275  0 14:29:53 ?  0:00 oracle8 (rroth:25275/PIPE) 25275 321 10 11&lt;BR /&gt;   rroth 25278     1  0 14:29:53 ?  0:00 oraclebaanIV (DESCRIPTION=(LOCAL=YES)(SDU=8192)(TDU=8192)(AD</description>
      <pubDate>Fri, 11 Jun 2004 14:52:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/find-pc-name-or-ip-address/m-p/3300766#M567516</guid>
      <dc:creator>Bob Ferro</dc:creator>
      <dc:date>2004-06-11T14:52:24Z</dc:date>
    </item>
  </channel>
</rss>

