- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/services question
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
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
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- 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
тАО05-13-2010 06:11 AM
тАО05-13-2010 06:11 AM
/etc/services question
I would like to know the impact of having the same port associated with 2 different services in /etc/services file.
Thanks,
R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2010 06:27 AM
тАО05-13-2010 06:27 AM
Re: /etc/services question
Three possible outcomes.
1) Both services will work.
2) Neither service will work.
3) One service will work and one will not.
The most likely outcome is 2.
Note that /etc/services is really a reservations file, and products like Oracle work well without entries in it.
Note that trying to run two listeners on one port in Unix will not work.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2010 06:30 AM
тАО05-13-2010 06:30 AM
Re: /etc/services question
Some commands such as netstat, lsof, lookup /etc/services to convert the port numbers to port names in their output. Other commands or specific application that depend on a port, will not run if the port they use is not listed in /etc/services and named as expected.
Which port do you need to name twice and why? Which application requires it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2010 06:32 AM
тАО05-13-2010 06:32 AM
Re: /etc/services question
I'm not quite sure what you are asking. You can define aliases for a named service and lookup either the real service name or the alias [ with 'getservbyname()' ]. A particular port number can offer both TCP and UDP protocols. Have a llok at the 'getservent(3N)' manpages for more information.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-13-2010 06:34 AM
тАО05-13-2010 06:34 AM
Re: /etc/services question
Naming a port in /etc/services does not reserve that port. Any application can bind to a free port (a port that is not in use) regardless of whether the port is named in /etc/services or not.