1834942 Members
2304 Online
110071 Solutions
New Discussion

Re: ERROR REMOVE PRINTER

 
Miguel Carabano_1
Regular Advisor

ERROR REMOVE PRINTER

Hi team,

I need help!

When remove printer from SAM fail

Attachment file
4 REPLIES 4
JASH_2
Trusted Contributor

Re: ERROR REMOVE PRINTER

Miquel,

You need to remove all the prints scheduled to the printer you wish to remove, or move them to a new printer. I think you can remove all the prints through sam, or do an lpstat -o and cancel all the prints for that printer. Once done you will be able to remove the printer in sam.

Hope it is ok,

JASH
If I can, I will!
tsf_1
Frequent Advisor

Re: ERROR REMOVE PRINTER

Is the /var/spool/lp/outputq file ownership correctly set?

It should be similar to this
# /var/spool/lp/outputq
-rw-r--r-- 1 lp sys 996 Nov 7 11:41 outputq

If its not lp:sys; use chown to change it, ie:

# cd /var/spool/lp
# chmod lp:sys outputq
be willing to do, be happy to bear
Roberto Arias
Valued Contributor

Re: ERROR REMOVE PRINTER

Hello Miguel:

The problem is that you have jobs queued in the printer.This step that you need:

1) stop scheluder with 'lpshut'
2) cancel printer job with 'cancel -e '
3) remove printer with 'lpadmin -x'
4)start scheluder with 'lpsched -v'


Best regards
Roberto Arias
The man is your friend
Andrew Merritt_2
Honored Contributor

Re: ERROR REMOVE PRINTER

The other option you have is, as suggested by the error message, to use 'lpmove' to assign the pending requests to another print queue, if you have one. Once they are moved, you should be able to delete the printer.

Andrew