HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- checking port status
Operating System - HP-UX
1833194
Members
3334
Online
110051
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 10:22 PM
07-15-2002 10:22 PM
Hi,
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?
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:
rcmd2: socket : The file access permissions do not allow the specified action.
If rcp or rsync was invoked from the destination machine, it does not produce this error.
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.
Could some one please help me out?
Thanks.
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?
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:
rcmd2: socket : The file access permissions do not allow the specified action.
If rcp or rsync was invoked from the destination machine, it does not produce this error.
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.
Could some one please help me out?
Thanks.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 10:29 PM
07-15-2002 10:29 PM
Solution
If I understand this correctly, you need to use the remote shell from system A to system B.
Remove the comment from this line in '/etc/inetd.conf' file
shell stream tcp nowait root /usr/lbin/remshd remshd
Once the file is saved, run 'inetd -c' to re-read the configuration.
Remove the comment from this line in '/etc/inetd.conf' file
shell stream tcp nowait root /usr/lbin/remshd remshd
Once the file is saved, run 'inetd -c' to re-read the configuration.
Anyone for a Mutiny ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 10:58 PM
07-15-2002 10:58 PM
Re: checking port status
Michael,
I've manage to do an rsh/rcp/ between host A to host B and vice versa .
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 ?
I have the line which you told to have it's comment removed untouched. It has never once been commented.
Thanks.
CJ
I've manage to do an rsh/rcp/ between host A to host B and vice versa .
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 ?
I have the line which you told to have it's comment removed untouched. It has never once been commented.
Thanks.
CJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2002 11:19 PM
07-15-2002 11:19 PM
Re: checking port status
hi,
use lsof (list open files) to know the status of a port.
ex: lsof -i tcp
to do rcp u don't need add service in /etc/services.
on the machine 2 (to which u r doing rcp)
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.
to have system wide access u should put the entry of the machine 1 in /etc/hosts.eqiv
regds
ravi
use lsof (list open files) to know the status of a port.
ex: lsof -i tcp
to do rcp u don't need add service in /etc/services.
on the machine 2 (to which u r doing rcp)
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.
to have system wide access u should put the entry of the machine 1 in /etc/hosts.eqiv
regds
ravi
Never Say No
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP