System Administration Guide: Advanced Administration

LP Print Service Configuration Files

The scheduler stores configuration information in LP configuration files located in the /etc/lp directory, as described in the following table.


Caution – Caution –

The configuration files listed in this table are private interfaces, and are subject to change in future releases. You should not build software that relies on these files being in their current locations or that relies on the data being in the format currently used.


Table 8–2 Contents of the /etc/lp Directory

File 

Type 

Description 

classes

Directory 

Files identifying classes provided by the lpadmin -c command.

fd

Directory 

Description of existing filters. 

filter.table

File 

Print filter lookup table. 

forms

Directory 

Location to put files for each form. Initially, this directory is empty. 

interfaces

Directory 

Printer interface program files. 

logs

Link to /var/lp/logs

Log files of printing activities. 

model

Link to /usr/lib/lp/model

The standard printer interface program. 

printers

Directory 

Directories for each local printer. Each directory contains configuration information and alert files for an individual printer. 

pwheels

Directory 

Print wheel or cartridge files. 

These configuration files serve a similar function to the /etc/printcap file on lpd-based print servers.


Note –

You can check the contents of the configuration files, but you should not edit them directly. Instead, use the lpadmin command to make configuration changes. Your changes will be written to the configuration files in the /etc/lp directory. The lpsched daemon administers and updates the configuration files.


The /etc/lp/printers directory has a subdirectory for each local printer known to the system. The following example shows the /etc/lp/printers subdirectories of printers sparc1 and luna.


$ ls -l /etc/lp/printers
drwxrwxr-x 2 lp lp 512 Jan 23 23:53 luna
drwxrwxr-x 2 lp lp 512 Jan 11 17:50 sparc1

The following table describes the files within each of the printer-specific directories.

File Name 

Description 

alert.sh

Shell to execute in response to alerts 

alert.vars

Alert variables 

configuration

Configuration file 

users.deny

List of users to whom printer access is denied 

comment

Printer description 

The configuration file for the printer luna, /etc/lp/printers/luna/configuration, would typically appear as follows:


Banner: on: Always
Content types: PS
Device: /dev/term/b
Interface: /usr/lib/lp/model/standard
Printer type: PS
Modules: default