Operating System - HP-UX
1752302 Members
4864 Online
108786 Solutions
New Discussion юеВ

Unable to delete a LaserJet Network Printer.

 
Silver_1
Regular Advisor

Unable to delete a LaserJet Network Printer.

Hi,

Here are the outputs of lpstat -p and lpstat -v.

root@hp11:/root# lpstat -p
printer room68 is idle. enabled since Jan 15 22:01
fence priority : 0
printer room91 is idle. enabled since Jan 15 22:03
fence priority : 0
printer room90 is idle. enabled since Jan 15 22:03
fence priority : 0
printer room112 is idle. enabled since Jan 15 22:04
fence priority : 0
printer teller1 is idle. enabled since Jan 15 22:06
fence priority : 0
root@hp11:/root# lpstat -v
device for room68: /dev/null
device for room66: /dev/null
device for room91: /dev/null
device for room90: /dev/null
device for room112: /dev/null
device for teller1: /dev/null
device for room65: /dev/null
root@hp11:/root#

When trying to delete a printer says "
root@hp11:/root# lpadmin -xroom65
lpadmin: destination "room65" non-existent
root@hp11:/root#

Ever seen this ?

Tx in advance.
8 REPLIES 8
Lolupee
Regular Advisor

Re: Unable to delete a LaserJet Network Printer.

are you sure the pstatus file /var/spool/lp/pstatus is not 0byte? Please, check and revert back
Lolupee
Regular Advisor

Re: Unable to delete a LaserJet Network Printer.

are you sure the pstatus and qstutus files are not 0byte? Please, check and revert back
Silver_1
Regular Advisor

Re: Unable to delete a LaserJet Network Printer.

-rw-r--r-- 1 lp lp 4560 Jan 18 11:28 pstatus
-rw-r--r-- 1 lp lp 1720 Jan 15 23:22 qstatus
Lolupee
Regular Advisor

Re: Unable to delete a LaserJet Network Printer.

what permission do you have in the file interface files i.e /etc/lp/interface/
Silver_1
Regular Advisor

Re: Unable to delete a LaserJet Network Printer.

-rwxr-xr-x 1 lp bin 11546 Jan 15 23:21 room65
-rwxr-xr-x 1 lp bin 11546 Jan 15 22:02 room66
Lolupee
Regular Advisor

Re: Unable to delete a LaserJet Network Printer.

apparently your pstatus file is corrupt. It does not have the entry for the printer in question that is why it could not display the printer when you ran lpstat -p.

Do you have a backup of the pstatus file somewhere. just the pstatus.

The system does not know the printer anymore, but you can futher delete by deleting the interface files and those interface files in nodel directory.

actually, it is the file /etc/lp/member that the command uses to list the files for command lpstat -V. So deleting the interface file from /etc/lp/member would not let you see the file again using lpstat -V
Lolupee
Regular Advisor

Re: Unable to delete a LaserJet Network Printer.

I will advice you read through this link for better understanding of the curruption.
http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000071662235
Silver_1
Regular Advisor

Re: Unable to delete a LaserJet Network Printer.

I have done the following.

1) shutdown the scheduler
2) deleted the printer files
3) started the scheduler.

It worked fine.

Thanks for the inputs.