- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/services
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
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
тАО03-12-2009 03:17 AM
тАО03-12-2009 03:17 AM
/etc/services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2009 03:27 AM
тАО03-12-2009 03:27 AM
Re: /etc/services
with the port number and protocol the services use. For each service
a single line should be present with the following information:
Port numbers 0 through 1023 are assigned by RFC 1700. This RFC also
lists the conventional use of various ports with numbers greater than
1023.
Aliases are other names under which a service is known. Library
routines such as getservbyname() can be invoked with a service alias
instead of the service official name. For example:
shell 514/tcp cmd
Refer to
# man services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2009 03:27 AM
тАО03-12-2009 03:27 AM
Re: /etc/services
DESCRIPTION
The file /etc/services associates official service names and aliases with the port number and protocol the services use.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2009 03:28 AM
тАО03-12-2009 03:28 AM
Re: /etc/services
http://docs.hp.com/en/5990-7252/ch01s01.html
Please dont forget to assign points
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2009 03:35 AM
тАО03-12-2009 03:35 AM
Re: /etc/services
available in the DARPA Internet. For each service a single line should
be present with the following information:
official service name
port number
protocol name
aliases
Items are separated by any number of blanks and/or tab characters. The
port number and protocol name are considered a single item; a ``/'' is
used to separate the port and protocol (e.g. ``512/tcp''). A ``#'' indi-
cates the beginning of a comment; subsequent characters up to the end of
the line are not interpreted by the routines which search the file.
Service names may contain any printable character other than a field
delimiter, newline, or comment character.
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2009 03:39 AM
тАО03-12-2009 03:39 AM
Re: /etc/services
inetd (the internet super server) is listening on "a lot of" ports. Once a request receives on such a port, inetd will look it up in /etc/services and now it knows - port 23 must be telnet. Now it is searching for telnet in inetd.conf and starts the requested daemon, e.g. telnetd. This is the very short explain ...
See also
http://en.wikipedia.org/wiki/Inetd
and
http://docs.hp.com/en/B3921-60631/services.4.html
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2009 03:46 AM
тАО03-12-2009 03:46 AM
Re: /etc/services
This file content all services according to there port no.
see the below example
1st field is serverce and 2nd is port no.
ftp 21/tcp # File Transfer Protocol (Control)
telnet 23/tcp # Virtual Terminal Protocol
smtp 25/tcp # Simple Mail Transfer Protocol
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2009 03:56 AM
тАО03-12-2009 03:56 AM
Re: /etc/services
inetd, called also the super server, will load a network program based upon a request from the network. The inetd.conf file tells inetd which ports to listen to and what server to start for each port.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2009 04:11 AM
тАО03-12-2009 04:11 AM
Re: /etc/services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2009 04:13 AM
тАО03-12-2009 04:13 AM
Re: /etc/services
Definition: /etc/services: On UNIX, the configuration file /etc/services maps port numbers to named services. Key point: Its role in life is so that programs can do a getportbyname() sockets call in their code in order to get what port they should use. For example, a POP3 email daemon would do a getportbyname ("pop3") in order to retrieve the number 110 that pop3 runs at. The idea is that if all POP3 daemons use getportbyname(), then no matter what POP3 daemon you run, you can always reconfigure its port number by editing / etc/services. Misunderstanding: This file is bad in order to figure out what port numbers mean. If you want to find out what ports programs are using, you should instead use the program lsof to find out exactly which ports are bound to which processes. If running lsof is not appropriate, then you should lookup the ports in a more generic reference.
Thanks,
JOhnson