JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Printing     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information

Preface

1.  Introduction to Printing in the Oracle Solaris Operating System

2.  Planning for Printing (Tasks)

3.  Setting Up and Administering Printers by Using CUPS (Tasks)

4.  Setting Up and Administering Printers by Using Print Manager for LP (Tasks)

5.  Setting Up and Administering Printers by Using Oracle Solaris Print Manager (Tasks)

6.  Setting Up Printers by Using LP Print Commands (Tasks)

7.  Administering Printers by Using LP Print Commands (Tasks)

Administers Printers Using LP Print Commands (Task Map)

Setting Printer Definitions by Using LP Print Commands

How to Add a Printer Description by Using LP Print Commands

Setting Up a Default Printer Destination by Using LP Print Commands

How to Set a System's Default Printer Destination by Using LP Print Commands

Printing Banner Pages by Using LP Print Commands

How to Make Banner Pages Optional by Using LP Print Commands

How to Turn Off Banner Pages by Using LP Print Commands

Setting Up Printer Classes by Using LP Print Commands

How to Define a Class of Printers by Using LP Print Commands

Setting Up Printer Fault Alerts by Using LP Print Commands

How to Set Fault Alerts for a Printer by Using LP Print Commands

Setting Up Printer Fault Recovery by Using LP Print Commands

How to Set Printer Fault Recovery by Using LP Print Commands

Limiting User Access to a Printer by Using LP Print Commands

How to Limit User Access to a Printer by Using LP Print Commands

Administering Printers That Are Associated With PPD Files (Task Map)

Administering Printers That are Associated With PPD Files

How to Set Default Values for Print Queues That Are Associated With PPD Files

Determining Whether a PPD File Is Associated With a Print Queue

8.  Customizing LP Printing Services and Printers (Tasks)

9.  Administering the LP Print Scheduler and Managing Print Requests (Tasks)

10.  Administering Printers on a Network (Tasks)

11.  Administering Character Sets, Filters, Forms, and Fonts (Tasks)

12.  Administering Printers by Using the PPD File Management Utility (Tasks)

13.  Printing in the Oracle Solaris Operating System (Reference)

14.  Troubleshooting Printing Problems in the Oracle Solaris OS (Tasks)

Glossary

Index

Administering Printers That Are Associated With PPD Files (Task Map)

Table 7-7 Administering Printers Associated With PPD Files (Task Map)

Task
Description
Description
Set definitions for print queues that use PPD files.
Modify the default values that are defined in PPD files that are associated with print queues by using the lpadmin command with the -o option.
Determine if a PPD file was used to create a print queue.
Use the lpstat command to determine if a PPD file was used to create a print queue, or if a PPD file is associated with a print queue.

Administering Printers That are Associated With PPD Files

During the process of setting up a print queue, a PPD file that describes the print queue's capabilities can be associated with that print queue. Often, the default values that are described in the PPD file do not match the preferred settings for your site. For example, you might want the duplex feature always turned on, or you might want to always print to A4 sized paper. To modify these default values, you can edit the PPD file directly. However, the easiest and fastest method is to make the changes by using the lpadmin command with the -o option.

Some common PPD file values include:

How to Set Default Values for Print Queues That Are Associated With PPD Files

This procedure shows how to set default values for a print queue that uses PPD files to describe its capabilities.

Before You Begin

Check the PPD file first to determine which values can be overridden. To view information about the PPD file, use the more or less command, or open the file in a text editor.

For example:

$ more /etc/lp/ppd/print-queue.ppd
  1. Become superuser.
  2. Set the desired option.
    # lpadmin -p print-queue -o key=value
    -p

    Specifies the printer name or print queue where the value is to be changed.

    -o

    Specifies the options for adjusting printer capabilities, adjusting printer port characteristics, configuring network printers, and controlling the use of banner.

    key=value

    Specifies the key/value pair for the option.

    The set of key/value pairs that can be used for a particular printer depends on the content of the PPD file that is associated with the print queue.

    For example, to set the duplex feature, type:

    # lpadmin -p print-queue -o Duplex=DuplexNoTumble

    To change the input tray setting, type:

    # lpadmin -p print-queue -o InputSlot=Tray2

    You can set the default value this way for any PPD file/foomatic option.

  3. Verify that the option was set to the correct value by checking the print queue's capabilities.
    # lpstat -p print-queue -l

Example 7-9 Setting Values for Print Queues That Use PPD Files

# lpadmin -p hp4550 -o Media=A4 -o InputSlot=Tray2
# lpadmin -p hp4550 -o PageSize=A4
# lpstat -p hp4550 -l
printer hp4550 idle. enabled since December  5, 2006  6:38:50 PM CET. available.
        Form mounted:
        Content types: application/postscript
        Description:
        Connection:
 Interface: /usr/lib/lp/model/netstandard_foomatic
        PPD: /usr/lib/lp/model/ppd/system/foomatic/ \
HP/HP-Color_LaserJet_4550-Postscript.ppd.gz
        On fault: write root
        After fault: continue
        Users allowed:
                (all)
        Forms allowed:
                (none)
        Media supported:
                Letter
                A4
                11x17
                A3
                A5
                B5
                Env10
                EnvC5
                EnvDL
                EnvISOB5
                EnvMonarch
                Executive
                Legal
        Banner not required
        Character sets:
                (none)
        Default pitch:
        Default page size:
        Default port setting:
        Options: PageSize=A4, Media=A4, InputSlot=Tray2, \
dest=192.168.245.62:9100, protocol=tcp
# uname -a
SunOS shuttle 5.11 snv_52 i86pc i386 i86pc
# lpstat -p hp4550 -l
printer hp4550 idle. enabled since December  5, 2006  6:38:50 PM CET. available.
        Form mounted:
        Content types: application/postscript
        Description:
        Connection:
        Interface: /usr/lib/lp/model/netstandard_foomatic
        PPD: /usr/lib/lp/model/ppd/system/foomatic/ \
HP/HP-Color_LaserJet_4550-Postscript.ppd.gz
        On fault: write root
        After fault: continue
        Users allowed:
                (all)
        Forms allowed:
                (none)
        Media supported:
                Letter
                A4
                11x17
                A3
                A5
                B5
                Env10
                EnvC5
                EnvDL
                EnvISOB5
                EnvMonarch
                Executive
                Legal
        Banner not required
        Character sets:
                (none)
        Default pitch:
        Default page size:
        Default port setting:
        Options: dest=192.168.245.62:9100, protocol=tcp

Determining Whether a PPD File Is Associated With a Print Queue

If a PPD file was used during the creation of a print queue, the PPD file that the specified queue is configured to use is listed in the lpstat command output. If you do not specify a PPD file when creating a new print queue, the lpstat command continues to display the same output as it did previously. For an example of the lpstat command output that shows the use of PPD files, see How to Check the Status of Printers.

Example 7-10 Displaying Information About a PPD File by Using the lpstat Command

In this example, the lpstat command output indicates that the print queue was configured by using the PPD file, Mitsubishi-CP50_Color_Printer-cp50.ppd.gz.

# lpstat -l -p paper
printer paper is idle. enabled since Tue 30 Mar 2004 01:48:38 PM PST
            available.
        Form mounted: 
        Content types: any
        Printer types: unknown
        Description: 
        Connection: direct
        Interface: /usr/lib/lp/model/standard_foomatic
        PPD: /path/Mitsubishi-CP50_Color_Printer-cp50.ppd.gz
        After fault: continue
        Users allowed:
                (all)
        Forms allowed:
                (none)
        Banner required
        Character sets:
                (none)
        Default pitch:
        Default page size:
        Default port settings# lpstat l p <queue>