1830493 Members
2696 Online
110005 Solutions
New Discussion

Third party printers

 
Otto Folprecht
Advisor

Third party printers

I have three canon photocopy machines in my building that need to have the ability to print from our app. That runs on HPUX 10.20. I have tried to add a remote printer and enabled the BSD flag. Garbage out. I recreated the printer but this time without the BSD flag enabled. Once again garbage out. What would be the best way to connect this device. The photocopy has a integrated network card that has a IP address.
3 REPLIES 3
Ross Martin
Trusted Contributor

Re: Third party printers

1. Make sure you can ping the printer -- if you can't you need to resolve the network or printer issue.

If the printer responds, then:

A. Edit the /etc/inetd.conf file

Add an entry for rlpdaemon - it should look like:

printer stream tcp nowait root /usr/lib/rlpdaemon rlpdaemon -i -l

B. Restart inetd
# /etc/inetd -c

C. rlpdaemon is a Berkeley service and requires and entry in the
/etc/hosts file. NOTE: all Berkeley services do a gethostbyname
at the remote end, if the request fails then rlp will not
respond at all.

D. The REMOTE is now fully configured for rlp.

2. Configuring the LOCAL machine.

A. Do an lpstat -t, and look for the printer device that you
wish to configure.

B. The scheduler must be shut down:
/usr/lib/lpshut

C. Now configure the printer:

/usr/lib/lpadmin -p -mrmodel -v/dev/null -ocmrcmodel
-osmrsmodel -orm -orp

NOTE: The '-ob3' option must be used if remotely printing
to a BSD printer. See lpadmin(1M) for details.

3. The rlp printer is now configured on the LOCAL machine. There
are a few basic steps that need to be taken in order to get
the printer to be functional.

- /usr/bin/enable
- /usr/lib/accept

Then issue the command,

- /usr/lib/lpsched

Done.

If the above doesn't work,
try telnet'ing to the printer:

telnet 515
Trying...
Connected to
Escape character is '^|'

If you don't get something back that looks like the above, then it may be a network issue.

If all else fails, you may need to contact Cannon for assistance.

Hope this helps.

Ross Martin

Sanjay_6
Honored Contributor

Re: Third party printers

Hi Otto,

Configure the printer as a local printer connected to the parallel printer on any system. On the hp us side configure this printer as a remote printer connetedto a remote system. While configuring this printer as a remote printer on hp ux configure it as a bsd printer.

Try this link,

http://us-support3.external.hp.com/cki/bin/doc.pl/sid=e15d711813d5a8155f/screen=ckiDisplayDocument?docId=200000041602968

Hope this helps.

Regds
Olav Baadsvik
Esteemed Contributor

Re: Third party printers


Hi,

I was involved in solving a problem with
printing to a canon photocopy machine a couple
of years ago. The problem was found to be
that the canon did not handle a UNIX-type
linetermination (lf instead of cr-lf that
comes from a pc).
As you say it is "garbage out" it is difficult
to say if you have the same problem.
But assuming it is the same problem, the
solution may be as follows:

. use SAM to set define the printer as
a remote printer. If needed try
with and without the BSD-flag.
. Modifiy the interface-script found in
/etc/lp/interface so that it translates
lf to cr-lf. This is done like this:
Add the following two lines between
the lines with the 5 shift and the line
with the rlp command:

/usr/bin/ux2dos $1 > /tmp/$$trfil
mv /tmp/$$trfil $1

Regards
Olav