Document Number: NIPRSUP1007
Product: NIPrint (any version)
Date: 8-5-97
Title: ICL’s notes for setting up LPD/LPR on a ICL system

ICL¬s notes for setting up LPD/LPR on a ICL system

Note: This text file was submitted to us from an ICL user. We assume it is from ICL (although it carried no copyright). Network Instruments neither supports, or takes any responsibilities for the information provided. Should you have any questions about configuring your ICL system, you will need to contact ICL.

Terms & Abbreviations
  • Print Server
The DRS system which has the printer connected to it or Desktop PC .
  • Print Client The DRS system which will make remote use of the printer

Details
Steps 1 to 3 and 6 inclusive should be carried out on the print server and all print clients.

Note: You must have the lp and netcmds packages installed first.

1. Set up the TCP/IP listener
(if not already present)
Note that UNIX V7 sets up some of these bits for you.

Check using sacadm -l look for entry containing "listen tcp" if no entry , then perform:

sacadm -a -p tcp -t listen -c "/usr/lib/saf/listen tcp" -v `/usr/sbin/nlsadmin -V`

Check using pmadm -l -p tcp  look for entry containing "nlps_server".If there is an entry, remove it with:

pmadm -r -p tcp -s 0

Then perform: (all one command line)
pmadm -a -p tcp -s 0 -i root -m "`/usr/sbin/nlsadmin -c    \
/usr/lib/saf/nlps_server -A '                              \
\x0020aceIIIIIIII0000000000000000' `" -v                   \
`/usr/sbin/nlsadmin -V`

where the \x0002PPPPIIIIIIII0000000000000000 is

0002 =     AF_INET family address
PPPP =     port number, should be set to 0ace
IIIIIIII = Internet address of local machine converted to hex i.e

144.123.55.2 becomes 907b3702

000000.. = 16 x zeroes

NB: Unix V7 creates a service 0 under the TCP listener with IIIIIIII set to 00000000 - this appears to work !.


2. Ensure the following entries are added to /etc/services


listen   2766/tcp
listen   2766/udp

(Note - 2766 = 0ace in hex)


3. Add the lpNet service listener
Check using pmadm -l -p tcp  look for entry containing "listenS5". You will need to remove any existing 'lp' service.

pmadm -r -p tcp -s lp

Then perform:
pmadm -a-p tcp -s lp -i root -m "`/usr/sbin/nlsadmin -o /var/spool/lp/fifos/listenS5 `" -v `/usr/sbin/nlsadmin -V`

4.  On each client system, configure the spooler

lpsystem -t s5 -T never -R 10 server-name    for System 5
or
lpsystem -t bsd -T never -R 10 server-name   for BSD

Where server-name is the name of the printer server, eg ste0418. This tells the lp system about the type of server, i.e Unix System V.

call /usr/sbin/lpshut

To stop print service prior to setting up the printer.

lpadmin -p printer-name1 -s server-name!printer-name2 -T printer-
type

Where printer-name1 = the local  printer name
     printer-name2 = the remote printer name
     printer-type = the type of printer, i.e hplaserjet
if an error is made in defining the printer name ,then remove it
using :lpadmin -x printer-name1

NOTE: It is not mandatory to specify a printer type. 

         call /usr/lib/lpsched

         to start the print services

         enable printer-name
         accept printer-name

5. On the server, configure each client connection

         lpsystem -t s5 -T never -R no client-name

         This tells the server the type of each client (i.e System V)


         To check, see /etc/lp/Systems and /etc/lp/printers

6. Stop and restart the spooler on both the server & client.

         /usr/sbin/lpshut
         /usr/lib/lpsched

7  Log files and tests

The log files are in /etc/lp/logs - this is linked to /var

Check that the lpNet log file does not fill the /var partition (connection errors may rapidly fill this file).

To test the TCP/IP listener is active,type :

netstat -a|grep listen

If a line similar to

tcp    0   0   ste0418.listen *.* LISTEN
is shown then the lpNet listener is active.

To print to the remote printer from the client

lp -d printer-name filename

The lpNet logfile should show a succesful connection being made. The netstat command may return an extra line similar to:

tcp  0  0  ste0418.listen ste0411.2194 ESTABLISHED

also

Started child for server-name ,pid = xxxx
server-name Starting
server-name Connected to remote child

where server-name is the remote system

feedback                    terms/privacy                    corporate info