![如何在 AIX 下终止卡住的打印作业?](https://linux22.com/image/16750/%E5%A6%82%E4%BD%95%E5%9C%A8%20AIX%20%E4%B8%8B%E7%BB%88%E6%AD%A2%E5%8D%A1%E4%BD%8F%E7%9A%84%E6%89%93%E5%8D%B0%E4%BD%9C%E4%B8%9A%EF%BC%9F.png)
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