This is a discussion on printer not printing multiple copies within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> I'm trying to print multiple copies of a file on sun solaris 8 with the lp -n command to ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I'm trying to print multiple copies of a file on sun solaris 8 with the lp -n command to no avail. No matter what numeric value I supply -n, I still only get 1 copy of the file printed. The command I'm using is 'lp -d SNY_IT5000-2 -n2 file' The printer is an HP Laserjet 4000 with a Jetdirect card. My printers.conf entry is: SNY_IT5000-2:\ :bsdaddr=10.10.21.17,10.10.21.17:\ :description=SNY_IT5000-2: Printing in this manner works fine otherwise, it just won't print multiple copies. Can you help please? Thanks in Advance |
| |||
| trevor wrote: > > I'm trying to print multiple copies of a file on sun solaris 8 with > the lp -n command to no avail. No matter what numeric value I supply > -n, I still only get 1 copy > of the file printed. > > The command I'm using is 'lp -d SNY_IT5000-2 -n2 file' > > The printer is an HP Laserjet 4000 with a Jetdirect card. My > printers.conf > entry is: > > SNY_IT5000-2:\ > :bsdaddr=10.10.21.17,10.10.21.17:\ > :description=SNY_IT5000-2: > > Printing in this manner works fine otherwise, it just won't print > multiple copies. Some printers' network cards do not support the notion of multiple copies via the LPR/LPD protocol. It sounds like you have one. I ran into this same problem with the Tektronix/Xerox Phaser printers. I sidestepped the problem by replacing LPR/LPD with CUPS . -- Griff Miller II | There is no safety for honest men except | Manager of Information Technology | by believing all possible evil of evil | Positron Corporation | men. - Edmund Burke | griff.miller@positron.com | | |
| |||
| trevor_obba@yahoo.co.uk (trevor) writes: >printers.conf >entry is: > >SNY_IT5000-2:\ >:bsdaddr=10.10.21.17,10.10.21.17:\ >:description=SNY_IT5000-2: > This is because Solaris has been configured to think the device at 10.10.21.17 is the print server for the printer. The print server is the thing that repeatedly sends the file to the printer to produce multiple copies. The problem is, the device at 10.10.21.17 is the LPD emulator in your printer's Jetdirect card/box. Jetdirect LPD emulators do not support the protocol's feature for printing multiple copies. What you need to do instead is configure your Solaris machine to be its own print server for the printer, so the Solaris interface script will send the multiple copies to the printer: lpadmin -x SNY_IT5000-2 lpadmin -p SNY_IT5000-2 -v /dev/null -m netstandard lpadmin -p SNY_IT5000-2 -T unknown -I any lpadmin -p SNY_IT5000-2 -o protocol=tcp -o dest=10.10.21.17:9100 /usr/bin/enable SNY_IT5000-2 /usr/sbin/accept SNY_IT5000-2 The "-I any" option uses an uppercase i as the option letter, not a lowercase L. Some newsreaders use fonts that make it hard to tell the difference. If you have Solaris 8 or later, with current lp patches, and you don't want Solaris to print a banner page, type this command after the others: lpadmin -p SNY_IT5000-2 -o banner=never -Greg -- Do NOT reply via e-mail. Reply in the newsgroup. |
| |||
| gerg@panix.com (Greg Andrews) wrote in message news:<bjo1ck$2u1$1@reader2.panix.com>... > trevor_obba@yahoo.co.uk (trevor) writes: > >printers.conf > >entry is: > > > >SNY_IT5000-2:\ > >:bsdaddr=10.10.21.17,10.10.21.17:\ > >:description=SNY_IT5000-2: > > > > This is because Solaris has been configured to think the > device at 10.10.21.17 is the print server for the printer. > The print server is the thing that repeatedly sends the > file to the printer to produce multiple copies. > > The problem is, the device at 10.10.21.17 is the LPD emulator > in your printer's Jetdirect card/box. Jetdirect LPD emulators > do not support the protocol's feature for printing multiple copies. > > What you need to do instead is configure your Solaris machine to > be its own print server for the printer, so the Solaris interface > script will send the multiple copies to the printer: > > lpadmin -x SNY_IT5000-2 > > lpadmin -p SNY_IT5000-2 -v /dev/null -m netstandard > lpadmin -p SNY_IT5000-2 -T unknown -I any > lpadmin -p SNY_IT5000-2 -o protocol=tcp -o dest=10.10.21.17:9100 > /usr/bin/enable SNY_IT5000-2 > /usr/sbin/accept SNY_IT5000-2 > > The "-I any" option uses an uppercase i as the option letter, not > a lowercase L. Some newsreaders use fonts that make it hard to > tell the difference. > > If you have Solaris 8 or later, with current lp patches, and you > don't want Solaris to print a banner page, type this command > after the others: > > lpadmin -p SNY_IT5000-2 -o banner=never > > > -Greg Thanks Greg your suggestions worked, printer now printing multple copies but I can not print banners, I tried to enable banners by issuing lpadmin -p SNY_IT5000-2 -o banner=always But printer is still not banner page, when the above command was issued. the /etc/lp/printers/SNY_IT5000-2/configuration file shows banner is enabled, Here is my /etc/lp/printers/SNY_IT5000-2/configuration file Banner: on Content types: simple Device: /dev/null Interface: /usr/lib/lp/model/netstandard Printer type: unknown Modules: Options: protocol=tcp,dest=206.74.67.42:9100 Banner is enable on the physical printer. I telnet on printer and make sure banner is enabled but still can't print banner when jobs are sent to printer, However I could print banners from other print server printing to the same printer with the same printer configurations. I issued the the following command again lpadmin -p SNY_IT5000-2 -o protocol=tcp,dest=206.74.67.42 -o banner -v /dev/null lpadmin -p SNY_IT5000-2 -o banner=always But printer still not printing banner page. Other print server's print banner pages when print jobs are sent to the same printer from a similar sun solaris 8 machine with the same LP patch (patch 109320-06 ) and the same print configuration. Can you help? please Thanks again |
| |||
| trevor_obba@yahoo.co.uk (trevor) writes: > >your suggestions worked, printer now printing multple copies but I can >not print banners, I tried to enable banners by issuing > >lpadmin -p SNY_IT5000-2 -o banner=always > >But printer is still not banner page, when the above command was >issued. the /etc/lp/printers/SNY_IT5000-2/configuration file shows >banner is enabled, > The default for the banner is on, so you didn't need to type any command for it. Check the /etc/lp/interfaces/SNY_IT5000-2 interface file and see if there's a line that reads: nobanner=no or nobanner=yes It should be the former, not the latter. Perhaps in the past your netstandard interface file was edited to disable banner pages. -Greg -- Do NOT reply via e-mail. Reply in the newsgroup. |
| ||||
| trevor_obba@yahoo.co.uk (trevor) writes: >> > >> >lpadmin -p SNY_IT5000-2 -o banner=always >> > > >and users are complaining about banners been printed out in >small text, is they a way to make print banner print in large >text. How does sun solaris generate the above banner >informations. > >Basically, how do I make the above banner pages print out in >large text? > They're printing at the printer's default font size for text. I.e. the size that's configured in the printer's firmware. Here are a couple of possible remedies, from simplest (yet might not work) to more complex (yet is known to work): 1) Tell Solaris the printer is a Postscript type: lpadmin -p SNY_IT5000-2 -T PS 2) Tell Solaris the printer is a Postscript type, and should only receive the print jobs in Postscript format: lpfilter -f postprint -F /etc/lp/fd/postprint.fd lpadmin -p SNY_IT5000-2 -T PS -I postscript 3) Install HP's Jetdirect Printer Installer for Solaris software, and use it to set up the printer queue on the Solaris computer. It's available if you search www.hp.com's download section for the words "jetdirect" and "solaris". Remedies 1 and 2 will work only if the printer supports Postscript. I don't know if your Laserjet 4000 does. If 1 and 2 only cause the printer to print pages of junk that looks like software source code (or just a few lines of source code and the rest blank), then your printer does not have Postscript support, or it's not enabled. Some models of HP printers like remedy 1 when you print a Postscript file, but not when you print text files or PCL encoded files. Remedy 2 can help as long as you're not printing PCL encoded files. Sometimes even folks who print ordinary text files don't like remedy 2. Remedy 3 will definitely work, because it replaces the Solaris interface script (netstandard) with one written by HP specifically for the 4000 series printers. It prints proper banner pages no matter what format your print files are in, and the banner pages have large letters. Glad I was able to help so far. Hope this gets the last little bit. -Greg -- Do NOT reply via e-mail. Reply in the newsgroup. |