Configuring and Managing MPE/iX Internet Services (MPE/iX 6.5)

Chapter 1 21
Introduction to Internet Services
Services File
Services File
The services file associates an official service name and alias with the
port number and protocol that a service uses. You will edit the services
file for each new service that you want to add to your system. The
remaining chapters in this book, which describe the configuration of
individual services, will assume that you know the following
information. And, of course, you can refer back to this section as
needed.
Creating and Linking the Services File
You may already have a services file installed on your system. If you
know that you have such a file, and it is accessible by the POSIX file
name /etc/services you may skip these steps.
If you do not have a services file, follow these steps to create the file and
link to it. If you have such a file, but are unsure whether or not it is
linked, perform step 2 only.
1. Create your own services file by using the COPY command to rename
the sample file. Enter:
:COPY SERVSAMP.NET.SYS, SERVICES.NET.SYS
2. Create a symbolic link from a file named /etc/services in the
POSIX name space to SERVICES.NET.SYS. Enter:
:NEWLINK /etc/services, SERVICES.NET.SYS
Editing the Services File
Use an MPE text editor to edit the file.
1. Open the services file with an MPE text editor.
The contents will resemble the following:
# This file contains the information about the services provided.
# Copy this file to SERVICES.NET.SYS if that file does not already exist.
#
# The form for each entry is:
# <official service name> <port number/protocol name> <aliases>
#
# See the Configuring and Managing MPE/iX Internet Services Manual
# for more information (HP Part No. 32650-90835).
#
# Note: The entries cannot be preceded by a blank space.
#
echo 7/tcp # Echo
echo 7/udp #
discard 9/tcp sink null # Discard