Service manual

124 Cyclades ACS 5000 Advanced Console Server Command Reference Guide
Line printer daemon
This feature implements the UNIX Line Printer Daemon (LPD) in the console server and may be
used with local serial printers. It enables the console server to receive network print requests and
service them using locally attached serial printers.
To configure the lpd:
1. Setup the serial port where the serial printer is connected.
2. Edit the /etc/portslave/pslave.conf file and set the protocol of the serial port to lpd.
s2.protocol lpd
3. Create the printer definition. Edit the /etc/printcap file and configure the printer. The spool
directory is created automatically by cy_ras process.
Example
4. Enable the printer daemon file /etc/lpd.sh and change the option ENABLE to YES.
5. Allow clients to use the service.
Edit the file /etc/hosts.lpd and include the host names that have permission to use the console
server printers.
NOTE: The lpd needs to translate the IP address of the request message to the host name, check your
resolv.conf file.
6. Restart the processes by executing the commands runconf and daemon.sh.
#comment
# primary printer name and alias
# lp |lp2| serial printer on port ttyS2
#suppress header and/or banner page
#:sh:
#spool directory - the name is fixed as lp_ttySnn when nn is
the
#serial port number
#:sd=/var/spool/lpd/lp_ttyS2:
#printer device
#:lp=/dev/ttyS2:
#log filename
#:lf=/var/log/lpd.log:
#set serial port speed as 115.200 bps
#:br115200:
lp|lp2| serial printer on port ttyS2:\
:sh: \
:sd=/var/spool/lpd/lp_ttyS2: \
:lp=/dev/ttyS2: \
:lf=/var/log/lpd.log: