AIX

AIX

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


#Power
 View Only
  • 1.  AIX PRINTING

    Posted Wed May 16, 2007 07:08 PM

    Originally posted by: SystemAdmin


    I have a problem when submitting a job to print onto a HP network printer.
    Error code 0782-006 -S Flag not supported for this print file,printer language and printer type selected for the print job,Check the flags.

    Can some one shed some light on these??

    Cheers
    #AIX-Forum


  • 2.  Re: AIX PRINTING

    Posted Wed May 16, 2007 11:27 PM

    Originally posted by: SystemAdmin


    You didn't say what print command you used. This normally means that the -S flag was used by enq or qprt and that it is not defined for the virtual printer. You haven't described how you printed to get this error or the type of printer that you defined.
    John T.
    #AIX-Forum


  • 3.  Re: AIX PRINTING

    Posted Thu May 17, 2007 02:43 AM

    Originally posted by: SystemAdmin


    I used the cmd lp -dprintqueue filename even using the qprt cmd..It is a laserjet HP 1022network printer
    #AIX-Forum


  • 4.  Re: AIX PRINTING

    Posted Thu May 17, 2007 12:22 PM

    Originally posted by: SystemAdmin


    The HP1022 is not a supported printer type on AIX. What type of virtual printer did you setup when you created this queue.

    Try this.
    lsvirprt
    Choose your printer byt typing the number

    No. Queue Device Description
    1 defasc defasc generic (ASCII)
    2 hp8100 lpx hplj-8100 (PCL)
    3 lpxoth lpxoth generic (ASCII)
    4 lpxtest lpx hp4smart (PCL)
    5 pcloth lpxoth generic (PCL Emulation)

    Enter number from list above (press Enter to terminate): -> 2

    Next type mN and enter

    hp8100 lpx hplj-8100 (PCL)
    To LIST attributes, enter AttributeName1 ... (* for all attributes)
    To CHANGE an attribute value, enter AttributeName=NewValue
    To FORMAT and EDIT an attribute value, enter AttributeName~v
    To EDIT the attribute file, enter ~v
    To terminate, press Enter: mN

    Name Description Value
    mN Printer model number hplj-8100

    To LIST attributes, enter AttributeName1 ... (* for all attributes)
    To CHANGE an attribute value, enter AttributeName=NewValue
    To FORMAT and EDIT an attribute value, enter AttributeName~v
    To EDIT the attribute file, enter ~v
    To terminate, press Enter: mq

    Name Description Value
    mq Queue Name; Initialized By "piodigest" hp8100

    ..
    To terminate, press Enter: mL

    Name Description Value
    mL Printer Description [devices.cat,71,13
    9;Hewlett-Packard
    LaserJet 8100]

    To terminate, press Enter: mA

    Name Description Value
    mA Printer Data Stream Description PCL

    To LIST attributes, enter AttributeName1 ... (* for all attributes)
    To CHANGE an attribute value, enter AttributeName=NewValue
    To FORMAT and EDIT an attribute value, enter AttributeName~v
    To EDIT the attribute file, enter ~v
    To terminate, press Enter: S

    Name Description Value
    __SYS OTHER VALUES OF INTEREST TO THE SYSTEM
    ADMINISTRATOR

    • This is not the S attribute. So somehone the -S flag is getting passed to the queue by your print job.

    1. which lp
    /usr/bin/lp
    1. ls -l /usr/bin/lp
    lrwxrwxrwx 1 root system 15 Apr 13 15:25 /usr/bin/lp -> /usr/aix/bin/lp

    • Make sure that /usr/bin/lp is pointed to /usr/aix/bin/lp

    Since it sounds like you are not using any flags, this error should not normally occur if you have the right lp installed.

    1. disable queuename

    ---
    1. disable hp8100
    2. echo "AAA" | lp -d hp8100
    Job number is: 34
    1. ls -l /var/spool/lpd/qdir/*hp8100*
    -rw-rw---- 1 root printq 1176 May 17 11:13 /var/spool/lpd/qdir/n0root:hp8100$#@!amac

    1. cat /var/spool/lpd/qdir/*hp8100*
    ...

    -Php8100-j--

    STDIN.524480
    root
    tesch
    0
    /var/spool/qdaemon/tH2amaa 2

    • This is the job description file. As you can see I have no -S flag in this file so I'm not sure why you would have this attribute in your command or virtual printer.

    • Did you ever manually edit /etc/qconfig?

    lsque -q queuename
    lsquedev -q queuename -d devname

    • Give me that information at it will help solve this.
    • I need to know the backend you are using, but all will be helpful

    You've got something wrong.
    #AIX-Forum


  • 5.  Re: AIX PRINTING

    Posted Thu May 17, 2007 08:12 PM

    Originally posted by: SystemAdmin


    I have had another HP laserjet 1022n already configured on the same System and it works..i.e printing in aix (by using HP laserjet 4plus as the driver in AIX.

    It is just another printer of the same that Iam cannot configured..Anyway I'll try your tips and see if it makes a difference.
    #AIX-Forum


  • 6.  Re: AIX PRINTING

    Posted Thu May 17, 2007 12:28 PM

    Originally posted by: SystemAdmin


    FWIW,

    The HP 1022n printer is a host-based printer; refer to http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=bpl07860

    As such, I think you are going to have problems getting this printer to work with AIX. You might be able to find a linux-compatible driver for this printer here:
    http://hplip.sourceforge.net/
    #AIX-Forum