System Administration Guide, Volume 2

How to Define a Class of Printers

  1. Log in as superuser or lp on the print server.

  2. Define a class of printers by using the lpadmin command.


    # 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 the printers in a printer class by using the lpstat command.


    $ lpstat -c printer-class
    

Example--Defining a Class of Printers

In the following example, the command adds the printer luna in the class roughdrafts.


# lpadmin -p luna -c roughdrafts