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.
-
which lp
/usr/bin/lp
-
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.
-
disable queuename
---
-
disable hp8100
-
echo "AAA" | lp -d hp8100
Job number is: 34
-
ls -l /var/spool/lpd/qdir/*hp8100*
-rw-rw---- 1 root printq 1176 May 17 11:13 /var/spool/lpd/qdir/n0root:hp8100$#@!amac
-
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