System Administration Guide: Solaris Printing

Specifying a PPD File When Setting Up a Printer by Using LP Print Commands

Use the -n option with the lpadmin command to specify a PPD file when creating a new print queue or modifying an existing print queue.

For example, to add the print queue, foobar, to a Lexmark printer, you would type:


# lpadmin -p foobar -v device -I postscript -m standard_foomatic \
-n /path/Lexmark-Optra_E312-Postscript.ppd.gz

When using the lpadmin -n command to specify a PPD file, you must provide the full path to the PPD file.


Note –

If you use the lpadmin -n command to add a PPD file, and the repository that you specify in the PPD file path does not exist on the system, a copy of the PPD file is stored in the user label directory, within the user repository. This directory is located at /var/lp/ppd/user/manufacturer/ppd-file. The Solaris Print Manager cache is then updated to reflect the printer information from the recently added PPD file. For more information, see Chapter 9, Administering Printers by Using the PPD File Management Utility (Tasks).