Operating System - HP-UX
1837036 Members
2391 Online
110111 Solutions
New Discussion

Sam - Remote printer problem.

 
Fabio Tinteri
New Member

Sam - Remote printer problem.

When i add a remote printer in a HP K460-XP (HP-UX 11.00) with SAM the system tell me:

The remore printer "Laser_A (whose location is Laser_A on print.mydomain.it)" already exists on this system

On the system aren't installed any printer.
Please help me.
Best regards
Fabio
5 REPLIES 5
MANOJ SRIVASTAVA
Honored Contributor

Re: Sam - Remote printer problem.

Hi Fabio


What is the o/p of lpstat -t . Does it show the printer if not then the orgianlly the printer was not removed cleanly and has some remanents in /usr/spool/lp/interface or requests directory . If you cant do a lpadmin -x then i suggest is to reinstall the printer and remove it manually .

Alternatively you can delete the files associated with this printer and reinstall the printer.


Manoj Srivastava
Jeff Schussele
Honored Contributor

Re: Sam - Remote printer problem.

Hi Fabio,

Do
find / -name Laser_A
and if it returns any files then that's indicative of what Manoj has pointed out - that Laser_A existed at one time & was not cleanly removed.
You could then do - after stopping the spool with lpshut
find / -name Laser_A -exec rm {} \;
to remove them all if the lpadmin -x Laser_A does not succeed in removing them.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Mark Greene_1
Honored Contributor

Re: Sam - Remote printer problem.

This is due to a bug in script /usr/sam/lbin/lpmgr

to fix, replace this line:

if lpstat $1 > /dev/null 2>&1

with this line:

if lpstat -p$1 2>&1 |grep -v non-existant >/dev/null 2>&1

and then you should be able to add the printer.

HTH
mark
the future will be a lot like now, only later
Tom Danzig
Honored Contributor

Re: Sam - Remote printer problem.

Mark is correct. I went through this a couple of months ago. If you are running distributed print services along with the standard lpsched, it causes the "lpstat " command to return 0 instead of 1 after the actual printer status returns the correct 1.

Mark's listed script fix will correct your problem.
Jeff Schussele
Honored Contributor

Re: Sam - Remote printer problem.

Well, I learned something new today.
I'd never run across this.
But then, I don't normally use SAM to add printers.
Thanks, Mark & Tom.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!