5.4

Table Of Contents
Adding a Server Program to the System
316
Adding a Server Program to the System
The overall process of creating a server is the same for all server utility programs.
To add a server to iNEWS:
1. Check the configuration file (/site/config) and choose an available device number for the
server. Device numbers can range from 1 to 5000. Take note of existing device ranges in
your /site/config file. There might already be servers of the type you are adding. If possible,
add your new server to the end of the number range the existing servers use. When setting
number ranges, be sure to allow for expansion.
2. Add the server program to the configuration file on each iNEWS Server—such as server A
and server B—in your system.
c
Always back up the /site/config file before making any changes. See “Editing the
Configuration File” on page 253 for more information.
a. Select all iNEWS Servers.
b
. Open and edit the configuration file, by typing (what appears in bold):
NRCS-A$ ed /site/config
1259
After you press Enter, the editor responds by displaying a numerical value indicating the
file size expressed as the number of characters, including spaces and returns.
n
This procedure, which modifies the /site/config file uses ed, the line editor. If you do not know
how to use ed to modify lines in the file, please see “The Line Editor, ed” on page 647.
c. Add the server program’s device number to the serv
ers line in the host section(s) of the
configuration file for the iNEWS Server on which the server program will run. For
instance:
servers 257 258 259
260
The device number 260 is added to the servers line in this example.
d. Add a configuration line for the server program. This line should contain the mailbox
number assigned to the server program, when necessary.
n
Divide your server programs evenly among your iNEWS Servers to distribute the load they put
on your system. Additionally, ensure that you modify the servers line for alternate host
definitions for your iNEWS Servers to include the server program’s device number. This ensures
the server program can run on the surviving computer should one of your iNEWS Servers stop
functioning. See “Configuration File” on page 250 for more information.
The format for server programs’ configuration lines are:
server <device #> <type> <mailbox> <device name>