1832511 Members
4871 Online
110043 Solutions
New Discussion

Printer problem

 
SOLVED
Go to solution
so_2
Regular Advisor

Printer problem

Hi All, I have a printer problem in one of my server.
This is using hpux 11:00. I am getting 3 status information for the same printer as shown below.
hp9w1606:/root : lpstat -t | grep bel4
Qbel4 accepting requests since Sep 15 12:47
Qbel4 not accepting requests since Sep 19 07:46 -
Qbel4 not accepting requests since Sep 21 11:42 -
printer Qbel4 is idle. enabled since Sep 15 12:47
printer Qbel4 disabled since Sep 19 07:46 -
printer Qbel4 disabled since Sep 21 11:42 -

Also I am not able to remove this printer .
I removed from the server all the files related to printer queue on the following locations.

etc/lp/interface/model.orig/Qbel4
/etc/lp/interface/Qbel4
/etc/lp/member/Qbel4
/var/spool/lp/request/Qbel4

Removeing using "removequeue" command was saying that printer does not exist.

Please advise.

Thanks in advance
S.O
3 REPLIES 3
Bill Hassell
Honored Contributor
Solution

Re: Printer problem

Your pstatus file is corrupted. Unfortunately, you'll have to record a list of all your current printers, then delete all your printers, zero the pstatus and qstatus files in /var/spool/lp, then add the printers back again. pstatus and qstatus are binary files so they can't be edited.


Bill Hassell, sysadmin
so_2
Regular Advisor

Re: Printer problem

Thanks a lot Bill.

Would that be fine if I restore it from my old backup?

Thanks
s.o
Bill Hassell
Honored Contributor

Re: Printer problem

> Would that be fine if I restore it from my old backup?

Sure, but what do you mean by "it"? The pstatus file is corrupted but it may have become that way because of recent changes made to the spooling directories. You could try restoring just pstatus but it must be from a backup when the spooler was working correctly. But if changes were made after that time (add/delete a printer) then pstatus would be out of sync with the current system.

The alternative is to replace all of the spooling directories from your backup tape:

/var/spool/lp
/usr/lib/lp
/etc/lp

Just make sure that the lp spooler was working correctly at the time you made the backup.


Bill Hassell, sysadmin