<?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 Regarding lsof output in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-lsof-output/m-p/3405132#M201585</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am running lsof on HP-UX 11i system for finding out info for a particular port. I get the output as shown below -&lt;BR /&gt;&lt;BR /&gt;aravali:&amp;gt;/aravali/users/sysadmin#./lsof | grep 6668&lt;BR /&gt;unix_vb    2187  idxmgr    5u  inet  0x4f06ecc0        0t0    TCP *:6668 (LISTEN)&lt;BR /&gt;java       4004  idxmgr    5u  inet  0x4f06ecc0        0t0    TCP *:6668 (LISTEN)&lt;BR /&gt;java       4007  idxmgr    5u  inet  0x4f06ecc0        0t0    TCP *:6668 (LISTEN)&lt;BR /&gt;index_sen  4062  idxmgr    5u  inet  0x4f06ecc0        0t0    TCP *:6668 (LISTEN)&lt;BR /&gt;surv_feed  4063  idxmgr    5u  inet  0x4f06ecc0        0t0    TCP *:6668 (LISTEN)&lt;BR /&gt;&lt;BR /&gt;Now, in this case, the process unix_vb actually creates the socket which listens on port 6668. The other processes are not at all  related to this process and they are started independently. Why does lsof show so many processes using that port? Further, if the process unix_vb is killed and the other processes are still running I am not able to create a socket again which listens on the same port. It gives error (binding failed). &lt;BR /&gt;&lt;BR /&gt;Thnks and Rgds,</description>
    <pubDate>Thu, 21 Oct 2004 09:58:07 GMT</pubDate>
    <dc:creator>Sunil Surve</dc:creator>
    <dc:date>2004-10-21T09:58:07Z</dc:date>
    <item>
      <title>Regarding lsof output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-lsof-output/m-p/3405132#M201585</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am running lsof on HP-UX 11i system for finding out info for a particular port. I get the output as shown below -&lt;BR /&gt;&lt;BR /&gt;aravali:&amp;gt;/aravali/users/sysadmin#./lsof | grep 6668&lt;BR /&gt;unix_vb    2187  idxmgr    5u  inet  0x4f06ecc0        0t0    TCP *:6668 (LISTEN)&lt;BR /&gt;java       4004  idxmgr    5u  inet  0x4f06ecc0        0t0    TCP *:6668 (LISTEN)&lt;BR /&gt;java       4007  idxmgr    5u  inet  0x4f06ecc0        0t0    TCP *:6668 (LISTEN)&lt;BR /&gt;index_sen  4062  idxmgr    5u  inet  0x4f06ecc0        0t0    TCP *:6668 (LISTEN)&lt;BR /&gt;surv_feed  4063  idxmgr    5u  inet  0x4f06ecc0        0t0    TCP *:6668 (LISTEN)&lt;BR /&gt;&lt;BR /&gt;Now, in this case, the process unix_vb actually creates the socket which listens on port 6668. The other processes are not at all  related to this process and they are started independently. Why does lsof show so many processes using that port? Further, if the process unix_vb is killed and the other processes are still running I am not able to create a socket again which listens on the same port. It gives error (binding failed). &lt;BR /&gt;&lt;BR /&gt;Thnks and Rgds,</description>
      <pubDate>Thu, 21 Oct 2004 09:58:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-lsof-output/m-p/3405132#M201585</guid>
      <dc:creator>Sunil Surve</dc:creator>
      <dc:date>2004-10-21T09:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding lsof output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-lsof-output/m-p/3405133#M201586</link>
      <description>I am confused. Can you run following commands.&lt;BR /&gt;&lt;BR /&gt;lsof -p tcp:6668&lt;BR /&gt;lsof -p udp:6668&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 21 Oct 2004 10:07:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-lsof-output/m-p/3405133#M201586</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-10-21T10:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding lsof output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-lsof-output/m-p/3405134#M201587</link>
      <description>why you are using lsof with grep there?&lt;BR /&gt;&lt;BR /&gt;lsof is designed with some options to do requirements directly.&lt;BR /&gt;&lt;BR /&gt; use lsof -p &lt;PORT type="" and="" number=""&gt; there.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH.&lt;/PORT&gt;</description>
      <pubDate>Thu, 21 Oct 2004 10:34:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-lsof-output/m-p/3405134#M201587</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-10-21T10:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding lsof output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-lsof-output/m-p/3405135#M201588</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I ran lsof -i tcp:6668 and lsof -i udp:6668 (the version of lsof that i use has -i option for specifyin port number...) . Still it gives the same output. All of them are TCP ports only.&lt;BR /&gt;&lt;BR /&gt;Thnks &amp;amp; Rgds&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Oct 2004 00:54:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-lsof-output/m-p/3405135#M201588</guid>
      <dc:creator>Sunil Surve</dc:creator>
      <dc:date>2004-10-25T00:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding lsof output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-lsof-output/m-p/3405136#M201589</link>
      <description>The next argument specified with lsof -p would be a process ID, not a port number.  As can be seen by Sunil's follow up post, you get exactly the same info by using grep - simply questioning the efficiency of the way Sunil runs lsof doesn't help solve the problem.&lt;BR /&gt;&lt;BR /&gt;There are a few ways that you'd normally see multiple processes listening on the same port.  Most common is that you've got multiple IP addresses configured, such as if you were hosting multiple websites from the same server.  However, my guess is that the inet address that you have there shows the same IP address in hex notation each time.&lt;BR /&gt;&lt;BR /&gt;Next would be a shared session configuration.  Not the normal "shared session key" that you'd see with ssh or similar, but something along the lines of phoning a tech support number and getting a different operator each time.  The difference is, you'd still expect to be talking to "tech support" - here, you have a 4 different processes (plus one duplicate) listening on the same number.  What I'd normally expect to see in that case would be a system designed for multiple CPUs where it'd look like you have one incoming port, but actually have multiple processes listening on the back end.  &lt;BR /&gt;&lt;BR /&gt;My main guess here is that unix_vb is like a manager process which would farm the connection out to an appropriate process to deal with it.  Without any knowledge of the application, my guess is that it'll fall apart after you kill off unix_vb, since it doesn't have anything to redirect incoming requests to the appropriate application.&lt;BR /&gt;&lt;BR /&gt;Does seem like a wierd way to program it though - is it designed for tight security through firewalls?</description>
      <pubDate>Mon, 25 Oct 2004 02:42:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-lsof-output/m-p/3405136#M201589</guid>
      <dc:creator>Stuart Whitby</dc:creator>
      <dc:date>2004-10-25T02:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding lsof output</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/regarding-lsof-output/m-p/3405137#M201590</link>
      <description>hello,&lt;BR /&gt;&lt;BR /&gt;actually the processes shown here are all mutually exclusive. The unix_vb process creates the socket and uses it. But none of the other processes use it. What i have observed is that for all the processes the login is the same. Is it like a socket created by a particular process for a paticular user is also visible to all the other processes of that same login even if the other processes dont use it...?&lt;BR /&gt;&lt;BR /&gt;thnx &amp;amp; rgds,&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Oct 2004 07:51:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/regarding-lsof-output/m-p/3405137#M201590</guid>
      <dc:creator>Sunil Surve</dc:creator>
      <dc:date>2004-10-25T07:51:14Z</dc:date>
    </item>
  </channel>
</rss>

