Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

lpstat -t reports printers that no longer exist.

Status
Not open for further replies.

jimktrains

IS-IT--Management
Jan 19, 2007
50
0
0
US
When I run lpstat -v, it only shows two printers (there are four). When I run lpstat -t, it shows 9 printers, including the four that should be there. I added one in lpadmin, then removed it and it doesn't show now, but where is lpstat -t getting it's info and why isn't lpstat -v showing all my printers? SCO is 5.0.5.
 
Check the perms and ownership in the /usr/spool/lp/admins/lp/printers area. If you have bad permissions, some of those commands will stop before displaying all the records.

That's where I'd start at least. You can also run the /tcb/bin/integrity -e command and see if it complains about lp directories.



"Proof that there is intelligent life in Oregon. Well, Life anyway.
 
All permissions and owners are the same.
I ran integrity and nothing came back.

The only printers that should exist are PR1, PR2, PR3, and P12.

Here's the output of lpstat -t
# lpstat -t
P11:
queuing is enabled

Windows 2000 LPD Server
Error: specified printer does not exist
scheduler is running
no system default destination
device for PR1: /dev/lp0
PR1 accepting requests since Tue Feb 19 11:15:58 2002
P12 accepting requests since Thu Jan 06 14:46:38 2005
prprn1 accepting requests since Tue Feb 19 17:00:39 2002
PR3 accepting requests since Thu Aug 29 15:53:59 2002
PR2 accepting requests since Thu Sep 05 07:11:13 2002
printer PR1 is idle. enabled since Tue Feb 19 11:15:58 2002. available.
printer P12 is idle. enabled since Thu Jan 06 14:46:38 2005. available.
printer prprn1 is idle. enabled since Tue Feb 19 17:00:39 2002. available.
printer PR3 is idle. enabled since Thu Aug 29 15:54:00 2002. available.
printer PR2 is idle. enabled since Thu Sep 05 07:11:13 2002. available.

I went into scoadmin, and in HP Network Printer Manager I deleted it. It didn't say it didn't exist, as it did with another one I had tried. And the Windows 2000 LPD Server I have no idea where that's coming from.
 
What is the content of /etc/printcap ?
Is there subfolders in the /var/spool/lpd directory ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
/etc/printcap only shows PR2 and PR3.
The /var/spool/lpd directory shows
drwxrwxr-x 2 root daemon 512 Apr 17 10:44 FRTPRT
drwxrwxr-x 2 root daemon 512 Apr 17 10:44 LIABILITY
drwxrwxr-x 2 root daemon 512 Apr 19 16:49 P11
drwxrwxr-x 2 root daemon 2560 Jun 6 2005 P12
drwxrwxr-x 2 root daemon 1024 Apr 18 08:23 P21
drwxrwxr-x 2 root daemon 512 Apr 17 10:44 P22
drwxrwxr-x 2 root daemon 512 Apr 17 11:08 P31
drwxrwxr-x 2 root daemon 512 Apr 17 11:08 P32
drwxrwxr-x 2 root daemon 512 Apr 17 10:44 PRP

When I run lpstat -t now, it shows printers PR1, P12, P11, prprn1, PR3, and PR2. Some of these were printers at one point but P11 and prprn1 aren't now.

When I run lpstat -v it only shows PR1. I have cleaned some of these up by adding them and deleting them, but some, like P11, just won't go away. There has to be a file somewhere that lpstat is getting it's information from that lists P11 and prprn1 but I can't find it anywhere.

I tried adding P11 in scoadmin and it says it exists. I can't delete it there because it doesn't show in the list, only PR1 shows, not PR2, PR3, and P12.

Printing to the printers that actually exists is not a probelem, but looking at the results of lpstat is annoying when it reports printers not there and not showing printers that is.

Thanks for the responses so far and any other info someone can provide.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top