Operating System - HP-UX
1825085 Members
4926 Online
109679 Solutions
New Discussion юеВ

Problem removing remote printer

 
SOLVED
Go to solution
Jayasuntar
Valued Contributor

Problem removing remote printer

Hi all,

We configured one remote printer wrongly which is not available physically on HP UX 11.11, now when we tried to remove printer it gives " destination xxx non_existent" error.

We tried thro sam - we got the same mesg.
In command line also #lpadmin -x also gives same error.

The following things are tried.
1. #lpshut
2. #lpadmin -x
(Gives the same error)
3. Started the lpsched.

Checked for /var/spool/lp/log - No content in the file.

What could be the problem..

Thanks in advance..

Regards
9 REPLIES 9
Raj D.
Honored Contributor

Re: Problem removing remote printer

Hi Jaysuntar ,

It seems to be the remote printer is not reachable and you are not able to delete.

1. check # lpstat -t | grep printer_name
does it shows the printer.

2. and also check the printer name , in
/var/spool/lp/interface/
/var/spool/lp/interface/model.orig/

Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Steve Steel
Honored Contributor

Re: Problem removing remote printer

Hi

It does not recognise it as existing

cd /usr/spool/lp/request/

cp -p -r existingprinter printername

lpadmin -xprintername

Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Jayasuntar
Valued Contributor

Re: Problem removing remote printer

Dear Steve Steel,

thanks for your input,

We have done the following thigs.

1. cp -p -r pr0 epsonA_1
pr0 - working printer
epson1_a - problem printer

2. lpshut

3. lpadmin -xepsonA_1

Now it gives " Cant open member file error"..

What could be the problem.

Thanks in advance.

regards
Alessandro Pilati
Esteemed Contributor

Re: Problem removing remote printer

Jayasuntar,
check these links:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=89363

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=864375

I found this explanation but I'm not sure it's your case:
"can't open member file "
The lp program is trying to access the list of members in the directory /var/spool/lp/member. The system could have the maximum number of files open that are allowed at any one time. You can correct this by typing the command at a later time.

I think there is a problem with permissions of your /etc/lp and /var/spool/lp ( it should be 755 and lp:bin as ownership ).

Regards,
Alex
if you don't try, you'll never know if you are able to
Jayasuntar
Valued Contributor

Re: Problem removing remote printer

Dear Alex,

Checked the permission for /etc/lp and /var/spool/lp. For both it is lp:bin and permission set to 755 only.

Still we are getting the same error.

Regards

Steve Steel
Honored Contributor
Solution

Re: Problem removing remote printer

Hi

find /etc/lp|xargs ll -d

post result


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Jayasuntar
Valued Contributor

Re: Problem removing remote printer

Dear Steve Steel,

Please find the output below.

root@appnode2 / #find /etc/lp|xargs ll -d
drwxr-xr-x 8 lp bin 8192 Aug 30 16:28 /etc/lp
drwxr-xr-x 2 lp bin 96 Sep 1 08:48 /etc/lp/cinterface
-rwxr-xr-x 1 lp lp 105 Apr 25 2004 /etc/lp/cinterface/pr0
drwxr-xr-x 2 lp bin 96 Nov 15 2000 /etc/lp/class
drwxr-xr-x 2 lp bin 96 Nov 15 2000 /etc/lp/info
drwxr-xr-x 3 lp bin 8192 Sep 1 08:48 /etc/lp/interface
-rw-r--r-- 1 root sys 5256 Aug 30 16:10 /etc/lp/interface/Epso
n1_A4
-rw-r--r-- 1 root sys 5256 Aug 30 16:10 /etc/lp/interface/Epso
n2_A4
-rwxr-xr-x 1 lp bin 11551 Dec 5 2004 /etc/lp/interface/d1pr
n
drwxr-xr-x 2 root sys 96 Dec 5 2004 /etc/lp/interface/mode
l.orig
-rwxr-xr-x 1 lp bin 570 Dec 5 2004 /etc/lp/interface/mode
l.orig/d1prn
-rwxr-xr-x 1 lp lp 5259 Apr 25 2004 /etc/lp/interface/pr0
-rwxr-xr-x 1 lp lp 5259 Apr 25 2004 /etc/lp/interface/pr0.
org
drwxr-xr-x 2 lp bin 96 Sep 1 08:57 /etc/lp/member
-rw-r--r-- 1 lp lp 10 Dec 5 2004 /etc/lp/member/d1prn
-rw-r--r-- 1 lp lp 10 Apr 25 2004 /etc/lp/member/pr0
drwxr-xr-x 2 lp bin 96 Sep 1 08:48 /etc/lp/sinterface
-rwxr-xr-x 1 lp lp 105 Apr 25 2004 /etc/lp/sinterface/pr0


Regards

RAC_1
Honored Contributor

Re: Problem removing remote printer

touch /var/spool/lp/member/epsonA_1

Now you should be able to remove it.
There is no substitute to HARDWORK
Jayasuntar
Valued Contributor

Re: Problem removing remote printer

Thanks RAC,

your solution worked out..

Thanks to all

Regards