- 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
Forums
Discussions
Discussions
Discussions
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
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
10-08-2001 07:43 PM
10-08-2001 07:43 PM
I need some clarification.
I am running HPUX 11.0. my /etc/services file contains the usual information as well as an additional line:
# Masterpiece/Net port
mpnet 20000/tcp
My boss tells me that when I rebooted last night it didn't pick this up, and started the services for the application that is why people had communication problems.
I am now confused, because I thought the /etc/services file was an information guide of what is run on which port when it runs. I am thinking that the reason it didn't run because there wasn't a startup script that should of been in the run levels somewhere.
Am I wrong?
/me thinks he is confused with windows and unix.
maria
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2001 08:22 PM
10-08-2001 08:22 PM
SolutionC /etc/services file contains a list of ports either on tcp/udp connection eg: finger 79/tcp. An entry of finger will be there in
inetd.conf file which is processed at run time when the system starts up. If there is no entry in the /etc/service file then the process will not start up.
Other than that there are plenty of other servives defined, but these are not necessarily required. But the application using it will open or talk thru the port. If the port entry is available on the /etc/services file.
So make sure that the application using this port is up and running.
Hope this helps.
Regards,
Dayanand Naik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2001 08:36 PM
10-08-2001 08:36 PM
Re: /etc/services
/etc/services is an *information* file relating
to which ports are being used by what applications.
At a guess I would say that when this application was installed, during the actual installation it added the entry to /etc/services
In saying that some applications do not do
a complete the job and fail to add a proper start-up script to /sbin/init.d or create a link to the /sbin/rc3.d directory or where the appropriate run level. Check in the /etc/rc.log file for the applications that got started. Also check using 'netstat -a' to see if the port is listening.
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2001 08:53 PM
10-08-2001 08:53 PM
Re: /etc/services
To quote the HP man page for /etc/services, it "associates official services and aliases with the port number and protocol the services use." The ports 0 to 1023 are reserved for specific services, eg telnet uses port 23 protocol tcp, ftp uses port 21 protocol tcp, etc.
You already have the Masterpiece port/protocol defined in your services file, so I would check to see if you have a start up script in the /sbin/init.d directory. Remember, the script should have symbolic links pointing to it from the runlevel directories. ie one to start it and one to stop it.
For example,
1. /sbin/init.d/mpnet (or whatever the name of the Masterpiece script is)
2. /sbin/rc3.d/Snnnmpnet -> /sbin/init.d/mpnet(where rc3.d means that Masterpiece starts at runlevel 3 - usually the default runlevel and the Snnn is a number representing the order that this file is started)
3. /sbin/rc2.d/Knnnmpnet -> /sbin/init.d/mpnet (where rc2.d is the runlevel that stops Masterpiece - in this case runlevel 2)
If the Masterpiece script exists, check the /etc/rc.log file for any errors at startup. Also check in the /etc/rc.config.d directory, as this may contain a file used by your Masterpiece program. If you have the start/stop script setup correctly, you can enable or disable Masterpiece from starting or stopping by modifying the corresponding Masterpiece file in /etc/rc.config.d
Regards,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2001 01:26 AM
10-09-2001 01:26 AM
Re: /etc/services
Also, you can see if the service is listening by doing a netstat -na|grep 20000|grep LISTEN. If all is set up properly, you should get something back.
-Santosh