[comp.sys.hp] Attaching Laserjet III to 9000-350..

luism@genesis.Berkeley.EDU (Luis Miguel) (03/29/91)

Now that we got our new laserjet III, we are anxious top get it
up and running. I am trying to attach it to the built in
serial port. The problem we are having comes in getting the
print spooler system started. I essentially get messages
telling me that I am having problems with the "status"
files. I found 2 such files: qstatus and pstatus in /usr/spool/lp.
They were empty, and the system did not like it.
I tried making them directories, and creating empty hp2686 and lp2686
files in them, and no good. Any suggestions?

I include a transcript of the comands I run, the error messages, and the
directory structure.

Also, where do I find instructions on attaching the printer from
a parallel port? 

Thanks,

/luis

--------------------------------------------------------------
This is the file /etc/mklp.local:

# ---- Laser Printer ---
 /etc/mknod /dev/lp2686 c 1 0x090004
# ---- cleaning up
 rm -rf /usr/spool/lp/{FIFO,SCHEDLOCK}
 cd /usr/spool/lp #; >pstatus ; >qstatus 
# ---- Setting correct ownerships and permissions
 chown lp pstatus; chgrp bin pstatus; chmod 755 pstatus
 chown lp qstatus; chgrp bin qstatus; chmod 755 qstatus
 chmod 600 /dev/lp2686
 chown lp /dev/lp2686
 chgrp bin /dev/lp2686
# ----  creating the printer
 /usr/lib/lpadmin -plp2686 -mhp2686a -v/dev/lp2686 -h
# ----  accepting requests
 /usr/lib/accept lp2686
# ----  enabling the printer
 /usr/bin/enable lp2686
# ----  setting the default printer
 /usr/lib/lpadmin -dlp2686 
# ----  activating the printer scheduler
 /usr/lib/lpsched

This is what I get when I run them:
% sh mklp.local
	mknod: File exists
	mklp.local: pstatus: cannot create
	mklp.local: qstatus: cannot create
	/usr/lib/lpadmin: can't open printer status file
	/usr/lib/accept: can't open acceptance status file
	/usr/bin/enable: can't open printer status file

This is the current directory structure:

/usr/spool/:
	lp/class
	lp/interface/lp2686
	lp/interface
	lp/member/lp2686
	lp/member
	lp/model/dumb
	lp/model/hp2225a
	lp/model/hp2686a
	lp/model/hp2934a
	lp/model/hp2686a-bk
	lp/model/PCL2
	lp/model/rmodel
	lp/model/laserjet
	lp/model/dumbplot
	lp/model/HPGL1
	lp/model/HPGL2
	lp/model/fonts
	lp/model
	lp/request/lp2686
	lp/request/lp
	lp/request
	lp/pstatus/hp2686a
	lp/pstatus/lp2686
	lp/pstatus
	lp/qstatus/hp2686a
	lp/qstatus/lp2686
	lp/qstatus
	lp/log
	lp/default
	lp/cinterface
	lp/oldlog
	lp/seqfile
	lp/cmodel/rcmodel
	lp/cmodel
	lp/sinterface
	lp/smodel/rsmodel
	lp/smodel
	lp/fonts/lp2l
	lp/fonts/lp4l
	lp/fonts/lp4p
	lp/fonts
	lp/info
	lp/receive
	lp/outputq
	lp

-- 
Luis Miguel. Computer Science Division, UC Berkeley.
arpanet: luis@postgres.Berkeley.EDU         
uucp: {ihnp4,decvax}!ucbvax!postgres!luis                    
at&t: (415) 642-8234

lienhart@hpfcdc.HP.COM (Bob Lienhart) (04/06/91)

Remove all your printers, make sure that pstatus and qstatus are
empty but in existance.  Then use sam to add your printer.  The
proper device file will be built.  (this assumes that you are
running HP-UX 7.0 or later.

Bob Lienhart