<?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: lsof question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-question/m-p/4013772#M299142</link>
    <description>&lt;BR /&gt;The output I got from lsof is similar to netstat -an &lt;BR /&gt;&lt;BR /&gt;java    5987 prod   75u  inet 0x300160a96c0      0t0    TCP *:10222 (LISTEN)&lt;BR /&gt;&lt;BR /&gt;The Java developers say that the port 10222 is not freed up and is in listening mode , though I was of the view that the port is free and is listening .&lt;BR /&gt;&lt;BR /&gt;The argument they gave me was that CORBA ORB is initialized and passes this port to a request from another server and the connection is made and once the connection is  released then the port is not in listening mode and should not come up in the listing of  netstat or the lsof as its coming up now.( above output )&lt;BR /&gt;&lt;BR /&gt;Has anybody encountered this before. Any suggestions are welcome.&lt;BR /&gt;</description>
    <pubDate>Tue, 05 Jun 2007 16:02:36 GMT</pubDate>
    <dc:creator>Hunki</dc:creator>
    <dc:date>2007-06-05T16:02:36Z</dc:date>
    <item>
      <title>lsof question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-question/m-p/4013767#M299137</link>
      <description>&lt;BR /&gt;I need to check for files which are being used by a particular port. How do I do that through lsof.&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Tue, 05 Jun 2007 14:51:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-question/m-p/4013767#M299137</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2007-06-05T14:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: lsof question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-question/m-p/4013768#M299138</link>
      <description>From the lsof manpages&lt;BR /&gt;&lt;BR /&gt;-i [i] This option selects the listing of files any of whose Internet&lt;BR /&gt;address matches the address specified in i. If no address is&lt;BR /&gt;specified, this option selects the listing of all Internet and&lt;BR /&gt;x.25 (HP-UX) network files.&lt;BR /&gt;&lt;BR /&gt;If -i4 or -i6 is specified with no following address, only&lt;BR /&gt;files of the indicated IP version, IPv4 or IPv6, are dis-&lt;BR /&gt;played. (An IPv6 specification may be used only if the&lt;BR /&gt;dialects supports IPv6, as indicated by ``[46]'' and&lt;BR /&gt;``IPv[46]'' in lsof's -h or -? output.) Sequentially speci-&lt;BR /&gt;fying -i4, followed by -i6 is the same as specifying -i, and&lt;BR /&gt;vice-versa. Specifying -i4, or -i6 after -i is the same as&lt;BR /&gt;specifying -i4 or -i6 by itself.&lt;BR /&gt;&lt;BR /&gt;Multiple addresses (up to a limit of 100) may be specified&lt;BR /&gt;with multiple -i options. (A port number or service name&lt;BR /&gt;range is counted as one address.) They are joined in a single&lt;BR /&gt;ORed set before participating in AND option selection.&lt;BR /&gt;&lt;BR /&gt;An Internet address is specified in the form (Items in square&lt;BR /&gt;brackets are optional.):&lt;BR /&gt;&lt;BR /&gt;[46][protocol][@hostname|hostaddr][:service|port]&lt;BR /&gt;&lt;BR /&gt;where:&lt;BR /&gt;46 specifies the IP version, IPv4 or IPv6&lt;BR /&gt;that applies to the following address.&lt;BR /&gt;'6' may be be specified only if the UNIX&lt;BR /&gt;dialect supports IPv6. If neither '4' nor&lt;BR /&gt;'6' is specified, the following address&lt;BR /&gt;applies to all IP versions.&lt;BR /&gt;protocol is a protocol name - TCP or UDP.&lt;BR /&gt;hostname is an Internet host name. Unless a&lt;BR /&gt;specific IP version is specified, open&lt;BR /&gt;network files associated with host names&lt;BR /&gt;of all versions will be selected.&lt;BR /&gt;hostaddr is a numeric Internet IPv4 address in&lt;BR /&gt;dot form; or an IPv6 numeric address in&lt;BR /&gt;colon form, enclosed in brackets, if the&lt;BR /&gt;UNIX dialect supports IPv6. When an IP&lt;BR /&gt;version is selected, only its numeric&lt;BR /&gt;addresses may be specified.&lt;BR /&gt;service is an /etc/services name - e.g., smtp -&lt;BR /&gt;or a list of them.&lt;BR /&gt;port is a port number, or a list of them.&lt;BR /&gt;&lt;BR /&gt;Can you try something like 'lsof -i :49152' or 'lsof -i @&lt;LOCAL ip=""&gt;:49152'&lt;BR /&gt;&lt;BR /&gt;The grep for the filename.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jov&lt;/LOCAL&gt;</description>
      <pubDate>Tue, 05 Jun 2007 14:56:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-question/m-p/4013768#M299138</guid>
      <dc:creator>Jov</dc:creator>
      <dc:date>2007-06-05T14:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: lsof question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-question/m-p/4013769#M299139</link>
      <description>More accurately you find the process that is using a port and the PID can then lead you to the files.&lt;BR /&gt;&lt;BR /&gt;For example to find all the processes associated with port 23 (telnet), you can specify either the port number or name&lt;BR /&gt;&lt;BR /&gt;lsof -i :23&lt;BR /&gt;or&lt;BR /&gt;lsof -i :telnet&lt;BR /&gt;&lt;BR /&gt;then when the process id is displayed:&lt;BR /&gt;lsof -p PID&lt;BR /&gt;&lt;BR /&gt;and you have your files.</description>
      <pubDate>Tue, 05 Jun 2007 15:01:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-question/m-p/4013769#M299139</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2007-06-05T15:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: lsof question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-question/m-p/4013770#M299140</link>
      <description>Files cannot be be opened/used by a particular port. Only a process [listening on a particular port] can have open files.</description>
      <pubDate>Tue, 05 Jun 2007 15:03:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-question/m-p/4013770#M299140</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-06-05T15:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: lsof question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-question/m-p/4013771#M299141</link>
      <description>I was think of the executable as the file, but Clay is spot on.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jov</description>
      <pubDate>Tue, 05 Jun 2007 15:18:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-question/m-p/4013771#M299141</guid>
      <dc:creator>Jov</dc:creator>
      <dc:date>2007-06-05T15:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: lsof question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-question/m-p/4013772#M299142</link>
      <description>&lt;BR /&gt;The output I got from lsof is similar to netstat -an &lt;BR /&gt;&lt;BR /&gt;java    5987 prod   75u  inet 0x300160a96c0      0t0    TCP *:10222 (LISTEN)&lt;BR /&gt;&lt;BR /&gt;The Java developers say that the port 10222 is not freed up and is in listening mode , though I was of the view that the port is free and is listening .&lt;BR /&gt;&lt;BR /&gt;The argument they gave me was that CORBA ORB is initialized and passes this port to a request from another server and the connection is made and once the connection is  released then the port is not in listening mode and should not come up in the listing of  netstat or the lsof as its coming up now.( above output )&lt;BR /&gt;&lt;BR /&gt;Has anybody encountered this before. Any suggestions are welcome.&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Jun 2007 16:02:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-question/m-p/4013772#M299142</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2007-06-05T16:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: lsof question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lsof-question/m-p/4013773#M299143</link>
      <description>&lt;BR /&gt;More clear explanation from Java Devs : &lt;BR /&gt;&lt;BR /&gt;The port should be in listening mode once the ORB has been reinitialized not before that.&lt;BR /&gt;&lt;BR /&gt;Anybody faced this with CORBA ORB or any other application.</description>
      <pubDate>Tue, 05 Jun 2007 16:12:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lsof-question/m-p/4013773#M299143</guid>
      <dc:creator>Hunki</dc:creator>
      <dc:date>2007-06-05T16:12:12Z</dc:date>
    </item>
  </channel>
</rss>

