<?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: Match IP with process in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/match-ip-with-process/m-p/2738686#M585264</link>
    <description>And everyone says: "Use lsof."&lt;BR /&gt;&lt;BR /&gt;Get it here:&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;With it you can find everything in use by a process or port.&lt;BR /&gt;&lt;BR /&gt;$ lsof -np &lt;PID&gt;&lt;BR /&gt;$ lsof -ni [proto][@host|addr][:port_list]&lt;BR /&gt;&lt;BR /&gt;For example, let's see all the processes on port 23:&lt;BR /&gt;&lt;BR /&gt;# lsof -ni tcp:23&lt;BR /&gt;&lt;BR /&gt;&lt;/PID&gt;</description>
    <pubDate>Wed, 05 Jun 2002 22:31:57 GMT</pubDate>
    <dc:creator>Jordan Bean</dc:creator>
    <dc:date>2002-06-05T22:31:57Z</dc:date>
    <item>
      <title>Match IP with process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/match-ip-with-process/m-p/2738684#M585262</link>
      <description>I have a process which listens to a port and spawn processes whenever someone connects on that port. e.g.&lt;BR /&gt;ps -ef | grep user&lt;BR /&gt;user 1234    1  master&lt;BR /&gt;user 2345 1234  child_1&lt;BR /&gt;user 3456 1234  child_2&lt;BR /&gt;&lt;BR /&gt;I use &lt;BR /&gt;netstat -an | grep $PORT &lt;BR /&gt;to see which IP is connected to $PORT e.g.&lt;BR /&gt;IP_1  port&lt;BR /&gt;IP_2  port  &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I'd like to link the two,  match an IP to a process, how could this be done?</description>
      <pubDate>Wed, 05 Jun 2002 21:02:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/match-ip-with-process/m-p/2738684#M585262</guid>
      <dc:creator>Fritz-Gerald: Zephir</dc:creator>
      <dc:date>2002-06-05T21:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Match IP with process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/match-ip-with-process/m-p/2738685#M585263</link>
      <description>P.S.  Unfortunately, I'll browse for answers in 24hrs from now.</description>
      <pubDate>Wed, 05 Jun 2002 21:04:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/match-ip-with-process/m-p/2738685#M585263</guid>
      <dc:creator>Fritz-Gerald: Zephir</dc:creator>
      <dc:date>2002-06-05T21:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Match IP with process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/match-ip-with-process/m-p/2738686#M585264</link>
      <description>And everyone says: "Use lsof."&lt;BR /&gt;&lt;BR /&gt;Get it here:&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.61/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;With it you can find everything in use by a process or port.&lt;BR /&gt;&lt;BR /&gt;$ lsof -np &lt;PID&gt;&lt;BR /&gt;$ lsof -ni [proto][@host|addr][:port_list]&lt;BR /&gt;&lt;BR /&gt;For example, let's see all the processes on port 23:&lt;BR /&gt;&lt;BR /&gt;# lsof -ni tcp:23&lt;BR /&gt;&lt;BR /&gt;&lt;/PID&gt;</description>
      <pubDate>Wed, 05 Jun 2002 22:31:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/match-ip-with-process/m-p/2738686#M585264</guid>
      <dc:creator>Jordan Bean</dc:creator>
      <dc:date>2002-06-05T22:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Match IP with process</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/match-ip-with-process/m-p/2738687#M585265</link>
      <description>I agree , LSOF is the tool to use , it tells you the info you need to know follow the previous advise</description>
      <pubDate>Thu, 06 Jun 2002 06:19:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/match-ip-with-process/m-p/2738687#M585265</guid>
      <dc:creator>sven verhaegen</dc:creator>
      <dc:date>2002-06-06T06:19:29Z</dc:date>
    </item>
  </channel>
</rss>

