Technical article 104736

Printers are missing after doing a reboot; lpstat does not list them or on trying to add a new printer get a "Destination <printer> is unknown to the LP print service".

OpenServer 5.0.0OpenServer 5.0.2OpenServer 5.0.4OpenServer 5.0.5OpenServer 5.0.6

Written · Last revised

Problem

When the machine is rebooted, some of the printers are missing and the only way to bring them back is to re-create them.

Alternatively, on trying to add a new printer to the system the following message is reported:

UX:accept: ERROR: Destination "printer" is unknown to the LP print service.

Cause

There is an empty directory in /usr/spool/lp/admins/lp/printers. This directory stores information used by init when the system is booting. The files store information about the device being used, the interface being used, possible stty settings.

The information for the lpstat command is partially stored in /usr/spool/lp/admins/lp/printers/<printername>/configuration.

Solution

To work around this problem:
# cd /usr/spool/lp/admins/lp/printers
# l -R | more
This will recursively list all of the directories and their
contents.  Note which directories are empty or corrupt.
To remove the printer, use:
# /usr/lib/lpadmin -x<printername>

or, for ODT3 use the sysadmsh(ADM) command:

# sysadmsh
and follow the menu selections:
Printers -> configure -> remove

for OpenServer 5 use the SCOadmin utility:

# scoadmin Printer Manager
and follow the menu selections:
Printer -> Delete

If the printer is not known to the print service, remove the directory manually:

# cd /usr/spool/lp/admins/lp/printers
# rm -rf <printer>
The empty directory may exist because the printer files were
manually removed but the directory wasn't.  If the printer was
set up as a remote printer, the only way to remove it is through
a manual deletion.  Possibly the directory was not removed at
that time.

From the Xinuos technical article database, record 104736. Reproduced with permission. The original is at www.sco.com/ta/104736, which is reachable but blocked from search engines. Xinuos marks this article against a retired product line. That refers to the product’s lifecycle, not to whether the advice still works — plenty of it still applies to running systems.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.