Operating System - HP-UX
1823227 Members
3650 Online
109648 Solutions
New Discussion юеВ

Canon IR8500 printer on HP-Ux 11

 
Fred Habash
Occasional Advisor

Canon IR8500 printer on HP-Ux 11

Prints come out only with first line on first page then stops. No more pages come out. This is what I did:
1. lpshut
2.lpadmin -pCanonIR8500 -v/dev/null -mrmodel -ob3 -ocmrcmodel -osmrsmodel -orc -orm10.10.10.10 -orplp
Notes: It would only print as descripted above using -mrmodel . Using other models like postscript, dumbplot, laserjet, and dumb causes noting to print at all. Also, the queue name must be 'lp' so I passed -orplp
3. accept CanonIR8500
4. enable CanonIR8500
5. lpsched
I read many response for similar inquiries on this forum suggesting enabling CR/LF. Am assuming this what the problem is. If it is, am not sure where would you do that. I looked in /etc/lp/interface for the printer model and I could not find a specific option to pass. I tried the -i -f, but nothing worked. Any suggestions would be appreciated.
6 REPLIES 6
Bill Hassell
Honored Contributor

Re: Canon IR8500 printer on HP-Ux 11

The Canon printer has a remote print server built in so you must add the printer as a remote printer and not a local printer or HP JetDirect printer. However, HP-UX is a SysV kernel so the lp spooler modifies print jobs only when the printer is directly connected (serial or parallel). Remote printers get just the raw data file sent to the lp command. A BSD kernel use a printcap model which means that all processing is done locally before sending the file to a local or a remote printer.

Like all Unix flavors, HP-UX ASCII files are strings separated by the LF character only. Most HP printers have an option to treat LF charcaters the same as CR LF but the Canon may not have this feature. To add the CR, you can simply use ux2dos as a filter:

ux2dos myFile | lp -dprinter


Bill Hassell, sysadmin
Fred Habash
Occasional Advisor

Re: Canon IR8500 printer on HP-Ux 11

Bill,
Thanks a bunch, it worked fine with ux2dos command. However, I've read a response to another similar inquiry in this forum stating "Thanks, using the dumplot printer with the CR/LF option (number 56 I think) worked like a charm!". The above is a quote. How and what does it mean to to use a printer with this option? My understanding is you either enable it on the printer itself or pass it to the lp command as an option. How would you interpret the above quote. Again, Thank you. The above quote taken from "Canon IR6000 Printers and HP-UX" inquiry.
Bill Hassell
Honored Contributor

Re: Canon IR8500 printer on HP-Ux 11

The dumbplot model script has no options (you can read it in /var/spool/lp/model), and I don't know of any options to any HP model script that is numeric (except for -10 and -12 which are shortcuts for 10lpi and 12lpi). Because this printer is not local, there is no way to connect a 'normal' model script to the printer with spooler. A remote printer requires the remote script (rmodel) but there are no options for adding the CR to each LF.

Since the print file is passed directly to rlp (which actually sends the file to the remote system) it will be difficult to create a new rmodel script that can imbed the ux2dos command without needing a local temp file for the print job.

I think you'll have to stay with ux2dos on the command line.


Bill Hassell, sysadmin
Fred Habash
Occasional Advisor

Re: Canon IR8500 printer on HP-Ux 11

For time being, I think we are all set. I thought I can stick to the lp command to make it easier for users. I will make a shell script that accepts file name as an agrument and prints it out with ux2dos command. Thanks
Fred Habash
Occasional Advisor

Re: Canon IR8500 printer on HP-Ux 11

Bill,
What are my options to have it print landscape? The "-o landscape" does not work. I've heard of adding control characters to the begining of the file. Any leads on that?
Sean Lavery
Advisor

Re: Canon IR8500 printer on HP-Ux 11

Fred,
What did you use as your printername, remote system name, and remote printer name?? I have a IR8500 that I had printing a bit ago, but had to remove it because of a change in configuration. Now, trying to re-add it, I cant seem to get it to print. Any help would be appreciated!
Thanks

Sean