1825704 Members
3315 Online
109686 Solutions
New Discussion

'shadow' printer...

 
SOLVED
Go to solution
Brian Taylor
Advisor

'shadow' printer...

Greetings...here is one.

We have an HPUX 11 box with jetadmin running. A printer attached stopped working. It shows up in SAM as a local printer (it never was) and I can, from a command line, enable and disable it. A lpadmin -x does not remove it because it says that it does not exits. I can not create a new printer with that name because it says that the printer exists.

Any thought on how to remove this printer???


Thanks,

Brian
7 REPLIES 7
Vincenzo Restuccia
Honored Contributor

Re: 'shadow' printer...

Try Sam->printer and plotter->LP spoler->printer and plotter->Action->remove,and view the log.
Victor_5
Trusted Contributor

Re: 'shadow' printer...

Sounds interesting!

Try to submit a job to the printer, and see whether you can get request-id, check the status by #lpstat -t at the same time. This step will help you to identify problem area.

occasionally print issues get mixed up:
-> Stop the scheduler: # lpshut
-> Start the scheduler: # lpsched
But you'd better wait until every job gone in the print queue.

Good luck.
Brian Taylor
Advisor

Re: 'shadow' printer...

I can not get the spooler started...lpsched says that is it going, but lpstat -r and a ps -ef| grep lp show that it is not running. /var/spool/lp/SCHEDLOCK is not there...I know that will keep lpsched from starting. Hmmmm....
MANOJ SRIVASTAVA
Honored Contributor
Solution

Re: 'shadow' printer...

Hi Brian

Try this .

1. In /usr/spool/lp/request there should be a request directory with that printer name . If not create it with the proper permissions . Then you can go ahead to delete it .

2. Try creating the same printer using command line

lpadmin -p < printer name > -v/dev/null -m .

this sometimes recretes the printer again and set up the permissions to help you delete the printer.

3. Also sometimes deleting the FIFO , SCHEDLOCK files would sometimes help you restarting the printer incase you want to use the same one. Stop shceduler ,delete the file and then restart the scheduler.


Manoj Srivastava
Victor BERRIDGE
Honored Contributor

Re: 'shadow' printer...

Hi,
Try and see if this document helps:
How do I resolve LP Spooler hang situations DocId: KBAN00000182 Updated: 20000201

DOCUMENT
How do I resolve LP Spooler hang situations

Applies to HP-UX 10.X and 11.X

http://europe-support.external.hp.com/cki/bin/doc.pl/sid=357b464f002a8cd446/screen=ckiSearchResults?mode=id&searchString=KBAN00000182
I dont know the us equivalent string so search on DocId: KBAN00000182

Good luck
Victor

Victor_5
Trusted Contributor

Re: 'shadow' printer...

It looks like it is your LP spooler problem, try the following steps:

1. Bring the scheduler down (even if it does not seem to be running)
# lpshut

2. # rm /var/spool/lp/FIFO
# rm /var/spool/lp/SCHEDLOCK

3. Clear the outputq file.
> outputq

4. Kill any lpsched processes that may be reported by:
# ps -ef | grep lpsched

5. Restart the scheduler.
# lpsched

6. Verify that it is running:
# ps -ef | grep lpsched
# lpstat -t | more

See document(Id:KBRC00000185) in Technical Knowledge Base for details.
Brian Taylor
Advisor

Re: 'shadow' printer...

Thanks all for the help!! Manjo hit it! Whew!