Operating System - HP-UX
1829050 Members
2453 Online
109986 Solutions
New Discussion

Cannot remove remote printer

 
SOLVED
Go to solution
Coolmar
Esteemed Contributor

Cannot remove remote printer

Hi,

I am in SAM: Printers and Plotters. I have a list of printers which all say enabled to print, idle, etc. I want to delete one of the printers and I am getting the following error:

lpstat: Printer "xxyy" non-existant
Lp destination "xxyy" does not exist on server1
11 REPLIES 11
Sean Dale
Trusted Contributor

Re: Cannot remove remote printer

Are you using CUPS on the server? I am not sure, but, I believe you can add/remove/configure the printers using the CUPS web GUI.
Live life everyday
Alan Meyer_4
Respected Contributor

Re: Cannot remove remote printer

if you do a lpstat -t from the command line, does the printer show up?
" I may not be certified, but I am certifiable... "
Coolmar
Esteemed Contributor

Re: Cannot remove remote printer

lpstat -t output is below. The spooler is turned off because it has to be in order to delete the printer.

The printer that I am trying to delete is "lpreg33"

scheduler is not running
system default destination: lpreg33
device for sappr6: /dev/null
device for sappr4: /dev/null
device for lpreg33: /dev/null
device for lpreg30: /dev/null
device for lpwat01: /dev/null
device for lpreg17: /dev/null
device for lpreg02: /dev/null
device for lpreg03: /dev/null
device for lpreg31: /dev/null
device for lpreg09: /dev/null
device for lpreg21: /dev/null
device for lpreg35: /dev/null
device for 10_1: /dev/null
lpreg33 accepting requests since Aug 3 09:36
lpreg30 accepting requests since Aug 3 09:38
lpwat01 accepting requests since Aug 3 09:39
lpreg17 accepting requests since Feb 23 15:57
lpreg02 accepting requests since Apr 3 16:37
lpreg03 accepting requests since Apr 4 11:19
lpreg31 accepting requests since Aug 9 13:08
lpreg09 accepting requests since Jan 24 12:58
lpreg21 accepting requests since Mar 4 16:18
lpreg35 accepting requests since Mar 4 16:20
10_1 accepting requests since Jul 19 10:54
printer lpreg33 is idle. enabled since Aug 3 09:36
fence priority : 0
printer lpreg30 is idle. enabled since Aug 3 09:38
fence priority : 0
printer lpwat01 is idle. enabled since Aug 3 09:39
fence priority : 0
printer lpreg17 is idle. enabled since Feb 23 15:57
fence priority : 0
printer lpreg02 is idle. enabled since Apr 3 16:37
fence priority : 0
printer lpreg03 is idle. enabled since Apr 4 11:19
fence priority : 0
printer lpreg31 is idle. enabled since Aug 9 13:08
fence priority : 0
printer lpreg09 is idle. enabled since Jan 24 12:58
fence priority : 0
printer lpreg21 is idle. enabled since Mar 4 16:18
fence priority : 0
printer lpreg35 is idle. enabled since Mar 4 16:20
fence priority : 0
printer 10_1 is idle. enabled since Jul 19 10:54
fence priority : 0
lpreg33-1756 maestro priority 0 Jul 14 12:57
s_rwdn 949 bytes
lpreg33-1757 maestro priority 0 Jul 14 12:58
s_rwdn 949 bytes
lpreg33-1758 pf10417 priority 0 Jul 14 13:57
satjob1 980 bytes
lpreg33-1759 root priority 0 Jul 14 14:09
test 606 bytes
lpreg33-1760 root priority 0 Jul 14 14:17
test 606 bytes
lpreg33-1761 root priority 0 Jul 14 14:22
test 606 bytes
lpreg33-1762 root priority 0 Jul 14 14:29
test 606 bytes
lpreg33-1763 root priority 0 Jul 14 16:15
test 606 bytes
lpreg33-1764 root priority 0 Jul 19 10:59
test 606 bytes
Rick Garland
Honored Contributor
Solution

Re: Cannot remove remote printer

command line syntax;

lpshut;lpadmin -x;lpsched

spooler must be stopped to remove a printer
lpadmin -x will remove the named printer
lpsched will restart the spooler

If still having trouble, what is in log file located at /var/spool/lp/log?


Alan Meyer_4
Respected Contributor

Re: Cannot remove remote printer

try the command lpadmin -xlpreg33 with no spave between the -x and lpreg33
" I may not be certified, but I am certifiable... "
Alan Meyer_4
Respected Contributor

Re: Cannot remove remote printer

spave=space
" I may not be certified, but I am certifiable... "
Rick Garland
Honored Contributor

Re: Cannot remove remote printer

Since the lpreg33 is the default printer and the printer you wish to remove

The output you posted does not show lpreg33 to be a remote printer - the command line will still work

Set the default printer variable to another printer or leave it empty
lpadmin -d or
lpadmin -d

Coolmar
Esteemed Contributor

Re: Cannot remove remote printer

Ok. I was able to remove and re-create the printer. However, I now try and restart the scheduler and get the following error:

The command to start the print spooler failed. The command's return value is 1 and the output from the command is: lpsched: scheduler was already active.

However, there are not active /usr/bin/lpsched processes and even in SAM it says the print spooler is "Stopped".
Alan Meyer_4
Respected Contributor

Re: Cannot remove remote printer

have you tried to stop is from the command line with lpshut the restart it with lpsched?
" I may not be certified, but I am certifiable... "
Rick Garland
Honored Contributor

Re: Cannot remove remote printer

Do the command 'lpstat -t | more'
1st line will detail the status.

In the directory /var/spool/lp are 3 files. They are 0 byte files but they work with the lpspooler.

CLD_FIFO
FIFO
SCHEDLOCK

When the lpspooler is stopped, these files are not suppose to exist.

When starting the lpspooler (lpsched) these 3 files are created with 0 bytes.

If your spooler is stopped at this time, do you have any, or all, of these 3 files?

You cannot start spooler, from a stopped status, if any of these files exist.
Coolmar
Esteemed Contributor

Re: Cannot remove remote printer

Thanks Rick. Deleting those files and running lpsched again seemed to work.