Only the most commonly used options of the CUPS lpadmin command are shown here. For information about other options, see the lpadmin(8) man page. CUPS stands for Common UNIX Printing System. lpadmin is a command line tool used to configure printer and class queues provided by. CUPS manages print jobs and queues and provides network printing using the . root account enabled on your server, or authenticate as a user in the lpadmin.

Author: Mataxe JoJozuru
Country: Cuba
Language: English (Spanish)
Genre: History
Published (Last): 8 April 2015
Pages: 200
PDF File Size: 17.73 Mb
ePub File Size: 18.76 Mb
ISBN: 812-1-56085-875-6
Downloads: 61905
Price: Free* [*Free Regsitration Required]
Uploader: Tejind

Destinations are individual printers and classes pools of printers.

lpadmin(8) – Linux man page

Printers use a description file with one or more driver “filter” programs that communicate with the printer through a “backend” program. Classes are associated with one or more printers and are typically used to distribute print cupx amongst a group of printers or provide redundancy or high availability when printing. Print jobs sent to a class are forwarded to the next available printer in the class. The lpadmin 8 program is used to add, modify, or delete destinations, while the lpinfo 8 command is used to list the available printer drivers and backends.


The cupsctl 8 program is used to manage the printing system as a whole, including things like debug logging and printer sharing.

The CUPS web interface “http: The lpadmin command is used to create, modify, or delete a printer. The -p option specifies a printer to create or modify:. The lpadmin accepts several additional options after -p printername when adding or modifying a printer:. The -m option to lpadmin specifies the driver “model” to use for the printer. You can run the lpinfo -m command to list all of the available drivers “models” on your system:.

The everywhere driver is used for nearly all modern networks printers sold since about For example, the following command creates a destination for a printer at IP address The CUPS sample drivers the “drv: Each line contains the backend “class” followed by the backend name or a full printer device URI, for example:. The network class of backends is used for all network protocols.

The direct class of backends is used for directly-connected printers such as USB and Bluetooth.

Because these backends use a system-specific identifier, you should only use the reported device URIs. Once you know the correct URI for the printer, set it using the lpadmin command’s -v option:. CUPS supports sharing of printers with other computers and mobile devices.


Two cupsctl options control the general printer sharing features:. For example, to share two printers “foo” and “bar” on the local network, run the following commands:.

Printing — MacAdmins Community Documentation documentation

The lpadmin command is used to create, modify, or delete a class. The -c option specifies a class to create or modify and is combined with the -p option:.

The printing system log files track the activity of the scheduler, printer drivers, and backends. If problems occur and the log files do not provide sufficient details to diagnose the problem, you can enable debug logging using the cupsctl command:. All other trademarks are the property of their respective owners.