<?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 Trace IP address from PROCESS ID in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-ip-address-from-process-id/m-p/3153544#M158044</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;All the users are logging into the HP-Ux server using same username for certain process. Is it possible to trace back the IP address of the workstation using PROCESS ID or something else.&lt;BR /&gt;&lt;BR /&gt;Please let me know if anyone has solution.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
    <pubDate>Mon, 29 Dec 2003 19:00:40 GMT</pubDate>
    <dc:creator>Nitin Nigam</dc:creator>
    <dc:date>2003-12-29T19:00:40Z</dc:date>
    <item>
      <title>Trace IP address from PROCESS ID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-ip-address-from-process-id/m-p/3153544#M158044</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;All the users are logging into the HP-Ux server using same username for certain process. Is it possible to trace back the IP address of the workstation using PROCESS ID or something else.&lt;BR /&gt;&lt;BR /&gt;Please let me know if anyone has solution.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 29 Dec 2003 19:00:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-ip-address-from-process-id/m-p/3153544#M158044</guid>
      <dc:creator>Nitin Nigam</dc:creator>
      <dc:date>2003-12-29T19:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trace IP address from PROCESS ID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-ip-address-from-process-id/m-p/3153545#M158045</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I suppose that your users get connection with an database on your UNIX box.&lt;BR /&gt;Can you use your database utility to look fot the connection ?&lt;BR /&gt;&lt;BR /&gt;Can you give as more info over the  proces that your users start.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Idriz</description>
      <pubDate>Mon, 29 Dec 2003 19:28:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-ip-address-from-process-id/m-p/3153545#M158045</guid>
      <dc:creator>I.Delic</dc:creator>
      <dc:date>2003-12-29T19:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Trace IP address from PROCESS ID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-ip-address-from-process-id/m-p/3153546#M158046</link>
      <description>Yes it is possbile if you have lsof installed. &lt;BR /&gt;You can grep for the process for that login id and then run&lt;BR /&gt;/opt/lsof/bin/lsof -p $id | grep ESTABLISHED&lt;BR /&gt;for each PID ($ id is the process id)&lt;BR /&gt;you'll get the IP address or the host name connected to that process.</description>
      <pubDate>Mon, 29 Dec 2003 19:30:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-ip-address-from-process-id/m-p/3153546#M158046</guid>
      <dc:creator>Rajeev  Shukla</dc:creator>
      <dc:date>2003-12-29T19:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Trace IP address from PROCESS ID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-ip-address-from-process-id/m-p/3153547#M158047</link>
      <description>Shared accounts are bad for auditing and best avoided where possible.  If the clients all connect through a middle tier application server, then you will not be able to find the IP from the server.  If they connect direct to the HP-UX box, but all using the same account (why?) then try this alternative, all on one command line, substitute 'username' for the user you want to list.&lt;BR /&gt;&lt;BR /&gt;$ /usr/bin/w username | awk '{c=sprintf("who -R | grep %s",$2);print $0;system(c)}' | awk '{printf("%s\t",$0);&lt;BR /&gt;getline;print $6}'&lt;BR /&gt;&lt;BR /&gt;It uses the tty or pseudo tty as a grep search pattern in who -R for each matching line in /usr/bin/w.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Dec 2003 05:05:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-ip-address-from-process-id/m-p/3153547#M158047</guid>
      <dc:creator>Steve Lewis</dc:creator>
      <dc:date>2003-12-30T05:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trace IP address from PROCESS ID</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/trace-ip-address-from-process-id/m-p/3153548#M158048</link>
      <description>&lt;BR /&gt;if it is tty process, you can use&lt;BR /&gt;&lt;BR /&gt;ps -ef&lt;BR /&gt;finger -R&lt;BR /&gt;&lt;BR /&gt;it maight help&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;A. Majeed&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Dec 2003 06:09:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/trace-ip-address-from-process-id/m-p/3153548#M158048</guid>
      <dc:creator>Abdul Majeed Lardhi</dc:creator>
      <dc:date>2003-12-30T06:09:32Z</dc:date>
    </item>
  </channel>
</rss>

