0:root@SERVER:/ # uname
AIX
0:root@SERVER:/ # oslevel
6.1.0.0
0:root@SERVER:/ # switch.prt -d
#printsubsystem
AIX
0:root@SERVER:/ # lpstat -oQUEUENAME
Queue Dev Status Job Files User PP % Blks Cp Rnk
------- ----- --------- --- ------------------ ---------- ---- -- ----- --- ---
QUEUENA QUEUE READY
QUEUENAME:
QUEUENAME: Windows LPD Server
QUEUENAME: Printer \\192.168.2.34\QUEUENAME
QUEUENAME:
QUEUENAME: Owner Status Jobname Job-Id Size Pages Priority
QUEUENAME: ----------------------------------------------------------------------------
QUEUENAME: A22adm (10. Waiting 02bT7zBL.A22 1703 3374 0 1
0:root@SERVER:/ # cancel 1703 QUEUENAME
0:root@SERVER:/ #
0:root@SERVER:/ # lpstat -oQUEUENAME
Queue Dev Status Job Files User PP % Blks Cp Rnk
------- ----- --------- --- ------------------ ---------- ---- -- ----- --- ---
QUEUENA QUEUE READY
QUEUENAME:
QUEUENAME: Windows LPD Server
QUEUENAME: Printer \\192.168.2.34\QUEUENAME
QUEUENAME:
QUEUENAME: Owner Status Jobname Job-Id Size Pages Priority
QUEUENAME: ----------------------------------------------------------------------------
QUEUENAME: A22adm (10. Waiting 02bT7zBL.A22 1703 3374 0 1
0:root@SERVER:/ #
我也尝试过:
stopsrc -g spooler
startsrc -g spooler
和
disable QUEUENAME
enable QUEUENAME
和
/usr/bin/enq -P 'QUEUENAME' -x '1703'
并尝试用 smitty 删除打印作业,但没有运气..
有什么帮助吗?
答案1
lpstat -o
可能未显示打印作业编号的所有数字。
显示完整信息:
qchk -L -P PrintQ