Operating System - HP-UX
1833808 Members
4270 Online
110063 Solutions
New Discussion

lpstat and remote printer

 
SOLVED
Go to solution
Elena Leontieva
Esteemed Contributor

lpstat and remote printer

Hello,

For the network printer the lpstat -o output looks like:
custserv-2255 wasims priority 0 Oct 1 14:19
delq_code11_10012006.lst 3423 bytes

For the remote printer the lpstat-o does not give the request ID:
Job#: 1 User: rgmcdani File: AS040.2006Sep06.085428.05.00.0.00

I can cancel the network printer job by running:
cancel custserv-2255

But is there any way I can cancel/delete old jobs from the remote printer queue on UNIX host or this can only be done on the print server?

Thanks,
Elena.
4 REPLIES 4
Bill Hassell
Honored Contributor

Re: lpstat and remote printer

If the old jobs do not show in lpstat, they are gone -- the remote print server has them and there is no further connection between HP-UX and the old jobs.


Bill Hassell, sysadmin
Elena Leontieva
Esteemed Contributor

Re: lpstat and remote printer

The lpstat did show the old jobs. That is why I am wondering if I can/am able to remove them on/from the Unix host or I have to do that from the print server.

Thanks,
Elena.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: lpstat and remote printer

If the remote printer has been properly (and has proper permissions) set up then it is possible to cancel remote printjobs. The rcancel command is invoked by the local cancel command. (Man rcancel). Do a man lpadmin and look at the -oci and -ocm options.

Now does all of this work well and reliably? Only soso and is one of the reasons that remote printers (as opposed to network printers in HP-UX speak) should be avoided, if possible. I more or less view remote printing as working in spite of itself.
If it ain't broke, I can fix that.
Elena Leontieva
Esteemed Contributor

Re: lpstat and remote printer

Thanks a lot for clarification. -Elena.