SUMMARY 2.5.1 as a print server

From: stan <stanb_at_awod.com>
Date: Mon Apr 08 2002 - 11:08:21 EDT
Here is a bit more inoformation on getting 2.5.1 to work as a print server.

I had recieved the below email when I posted the summary, but I had not had
time to go through it carefully. There is one tiny mistake in it, that kept
this from working for me, but now I have found and fixe it. Therfore this
should work fine, and it's better than what I originally posted.


----- Forwarded message from Edward Murphy <sc2289@email.mot.com> -----

From: Edward Murphy <sc2289@email.mot.com>
To: stan <stanb@awod.com>
Subject: Re: Still strugling to make a 2.5.1 machine a print server
Date: Fri, 05 Apr 2002 08:01:52 -0700
X-Mailer: Mozilla 4.79 [en] (X11; U; SunOS 5.8 sun4u)

Stan:

I did the following on a 2.5.1 server many moons ago to get it to work as the
printer server:

-----------------------------------------------------

#!/bin/sh
# This is from the System Administration Guide, Volume II answerbook,

sacadm -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`

u_addr=`lpsystem -A`

pmadm -a -p tcp -s lpd -i root -m `nlsadmin -o /var/spool/lp/fifos/listenBSD -A "\\x${u_addr}"` -v `nlsadmin -V`

new_addr=`lpsystem -A | cut -b1-4`

> tail=`lpsystem -A | awk '{pos = index($0, "0203")+4
> print substr($0, pos, length($0)-pos+1)}'`

The above 2 lines need to look like:

tail=`lpsystem -A | awk '{pos = index($0, "0203")+4 ; print substr($0, pos, length($0)-pos+1)}'`

Note the addition of ht esemicolon in front of the print command in the awk
script.


new_addr=`echo ${new_addr}0ACE${tail}`

pmadm -a -p tcp -s 0 -i root -m `nlsadmin -c /usr/lib/saf/nlps_server -A "\\x${new_addr}"` -v `nlsadmin -V`

--------------------------------------

stan wrote:
> 
> Sorry to keep buging the list about this, but I'm not promarily a Sun
> admin, and this particualr area sems to be very Sun specific.
> 
> As you may recall, I'm desperatly trying to make a 2.5.1 machine work as a
> print server for several other 2.5.1 machines.
> 
> yesterdai I aparently suceded in invoking the magic incatation of sacadm
> for this. Today I've discvered that I also heve to do thigs with pmadm.
> gere is what I've tried:
> 
> pmadm -a -p tcp -s lp -i root -m `nlsadmin -o /var/spool/lp/fifos/listenS5` -v `nlsadmin -V`
> 
> Which seemd to work
> 
> Then:
> 
> pmadm -a -p tcp -s lp -i root -m `nlsadmin -o /var/spool/lp/fifos/listenBSD -A  '\x00020203000000000000000000000000'` -v `nlsadmin -V`
> 
> Which eturned an error message:
> 
> Invalid request, lp already exists under tcp
> 
> And then:
> 
> pmadm -a -p tcp -s 0 -i root -m `nlsadmin -c /usr/lib/saf/nlps server -A
> '\x00020203000000000000000000000000'` -v `nlsadmin -V`
> 
> Which must be sytacticly incorrect, as it just returns the pmadm ussage
> message.
> 
> Could some kind soul give me a clue here?
> 
> --
> "They that would give up essential liberty for temporary safety deserve
> neither liberty nor safety."
>                                                 -- Benjamin Franklin
> _______________________________________________
> sunmanagers mailing list
> sunmanagers@sunmanagers.org
> http://www.sunmanagers.org/mailman/listinfo/sunmanagers

-- 
************************************************************
* Edward Murphy     Sr. Unix Systems Administrator         *
* Motorola                                                 *
* e-mail: sc2289@email.mot.com                             * 
* Voice:  480-732-2165    Pager:1-888-759-8352 Pin:1195731 *
************************************************************



----- End forwarded message -----

Thanks to everyone who helped on this!


-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
						-- Benjamin Franklin
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Mon Apr 8 11:12:22 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:39 EST