<?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: services question in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/services-question/m-p/4048708#M304028</link>
    <description>If you have lsof then the following command will determine if a particular port say 512 is in use or not. You can get lsof from HP's Porting and Archive site &lt;A href="http://hpux.cs.utah.edu" target="_blank"&gt;http://hpux.cs.utah.edu&lt;/A&gt; and use it as:&lt;BR /&gt;&lt;BR /&gt;# lsof -i:512&lt;BR /&gt; or&lt;BR /&gt;# netstat -an | awk 'z[split($4,z,".")]==512'</description>
    <pubDate>Thu, 02 Aug 2007 14:03:16 GMT</pubDate>
    <dc:creator>Sandman!</dc:creator>
    <dc:date>2007-08-02T14:03:16Z</dc:date>
    <item>
      <title>services question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/services-question/m-p/4048705#M304025</link>
      <description>How should i know if the port is blocked in a HPUX server and how should i open a particular port&lt;BR /&gt;Thanks ,appreciated</description>
      <pubDate>Thu, 02 Aug 2007 13:33:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/services-question/m-p/4048705#M304025</guid>
      <dc:creator>navin</dc:creator>
      <dc:date>2007-08-02T13:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: services question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/services-question/m-p/4048706#M304026</link>
      <description>Only firewalls can open or block ports. On HPUX servers a port is in use or not depending on whetehr a server is up and using it. lsof can tell you whether a service is bound to a particular port or not.</description>
      <pubDate>Thu, 02 Aug 2007 13:43:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/services-question/m-p/4048706#M304026</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-08-02T13:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: services question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/services-question/m-p/4048707#M304027</link>
      <description>can you please lil bit more specific about the command to test if th eport is in use- i normally go with netstat or grep port number from services - have not heard anyuthing about lsof&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 02 Aug 2007 13:52:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/services-question/m-p/4048707#M304027</guid>
      <dc:creator>navin</dc:creator>
      <dc:date>2007-08-02T13:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: services question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/services-question/m-p/4048708#M304028</link>
      <description>If you have lsof then the following command will determine if a particular port say 512 is in use or not. You can get lsof from HP's Porting and Archive site &lt;A href="http://hpux.cs.utah.edu" target="_blank"&gt;http://hpux.cs.utah.edu&lt;/A&gt; and use it as:&lt;BR /&gt;&lt;BR /&gt;# lsof -i:512&lt;BR /&gt; or&lt;BR /&gt;# netstat -an | awk 'z[split($4,z,".")]==512'</description>
      <pubDate>Thu, 02 Aug 2007 14:03:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/services-question/m-p/4048708#M304028</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2007-08-02T14:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: services question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/services-question/m-p/4048709#M304029</link>
      <description>"whereis lsof" and confirm if you have that&lt;BR /&gt;&lt;BR /&gt;lsof &amp;gt;lsof.out&lt;BR /&gt;&lt;BR /&gt;lsof -i tcp &amp;gt;lsof_tcp.out&lt;BR /&gt;lsof -i udp &amp;gt;lsof_udp.out</description>
      <pubDate>Thu, 02 Aug 2007 21:23:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/services-question/m-p/4048709#M304029</guid>
      <dc:creator>skt_skt</dc:creator>
      <dc:date>2007-08-02T21:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: services question</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/services-question/m-p/4048710#M304030</link>
      <description>Unfortunately, HP-UX doesn't ship lsof.&lt;BR /&gt;But you can stick with netstat for looking up ports currently in use on the server. (Sandmam!'s netstat line is pretty nifty as it reuses the returned last index of awk's split in situ, which is the position where the local socket's port is found; note Linux's netstat uses ":" as port separator).&lt;BR /&gt;However, you usually want to connect to a port from another host on whose route some packet filter may block the port.&lt;BR /&gt;For this to check you can use a port scanner like nmap (also not part of the standard hpux toolset) from this host.&lt;BR /&gt;You can get it from here&lt;BR /&gt;&lt;A href="http://insecure.org/nmap/" target="_blank"&gt;http://insecure.org/nmap/&lt;/A&gt;&lt;BR /&gt;But read the docs before using it because you may trigger off some alert with network or firewall intrusion detectors or arouse their admins' disdain.</description>
      <pubDate>Fri, 03 Aug 2007 04:24:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/services-question/m-p/4048710#M304030</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2007-08-03T04:24:09Z</dc:date>
    </item>
  </channel>
</rss>

