System Administration Guide: Advanced Administration

How to Define a Class of Printers

  1. Log in as superuser, lp, or assume an equivalent role on the print server.

  2. Define a class of printers.


    # lpadmin -p printer-name -c printer-class
    

    -p printer-name

    Name of the printer you are adding to a class of printers. 

    -c printer-class

    Name of a class of printers. 

    The specified printer is added to the end of the list in the class in the print server's /etc/lp/classes/printer-class file. If the printer class does not exist, it is created.

  3. Verify that the printers are in a printer class.


    $ lpstat -c printer-class
    

Example—Defining a Class of Printers

The following example shows how to add the printer luna in the printer class roughdrafts.


# lpadmin -p luna -c roughdrafts