公司AIX上的打印机无法打印,执行lprm ,enable ,stop print queue,cancel print job。全部提示0781-162和0781-174的报错。
在网上查出可能引起 0781 - 162 的原因包括:
cannot awaken qdemon
One cause is full /var file system
Another cause is bad /etc/qconfig file
Bad file being printed was once seen. Cancel, stop and restart the qdaemon.
Also have seen with bad files in /var/spool/lpd/qdir.
One fixed simply by recyling qdaemon (stopsrc -s qdaemon, startsrc -s qdaemon)
Another time fixed by clearing queues and recyling qdaemon.
One had permission problems on /var/spool/lpd/stat.
One case the writesrv was not active
Qdaemon can't signal, qdaemon can't awaken
dummy stanza in /etc/qconfig: remove and this fixed the problem
Error occured with: 0781-162
Another: startsrc -g spooler and things were working
针对上述描述,我的解决办法:
检查AIX系统与打印相关的进程的状态
#lssrc -g spooler
上面的结果可以看出lpd,daemon,writesrv处于inoperative状态,没有工作,所以需要启动到active状态
#startsrc -s qdaemon
#startsrc -s writesrc
#startsrc -s lpd
问题解决
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/17254424/viewspace-1059072/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/17254424/viewspace-1059072/