AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only
Expand all | Collapse all

Printing Multiple Copies

  • 1.  Printing Multiple Copies

    Posted 12/12/07 08:06 AM

    Originally posted by: capeme


    Has anyone come accross and solved an issue where only 1 copy of a doc prints after you use the -n flag and specify more then 1. My exact syntax is
    lp -dprintername -n3 documentname
    I am using AIX remote print queues and it happens on more then 1 printer.
    #AIX-Forum


  • 2.  Re: Printing Multiple Copies

    Posted 12/12/07 08:33 AM

    Originally posted by: SystemAdmin


    First try qprt -n3 and if that doesn't work, then tell us what kind of printer that you are using so that I can look at the virtual printer type to see how this might be being handled.

    No promises.

    I need the real printer type, and how it is setup - AIX printer definition and attachment method (jet direct, etc).
    #AIX-Forum


  • 3.  Re: Printing Multiple Copies

    Posted 12/12/07 08:53 AM

    Originally posted by: capeme


    Did you mean -N3 - that is what I tried...But still only 1 copy - qprt -Pp103 -N3 /etc/motd
    anyway this is conencted via an AIX Remote print queue - stanza frm /etc/qconfig and it is a HPLJ8000 with Jet Direct
    p103:
    device = @p103
    up = TRUE
    host = p103
    s_statfilter = /usr/lib/lpd/aixshort
    l_statfilter = /usr/lib/lpd/aixlong
    rq = p103
    @p103:
    backend = /usr/lib/lpd/rembak -T999

    Oh yea and I am being told not being able to print multiple copies is happeneing to more then this printer...

    Message was edited by: capeme
    #AIX-Forum


  • 4.  Re: Printing Multiple Copies

    Posted 12/12/07 09:21 AM

    Originally posted by: SystemAdmin


    The problem is that the rembak backend doesn't really do anything. There is no virtual printer and I think that may be what is giving the multiple copies. If you change to use local formatting, then you could get the multiple copies.
    #AIX-Forum


  • 5.  Re: Printing Multiple Copies

    Posted 12/12/07 09:22 AM

    Originally posted by: capeme


    What do you mean local formatting?
    #AIX-Forum


  • 6.  Re: Printing Multiple Copies

    Posted 12/12/07 09:27 AM

    Originally posted by: SystemAdmin


    smitty mkpq
    - remote
    - Local filtering before sending to print server

    Then you will choose printer thpe, etc.
    #AIX-Forum


  • 7.  Re: Printing Multiple Copies

    Posted 12/12/07 09:35 AM

    Originally posted by: capeme


    let me try this and get back to you
    thanks
    #AIX-Forum


  • 8.  Re: Printing Multiple Copies

    Posted 12/12/07 12:38 PM

    Originally posted by: capeme


    Hi:
    Making the queue this way worked as far as printing multiple copies but now I am getting “A with an umlaut” instead of graphics; in this case line characters.
    ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
     Order#/Pos#     Quantity  Unit                        Item                     Price  Unit                      
    ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

    Any thoughts?

    Message was edited by: capeme
    #AIX-Forum


  • 9.  Re: Printing Multiple Copies

    Posted 12/12/07 12:55 PM

    Originally posted by: SystemAdmin


    Change the type data type to passthrough and then it won't do code page conversion which is what is occuring here. The virtual printer does a number of things describe in the Redbook printing for fun and profit.

    smitty chpq
    - choose queue
    - select 2 Default Print Job Attributes

    Change Print file TYPE to p for passthrough
    #AIX-Forum


  • 10.  Re: Printing Multiple Copies

    Posted 12/12/07 01:03 PM

    Originally posted by: capeme


    I will try it and let you know.
    Thanks so much!
    #AIX-Forum


  • 11.  Re: Printing Multiple Copies

    Posted 12/12/07 04:24 PM

    Originally posted by: capeme


    Now it appears we are getting little a's.
    #AIX-Forum


  • 12.  Re: Printing Multiple Copies

    Posted 12/12/07 04:33 PM

    Originally posted by: SystemAdmin


    So what could be different. Things are now running through a virtual printer (piobe) on the way. This does the following things.

    1. Sends a setup sequence to the printer.
    2. Can call a user defined filter
    3. Can format the file unless you use passthrough or Postscript
    This can wrap lines, replace characters,
    It can also set a code page on the printer.
    When you say graphics, I'm not sure what you mean.
    We supposedly turned this off.
    4. Send the file to the printer
    5. Add header pages
    6. Send commands to reset the printer.

    So if the formatting is really turned off, then the problem could be with the code page. To get rid of the commands before and after the printer.

    lsvirprt
    - choose the printer
    - type ci= and with no space after the = press enter
    - type cr= and again with no space press enter
    - press enter again

    This should tell the virtual printer not to send a setup or reset sequence.
    #AIX-Forum


  • 13.  Re: Printing Multiple Copies

    Posted 12/12/07 04:40 PM

    Originally posted by: capeme


    correction - it could be captial A's (I have to call someone to check printer) but I think the bottomline is still priting A's, Yes?
    #AIX-Forum


  • 14.  Re: Printing Multiple Copies

    Posted 12/12/07 04:57 PM

    Originally posted by: capeme


    dang still A's.
    So if I setup queue as a remote prrint queue - standard processing - it prints fine - no A's but I can only get it to print 1 copiy.
    If I set it up remote printer with local filtereing, etc. I can print multiple copies but lose the graphics; ie. line draw...
    wow...
    Would it matter with the way you have me setting up the queue as to which of the following I add the print queue name to:
    Names of NEW print queues to add
    HP-GL/2
    PostScript
    PCL
    I have to add one and do you think it matters what I name the queue...

    Message was edited by: capeme
    #AIX-Forum


  • 15.  Re: Printing Multiple Copies

    Posted 12/14/07 10:36 AM

    Originally posted by: capeme


    Any other thoughts???
    #AIX-Forum


  • 16.  Re: Printing Multiple Copies

    Posted 12/14/07 11:12 AM

    Originally posted by: SystemAdmin


    Time for you to go to support line as this is getting more detailed than we can explain through a forum. The next techniques I would use are to use iptrace to look at what is going over the network, create a queue that prints to a file in /dev as described in the redbook and see what is changing, confirmation that you really do have the qprt -d flag set to a by checking with lsvirprt, checking to see that the printer works ok still with the original queue except not printing the number of pages.

    You can compare the actual characters in the file with what gets sent through using 'od -ax filename > outfile'. This will show you what really gets changed.

    This is problem determination time. I've explained how things work and what causes what.

    In the virtual printer settings that you can see with lsvirprt

    j=!
    J=!
    ci=
    cr=
    d=p

    The other thing that might need set is the code page, but that should not get set with these flags.

    Since I don't know what characters are actually and I don't have athe type of printer you are defining, I can't really give you a lot more advice.
    #AIX-Forum