Operating System - HP-UX
1829525 Members
2146 Online
109991 Solutions
New Discussion

print queue communication

 
Jay Cantwell
Regular Advisor

print queue communication

I have a situation that I need to explain what happened first, then my question:

In SAM I assigned a printer named 'oracleprt' to a DP65 system queue named "P1". I then attempted to send 2 or 3 jobs to the printer using the lp -d command. From that point on, I have not been able to do the following:

lpstat
lpstat -t
list the print requests through SAM
remove the printer in SAM

It seems like the 'oracleprt' can not talk with the queue name on the DP65 system. Since this has happened, I found about just a short time ago that the system admin for the DP65 system has removed the queue from the system that I am trying to talk to. Now for my question:

How do I remove the jobs queued to that printer. Can I remove them manually, since I can not get SAM to do it ??

How do I remove the printer since that queue is now gone??

Will I need to do a reboot, and if so will it resolve the situation???

thanks for your help....this is a great place to learn and get help. Thanks again to HP for putting this up...Jay
3 REPLIES 3
Uday_S_Ankolekar
Honored Contributor

Re: print queue communication

Hi,

Try lp command for "cancel" the job .
(Man lp for arguments on cancel)

Or use Sam > Printers and Plotters> lp spooler >print request..>

Goodluck.

USA..


Good Luck..
S.K. Chan
Honored Contributor

Re: print queue communication

Use "cancel" to remove print jobs as suggested by Uday and use this procedure to remove the printer .. (sounds like you got spooler corruption)
# lpshut
==>shutdown spooler
# cd /var/spool/lp/member
# touch oracleprt
# chown lp oracleprt
# cd ../interface
# touch oracleprt
# chown lp oracleprt
# cd ../request
# mkdir oracleprt
# chown lp oracleprt
# lpadmin -xoracleprt
==> removing the printer
# lpsched
==> bring up spooler

.. good luck
A. Clay Stephenson
Acclaimed Contributor

Re: print queue communication

Hi:

The first thing I would try is an lpshut to stop the scheduler followed by an lpsched command.
If it ain't broke, I can fix that.