Server Configuration
Creating Services
4-7
4.6.1 Creating a Simple Service (A Line Printer)
Connections, queueing, banner, and formfeed options are enabled by default when you enter a Set Service
command, so it is not necessary to configure them explicitly. NetWare, and RTEL access are provided by
default, but LAT and AppleTalk access have to be explicitly enabled. The port providing the service must
also allow remote access, so it must have access set to Dynamic or Remote.
Figure 4-14 shows the command needed to create a service called dump_port on port 1.
Figure 4-14: Set Service Command
If the device connected to port 1 is a physical print device, the port’s baud rate should be set to reflect the
highest speed at which the printer is capable of printing. Parity, character size, and flow control might have
to be adjusted to match the printer’s settings.
Enter a Show Services command to verify that the service was created and usable.
Figure 4-15: Show Service Command
In Figure 4-15, the service rating is non-zero, indicating that the service is available for connections. If the
service rating were zero, the service would not be available. This can happen if the port is not configured
for Dynamic or Remote access, if connections are disabled, or if the service/port is in use. The Show Ports
All command is useful for finding out why a service is unavailable; it shows port access modes, login
statuses, and the services currently being offered.
After setting up a service, you should be able to connect to it locally or from other protocol-compatible
nodes. To connect to service dump_port, use the following command:
Figure 4-16: Connecting to a Service
Note:
Output will be displayed on port 4. If there is a terminal device on port 4, it will
echo keystrokes to the port.
To disconnect from the service, press the Break key to return to the Local> prompt, then type Disconnect.
Your session will be closed and the dump_port service will again be available for connections. Enter the
Show Services command to make sure.
Local> SET SERVICE dump_port PORT 1 LAT ENABLED
Local> LOGOUT PORT 1
Local> SHOW SERVICE LOCAL CHARACTERISTICS
Service: DUMP_PORT
Rating: 255
Characteristics:
Enabled Groups: 0
Ident:
Ports: 1
Queuing Banner RTEL Formfeed NetWare
LAT Connections
Local> connect dump_port
%Info: connecting to service dump_port at node...