Topic
  • 15 replies
  • Latest Post - ‏2007-12-14T16:11:31Z by SystemAdmin
capeme
capeme
43 Posts

Pinned topic Printing Multiple Copies

‏2007-12-12T13:06:06Z |
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.
Updated on 2007-12-14T16:11:31Z at 2007-12-14T16:11:31Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    6902 Posts

    Re: Printing Multiple Copies

    ‏2007-12-12T13:32:42Z  
    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).
  • capeme
    capeme
    43 Posts

    Re: Printing Multiple Copies

    ‏2007-12-12T13:54:07Z  
    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).
    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
    Updated on 2007-12-12T13:54:07Z at 2007-12-12T13:54:07Z by capeme
  • SystemAdmin
    SystemAdmin
    6902 Posts

    Re: Printing Multiple Copies

    ‏2007-12-12T14:20:40Z  
    • capeme
    • ‏2007-12-12T13:52:31Z
    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
    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.
  • capeme
    capeme
    43 Posts

    Re: Printing Multiple Copies

    ‏2007-12-12T14:22:03Z  
    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.
    What do you mean local formatting?
  • SystemAdmin
    SystemAdmin
    6902 Posts

    Re: Printing Multiple Copies

    ‏2007-12-12T14:26:47Z  
    • capeme
    • ‏2007-12-12T14:22:03Z
    What do you mean local formatting?
    smitty mkpq
    - remote
    - Local filtering before sending to print server

    Then you will choose printer thpe, etc.
  • capeme
    capeme
    43 Posts

    Re: Printing Multiple Copies

    ‏2007-12-12T14:35:04Z  
    smitty mkpq
    - remote
    - Local filtering before sending to print server

    Then you will choose printer thpe, etc.
    let me try this and get back to you
    thanks
  • capeme
    capeme
    43 Posts

    Re: Printing Multiple Copies

    ‏2007-12-12T17:42:24Z  
    • capeme
    • ‏2007-12-12T14:35:04Z
    let me try this and get back to you
    thanks
    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
    Updated on 2007-12-12T17:42:24Z at 2007-12-12T17:42:24Z by capeme
  • SystemAdmin
    SystemAdmin
    6902 Posts

    Re: Printing Multiple Copies

    ‏2007-12-12T17:54:36Z  
    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
  • capeme
    capeme
    43 Posts

    Re: Printing Multiple Copies

    ‏2007-12-12T18:02:39Z  
    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
    I will try it and let you know.
    Thanks so much!
  • capeme
    capeme
    43 Posts

    Re: Printing Multiple Copies

    ‏2007-12-12T21:23:46Z  
    • capeme
    • ‏2007-12-12T18:02:39Z
    I will try it and let you know.
    Thanks so much!
    Now it appears we are getting little a's.
  • SystemAdmin
    SystemAdmin
    6902 Posts

    Re: Printing Multiple Copies

    ‏2007-12-12T21:32:56Z  
    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.
  • capeme
    capeme
    43 Posts

    Re: Printing Multiple Copies

    ‏2007-12-12T21:39:39Z  
    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.
    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?
  • capeme
    capeme
    43 Posts

    Re: Printing Multiple Copies

    ‏2007-12-12T21:57:32Z  
    • capeme
    • ‏2007-12-12T21:39:39Z
    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?
    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
    Updated on 2007-12-12T21:57:32Z at 2007-12-12T21:57:32Z by capeme
  • capeme
    capeme
    43 Posts

    Re: Printing Multiple Copies

    ‏2007-12-14T15:36:04Z  
    • capeme
    • ‏2007-12-12T21:56:38Z
    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
    Any other thoughts???
  • SystemAdmin
    SystemAdmin
    6902 Posts

    Re: Printing Multiple Copies

    ‏2007-12-14T16:11:31Z  
    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.