Operating System - HP-UX
1821054 Members
2645 Online
109631 Solutions
New Discussion юеВ

Re: Cancelling a print job

 
Roger Beckwith
Occasional Contributor

Cancelling a print job

I have a business inkjet 1100 dtn connected to a Windows network. There is a print job that I am not able to cancel. I have tried from the workstation and from the server, have tried the cancel button at the printer, have cycled the printer leaving it off for several minutes and have unplugged it. Nothing gets rid of this job. There were other jobs backed up behind this one and I was able to cancel those OK. The network does recognize the printer (I can ping it from the server). Any suggestions?
3 REPLIES 3
Pat Lieberg
Valued Contributor

Re: Cancelling a print job

Is the print queue on an HP-UX system? If so, you can try doing an lpshut and removing the spool file manually. Then run lpsched to restart.

If its hosted on a windows server, this is the wrong forum, but if you stop and start the spooler service the job will probably go away.
Rick Garland
Honored Contributor

Re: Cancelling a print job

On the HPUX system, you can cancel the print job using the `cancel` command

# cancel prt_name-

Use the printer name and the jobID number in this command. This info can be obtained from lpstat -t

This will work for remote printers as well as local printers.

Once job is cancelled, can power off printer to clear buffer. Careful, there may be other print jobs in there.
Manuel Contreras
Regular Advisor

Re: Cancelling a print job

additional cancel examples:

check on status of printer queue:
# lpstat -d ricofc06 (printerID)
no system default destination
ricofc06-400 printJOBowner priority 0 Jul 6 07:24 on ricofc06
(standard input) 1246237 bytes
ricofc06-401 printJOBowner priority 0 Jul 11 05:49
(standard input) 175301 bytes
ricofc06-402 printJOBowner priority 0 Jul 11 05:50
(standard input) 344485 bytes


cancel a single request:
# cancel ricofc06-400
request "ricofc06-400" cancelled
# lpstat -d ricofc06
no system default destination
ricofc06-401 printJOBowner priority 0 Jul 11 05:49 on ricofc06
(standard input) 175301 bytes
ricofc06-402 printJOBowner priority 0 Jul 11 05:50
(standard input) 344485 bytes


cancel ALL requests associated w/printer queue:
# cancel -e ricofc06
request "ricofc06-401" cancelled
request "ricofc06-402" cancelled


all requests are gone:
# lpstat -d ricofc06
no system default destination
ricofc06: ready and waiting
no entries


hope this helps,
manuel