> From [EMAIL PROTECTED] Tue Sep  9 02:02:10 2003
> Date: Tue, 09 Sep 2003 10:10:33 +0200
> From: Bengt Olsson <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: LPRng: The Ricoh Aficio 1232C dosen't work
>
>
> --------------010108030404090403070206
> Content-Type: text/plain; charset=us-ascii; format=flowed
> Content-Transfer-Encoding: 7bit
>
>   Hello
>
> I'm running LPRng-3.8.1 on solaris2.6 and I can't get the Ricoh printer 
> to work.
>
> The printing jobs get stalled in the print queue after some time.
> I  have other printers as works fine.
>
> I'm a LPRng newbie so I send a complete copy of the printcap file, so 
> you can comment it and see "the working bit" of it.
>
> But it is the Ricoh(hughes) printers who is the problem.
>
> Some filter problem?
>
> The PS format shall work?
>
> Does a uppgrade of LPRng help?
>
>
> My printcap file looks like this:
>
>
> # Method 1: force client transfer to localhost
> #    have server send to real printer
> ##    both client and server will see the following information
>  remote|Spool to localhost
>    :[EMAIL PROTECTED]

Try:
 remote:force_localhost:[EMAIL PROTECTED]

First, see if the richo is responding.  You may need to do this as root:

cp /usr/libexec/filters/UTILS/one.ps /tmp/one.ps
   (or use 'locate one.ps' and copy it to /tmp)

lpr -D1 -P [EMAIL PROTECTED] /tmp/one.ps 2>&1 |tee /tmp/log

Now you will see output like this:

2003-09-10-08:01:27.611 h110 [64415] lpr  lp: Fix_send_auth: no security
2003-09-10-08:01:27.611 h110 [64415] lpr  lp: setstatus: msg 'sending job '[EMAIL 
PROTECTED]' to [EMAIL PROTECTED]                                                       
                        '
2003-09-10-08:01:27.611 h110 [64415] lpr  lp: setstatus: msg 'connecting to 
'10.0.0.31', attempt 1'
2003-09-10-08:01:27.619 h110 [64415] lpr  lp: setstatus: msg 'connected to '10.0.0.31''
2003-09-10-08:01:27.619 h110 [64415] lpr  lp: setstatus: msg 'requesting printer 
[EMAIL PROTECTED]'
2003-09-10-08:01:27.625 h110 [64415] lpr  lp: setstatus: msg 'sending control file 
'cfA415h110.private' to lp                                                             
                  @10.0.0.31'
2003-09-10-08:01:27.636 h110 [64415] lpr  lp: setstatus: msg 'completed sending 
'cfA415h110.private' to [EMAIL PROTECTED]                                              
                                 .0.0.31'
2003-09-10-08:01:27.636 h110 [64415] lpr  lp: setstatus: msg 'sending data file 
'dfA415h110.private' to [EMAIL PROTECTED]                                              
                                 .0.0.31'
2003-09-10-08:01:27.645 h110 [64415] lpr  lp: setstatus: msg 'completed sending 
'dfA415h110.private' to [EMAIL PROTECTED]                                              
                                 .0.0.31'
2003-09-10-08:01:27.645 h110 [64415] lpr  lp: setstatus: msg 'done job '[EMAIL 
PROTECTED]' transfer to [EMAIL PROTECTED]                                              
                                 0.0.31'
2003-09-10-08:01:27.649 h110 [64415] lpr  lp: cleanup: done, exit(0)

And you should see the job on the printer.  If you do not, then you need to
find the 'right' spool queue for the RICOH.

Next, see if there is a port open on the RICOH for accepting socket connections.

You can use nmap, portscan, etc. etc.:
#> nmap -sS 10.0.0.31
Interesting ports on h31.private (10.0.0.31):
(The 1637 ports scanned but not shown below are in state: closed)
Port       State       Service
21/tcp     open        ftp
23/tcp     open        telnet
80/tcp     open        http
280/tcp    open        http-mgmt
515/tcp    open        printer
631/tcp    open        ipp
9100/tcp   open        jetdirect

Nmap run completed -- 1 IP address (1 host up) scanned in 20.218 seconds

As you can see, you have ports 515, 631, and 9100 open -
515 is for LPD protocol
631 is for IPP protocol
9100 is for socket connections.

You can now try using port 9100:
I use the nc (netcat) program for this purpose:

110: {108} # nc 10.0.0.31 9100 </tmp/one.ps
@PJL USTATUS DEVICE
CODE=10023
DISPLAY="PRINTING DOCUMENT"
ONLINE=TRUE

@PJL USTATUS TIMED
CODE=10023
DISPLAY="PRINTING DOCUMENT"
ONLINE=TRUE

@PJL USTATUS PAGE
1

@PJL USTATUS TIMED
CODE=10023
DISPLAY="PRINTING DOCUMENT"
ONLINE=TRUE

^C punt!
h110: {109} #

Now you know that you are getting the files there.

Set up a printcap:

# add to /etc/printcap:
test:[EMAIL PROTECTED]       (or whatever worked)
    :sd=/var/spool/lpd/%P
        :force_localhost

Now run checkpc -f:

# checkpc -f
Fixing test...

Now restart lpd:

# killall -HUP lpd

And check that the spool is working:

# lpq -Ptest
Printer: [EMAIL PROTECTED]
 Queue: no printable jobs in queue
 Server: no server active

Send a job:

# lpr -P test /tmp/one.ps


And you should be sending jobs directly to the printer.

Now you can add the ifhp filter:

# add to /etc/printcap:
test:[EMAIL PROTECTED]       (or whatever worked)
    :sd=/var/spool/lpd/%P
        :force_localhost
        :filter=/usr/libexec/filters/ifhp

The Ricoh should be able to be controlled using the default IFHP
printer, which is basically an HP Laserjet 4 M Plus.

Patrick

Patrick Powell                 Astart Technologies
[EMAIL PROTECTED]            6741 Convoy Court
Network and System             San Diego, CA 92111
  Consulting                   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:                           | example:
subscribe LIST <mailaddr>       |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr>     |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------

Reply via email to