<?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: Which process is using which port in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114250#M313745</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Lsof is usefull tool.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.78/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.78/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;# lsof -i tcp:4000&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robvert-Jan</description>
    <pubDate>Mon, 10 Dec 2007 15:03:02 GMT</pubDate>
    <dc:creator>Robert-Jan Goossens</dc:creator>
    <dc:date>2007-12-10T15:03:02Z</dc:date>
    <item>
      <title>Which process is using which port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114248#M313743</link>
      <description>In HPUX, if I want to know which process is using port=4000, then how do I get this information.</description>
      <pubDate>Mon, 10 Dec 2007 14:52:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114248#M313743</guid>
      <dc:creator>Adwait</dc:creator>
      <dc:date>2007-12-10T14:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Which process is using which port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114249#M313744</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Best bet is to install lsof.&lt;BR /&gt;&lt;BR /&gt;losf is found.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.78/" target="_blank"&gt;http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.78/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 10 Dec 2007 15:00:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114249#M313744</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-12-10T15:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Which process is using which port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114250#M313745</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Lsof is usefull tool.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.78/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.78/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;# lsof -i tcp:4000&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robvert-Jan</description>
      <pubDate>Mon, 10 Dec 2007 15:03:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114250#M313745</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2007-12-10T15:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Which process is using which port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114251#M313746</link>
      <description>Thanks guys, but is there any other way, since I do not have lsof tool installed on the servers.</description>
      <pubDate>Mon, 10 Dec 2007 16:03:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114251#M313746</guid>
      <dc:creator>Adwait</dc:creator>
      <dc:date>2007-12-10T16:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Which process is using which port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114252#M313747</link>
      <description>You can use netstat to determine that a given port is in use on a box but that doesn't tell you anything about which process is using the port. Lsof is the tool for this and it's one of those tools that should be installed on every UNIX box. The installation is very easy.</description>
      <pubDate>Mon, 10 Dec 2007 16:10:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114252#M313747</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-12-10T16:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Which process is using which port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114253#M313748</link>
      <description>It is one of those basic tools you should install on all your servers.&lt;BR /&gt;&lt;BR /&gt;You can try netstat, but there is a change netstat will only report that the port is in use.&lt;BR /&gt;&lt;BR /&gt;# netstat -an | grep 4000&lt;BR /&gt;&lt;BR /&gt;example below.&lt;BR /&gt;&lt;BR /&gt;# netstat -an | grep 65154&lt;BR /&gt;tcp4 0 0 *.65154 *.* LISTEN&lt;BR /&gt;# lsof -i tcp:65154&lt;BR /&gt;COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME&lt;BR /&gt;java 430100 was 255u IPv4 0xf100020003cc3390 0t0 TCP *:65154 (LISTEN)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Mon, 10 Dec 2007 16:14:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114253#M313748</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2007-12-10T16:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Which process is using which port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114254#M313749</link>
      <description>&lt;!--!*#--&gt;There is nothing better than lsof!&lt;BR /&gt;&lt;BR /&gt;Example for port 2301:&lt;BR /&gt;&lt;BR /&gt;# lsof -i :2301&lt;BR /&gt;COMMAND    PID USER   FD   TYPE    DEVICE SIZE/OFF NODE NAME&lt;BR /&gt;smhstartd 2270 root    3u  IPv4 0x2970880      0t0  TCP *:2301 (LISTEN)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Download and install this tool.&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Dec 2007 16:17:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114254#M313749</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2007-12-10T16:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Which process is using which port</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114255#M313750</link>
      <description>You can do the followings&lt;BR /&gt;&lt;BR /&gt;1. Check the /etc/services file to see which for which service which port are used.&lt;BR /&gt;2. netstat -an|grep 4000&lt;BR /&gt;3. or you can do lsof.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Dec 2007 18:30:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/which-process-is-using-which-port/m-p/4114255#M313750</guid>
      <dc:creator>Jeeshan</dc:creator>
      <dc:date>2007-12-10T18:30:40Z</dc:date>
    </item>
  </channel>
</rss>

