System Administration Guide: Printing

Setting Up Printer Fault Recovery by Using LP Print Commands

If you choose not to send any fault notification, you can still find out about printer faults so that you can correct the problem. The LP print service will not continue to use a printer that has a fault. In addition to alerts for printer faults, you can also provide alerts that instruct you to mount print wheels, font cartridges, and forms when print requests require them.

You can define the fault recovery options for a printer only by using the lpadmin -F command. This task is not available in Solaris Print Manager.

Printer faults can be as simple as running out of paper or needing to replace a toner cartridge. More serious problems can include complete printer failure or power failure.

After you fix a printer fault, the print request that was active when the fault occurred begins printing in one of three ways:

The LP print service requires a separate print filter to continue printing from the top of a page where the printing stopped. This print filter records the control sequences set by the default print filters. The printer uses these control sequences to track page boundaries. You will be notified by the LP print service if recovery cannot proceed with the specified print filter. For information about writing filters, see How to Create a New Print Filter.

If you want printing to resume immediately after a printer fault is fixed, enable the printer by using the enable command.

The following table lists the fault recovery values that you can set for a printer by using the lpadmin -F command.

Table 6–5 Values for Printer Fault Recovery

Value for -F recover-options

Description 

beginning

After a fault recovery, printing restarts from the beginning of the file. 

continue

After a fault recovery, printing starts at the top of the page where the printing stopped. This recovery option requires a print filter.

wait

After a fault recovery, printing stops until you enable the printer. After you enable the printer by using the enable command, printing starts at the top of the page where printing stopped. This recovery option requires a print filter.