Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Deleting printers

99 views
Skip to first unread message

Germano Silva

unread,
Aug 8, 2001, 11:32:51 AM8/8/01
to
Hi,

I have an old Ultra 1 that I inherit a while back which has two printers
defined that no longer exist. When I try deleting these printers with
lpadmin -x printername, I get the following:

UX:lpadmin: ERROR: There are jobs currently queued for destination

"lj4"

TO FIX: Use the /usr/sbin/lpmove command to

assign them to another destination,

or wait for them to finish printing.

I cannot move them, since I don't have another printer on this machine. For
some reason lprm does not remove the file from the printQ.

How can I completely get rid of these two printers as well as turning print
services off on this machine. I'm using Solaris 2.5.1

--mouse--

unread,
Aug 8, 2001, 11:50:41 AM8/8/01
to

You need to do

lpstat -o -l

this will list print jobs i.e.

lj4-200 user1 /filename

then either

cancel -u user1 to cancel all the users printjobs
or
cancel lj4-200 to cancel the specific job

then lpadmin -x lj4

to shut down lp, edit the /etc/init.d/lp script and comment out the start)
bit
i.e.
start)
[ -f /usr/lib/lpsched ] && /usr/lib/lpsched
change to
start)
# [ -f .....
echo "No print services required"


"Germano Silva" <german...@home.com> wrote in message
news:9krm30$epc$1...@saturn.services.brown.edu...

Greg Andrews

unread,
Aug 8, 2001, 12:52:17 PM8/8/01
to
"Germano Silva" <german...@home.com> writes:
>Hi,
>
>I have an old Ultra 1 that I inherit a while back which has two printers
>defined that no longer exist. When I try deleting these printers with
>lpadmin -x printername, I get the following:
>
>UX:lpadmin: ERROR: There are jobs currently queued for destination
>
>"lj4"
>

Sounds like there's a fragment of a print job left in the queue
that you need to remove. Because it's a fragment, you can't
cancel the job. So, you have to use brute force:

lpshut

cd /var/spool/lp

rm -r tmp temp fifos requests

On Solaris 2.6 and later:

cd /var/spool/print

rm *

/usr/lib/lp/lpsched


-Greg
--
+++++ Greg Andrews +++ ge...@panix.com +++++
I have a map of the United States that's actual size
-- Steven Wright

Germano Silva

unread,
Aug 8, 2001, 12:45:30 PM8/8/01
to
That did not work. Any more ideas?

Here's some output of lpstat, lpadmin and lpq.
# lpstat -o -l

# lpstat -t

scheduler is running

no system default destination

system for lj4: xxx.xxx.xxx.xxx (as printer DCS_LJ4_Q)

system for qms: xxx.xxx.xxx.xxx (as printer DCS_QMS2425_Q)

lj4 not accepting requests since Tue Jan 2 10:20:36 EST 2001 -

unknown reason

qms not accepting requests since Tue Jan 2 10:20:00 EST 2001 -

unknown reason

printer lj4 disabled since Wed Aug 8 12:09:36 EDT 2001. available.

unknown reason

printer qms disabled since Wed Aug 8 12:09:40 EDT 2001. available.

unknown reason

# lpadmin -x lj4

UX:lpadmin: ERROR: There are jobs currently queued for destination

"lj4"

TO FIX: Use the /usr/sbin/lpmove command to

assign them to another destination,

or wait for them to finish printing.

# lpq -Plj4

unknown reasonunknown reason

"--mouse--" <mo...@NO-SPAM.com> wrote in message
news:Tedc7.12818$da2....@news11-gui.server.ntli.net...

--mouse--

unread,
Aug 8, 2001, 1:03:17 PM8/8/01
to
You will have to delete manually then ..

try doing this.

/usr/sbin/lpshut
rm /var/spool/lp/temp/*

/usr/lib/lpsched
lpadmin -x lpj4

If that doesnt work .. might be easier to remove the printers manually as
well.

they are in /etc/lp/printers
they might be elsewhere check for printcap file in /etc and remove printers
from there as well.
sorry 2.5.1 was a while back so I forget where things used to live.


"Germano Silva" <german...@home.com> wrote in message

news:9krqb7$lbq$1...@saturn.services.brown.edu...

Germano Silva

unread,
Aug 8, 2001, 1:14:28 PM8/8/01
to
Brute force worked. Thanks

"Greg Andrews" <ge...@panix.com> wrote in message
news:9krqo1$3tj$1...@news.panix.com...

0 new messages