<?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 checking port status in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-port-status/m-p/2764439#M893769</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would like to check the status of a port for a particular service. What is the command to check if the port is opened or closed? &lt;BR /&gt;&lt;BR /&gt;I've tried doing a rcp from 1 host machine to another. If I were to invoke rcp or rsync from the source machine it produces the error:&lt;BR /&gt;&lt;BR /&gt;rcmd2: socket : The file access permissions do not allow the specified action.&lt;BR /&gt;&lt;BR /&gt;If rcp or rsync was invoked from the destination machine, it does not produce this error. &lt;BR /&gt;&lt;BR /&gt;What is the port number for rcp? Do I need to explicitly add the service rcp or rsync with its port number into the /etc/services file?  I tried adding those services into the /etc/services file, but that did not work.&lt;BR /&gt;&lt;BR /&gt;Could some one please help me out?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
    <pubDate>Tue, 16 Jul 2002 05:22:32 GMT</pubDate>
    <dc:creator>Chern Jian Leaw</dc:creator>
    <dc:date>2002-07-16T05:22:32Z</dc:date>
    <item>
      <title>checking port status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-port-status/m-p/2764439#M893769</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would like to check the status of a port for a particular service. What is the command to check if the port is opened or closed? &lt;BR /&gt;&lt;BR /&gt;I've tried doing a rcp from 1 host machine to another. If I were to invoke rcp or rsync from the source machine it produces the error:&lt;BR /&gt;&lt;BR /&gt;rcmd2: socket : The file access permissions do not allow the specified action.&lt;BR /&gt;&lt;BR /&gt;If rcp or rsync was invoked from the destination machine, it does not produce this error. &lt;BR /&gt;&lt;BR /&gt;What is the port number for rcp? Do I need to explicitly add the service rcp or rsync with its port number into the /etc/services file?  I tried adding those services into the /etc/services file, but that did not work.&lt;BR /&gt;&lt;BR /&gt;Could some one please help me out?&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Jul 2002 05:22:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-port-status/m-p/2764439#M893769</guid>
      <dc:creator>Chern Jian Leaw</dc:creator>
      <dc:date>2002-07-16T05:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: checking port status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-port-status/m-p/2764440#M893770</link>
      <description>If I understand this correctly, you need to use the remote shell from system A to system B.&lt;BR /&gt;Remove the comment from this line in '/etc/inetd.conf' file&lt;BR /&gt;&lt;BR /&gt;shell        stream tcp nowait root /usr/lbin/remshd   remshd&lt;BR /&gt;&lt;BR /&gt;Once the file is saved, run 'inetd -c' to re-read the configuration.</description>
      <pubDate>Tue, 16 Jul 2002 05:29:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-port-status/m-p/2764440#M893770</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-07-16T05:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: checking port status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-port-status/m-p/2764441#M893771</link>
      <description>Michael,&lt;BR /&gt;&lt;BR /&gt;I've manage to do an rsh/rcp/ between host A to host B and vice versa . &lt;BR /&gt;&lt;BR /&gt;I would like to check if the port controlling the rcp, rsh service is up or not. Could you tell me how do I do that ? &lt;BR /&gt;&lt;BR /&gt;I have the line which you told to have it's comment removed untouched. It has never once been commented. &lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;CJ</description>
      <pubDate>Tue, 16 Jul 2002 05:58:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-port-status/m-p/2764441#M893771</guid>
      <dc:creator>Chern Jian Leaw</dc:creator>
      <dc:date>2002-07-16T05:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: checking port status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/checking-port-status/m-p/2764442#M893772</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;use lsof (list open files) to know the status of a port.&lt;BR /&gt;ex: lsof -i tcp&lt;BR /&gt;to do rcp u don't need add service in /etc/services. &lt;BR /&gt;on the machine 2 (to which u r doing rcp) &lt;BR /&gt; in the home directory of user u should have a file called .rhosts. in this file u should have ip or name of the machine 1 (from which u r doing rcp). the same user must exist in the machine 1. this .rhosts is user specific.&lt;BR /&gt;&lt;BR /&gt;to have system wide access u should put the entry of the machine 1 in /etc/hosts.eqiv&lt;BR /&gt;&lt;BR /&gt;regds&lt;BR /&gt;ravi</description>
      <pubDate>Tue, 16 Jul 2002 06:19:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/checking-port-status/m-p/2764442#M893772</guid>
      <dc:creator>V. V. Ravi Kumar_1</dc:creator>
      <dc:date>2002-07-16T06:19:08Z</dc:date>
    </item>
  </channel>
</rss>

