SUMMMARY 2.5.1 as a print server

2007-12-24 22:21:00

Thansk to all the helpful people on this list that gave me clues on this.

Here is what I woulnd up with:

#!/bin/sh

#######################################################################
#
# 4/5/2002 SDB MeadWestVaco
#
# Script to set up a Solaris 2.5.1 machine to be a print server for
# other Solaris clients
#
# It may also be necessary to add the clients with
# lpsystem clinet1 ... clinetn
#
#####################################################################

# remove existing entries if required
# sacadm -r -p tcp

# pmadm -r -p tcp -s 0

# pmadm -r -p tcp -s lpd

# pmadm -r -p tcp -s lp

scadm -a -p tcp -t listen -c "/usr/lib/saf/listen tcp" -v `nlsadmin -V` -n 999

pmadm -a -p tcp -s lp -i root -m `nlsadmin -o /var/spool/lp/fifos/listenS5'` -v `nlsadmin -V`

pmadm -a -p tcp -s lpd -i root -m `nlsadmin -o /var/spool/lp/fifos/listenBSD -A '\x00020203000000000000000000000000'` -v `nlsadmin -V`

pmadm -a -p tcp -s 0 -i root -m `nlsadmin -c /usr/lib/saf/nlps_server -A'\x00020ACE000000000000000000000000'` -v `nlsadmin -V`

The addresses (-A arguments) are supposed to be "universal addresses"
obtained via lpsystem -A, and the modified such that the port number is
changed from 0230 to )ACE for the "0" service. Howeer I suspect that these
numbers I have might work anywhere, since they don't seem to conatin the IP
address portion anyway.

Agains, thansk for all the help.

--
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
-- Benjamin Franklin

Comments

Got something to say?

You must be logged in to post a comment.