Reader small image

You're reading from  CUPS Administrative Guide

Product typeBook
Published inSep 2008
Publisher
ISBN-139781847192585
Edition1st Edition
Tools
Concepts
Right arrow
Author (1)
Ankur Shah
Ankur Shah
author image
Ankur Shah

Ankur Shah has been working with Linux/AIX for last 4 years as a System Administrator. His previous assignment was with Packt Publishing, where he worked as System Administrator and also started implementing CUPS. He completed his graduation in Computer Engineering from Nagpur University, India. He is currently working as a SAP Basis Administrator and also started working on Governance Risk and Compliance for access Control. He is also interested in Oracle Database Administration and Security. He is the biggest fan of Kajol (a Bollywood actress) and dedicates this book to her. The day her movie releases is a day of celebration for him and he only parties once a year - 5th August - that's Kajol's birthday. It goes without saying that he watches all her movies several times - often dragging his friends and family to participate in his madness.
Read more about Ankur Shah

Right arrow

Managing Printer Classes Through Command-Line


You can perform this task only by using the lpadmin -c command. Jobs sent to a printer class are forwarded to the first available printer in the printer class.

Adding a Printer to a Class

You can run the following command with the -p and -c options to add a printer to a class:

$sudo lpadmin -p cupsprinter -c cupsclass

The above example shows that the printer cupsprinter has been added to printer class cupsclass:

You can verify whether the printers are in a printer class:

$lpstat -c cupsclass

Removing a Printer from a Class

You need to run lpadmin command with -p and -r options to remove printer from a class. If all the printers from a class are removed, then that class can get deleted automatically.

$sudo lpadmin -p cupsprinter -r cupsclass

The above example shows that the printer cupsprinter has been removed from the printer class, cupsclass:

Removing a Class

To remove a class, you can run the lpadmin command with the -x option:

$sudo lpadmin...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
CUPS Administrative Guide
Published in: Sep 2008Publisher: ISBN-13: 9781847192585

Author (1)

author image
Ankur Shah

Ankur Shah has been working with Linux/AIX for last 4 years as a System Administrator. His previous assignment was with Packt Publishing, where he worked as System Administrator and also started implementing CUPS. He completed his graduation in Computer Engineering from Nagpur University, India. He is currently working as a SAP Basis Administrator and also started working on Governance Risk and Compliance for access Control. He is also interested in Oracle Database Administration and Security. He is the biggest fan of Kajol (a Bollywood actress) and dedicates this book to her. The day her movie releases is a day of celebration for him and he only parties once a year - 5th August - that's Kajol's birthday. It goes without saying that he watches all her movies several times - often dragging his friends and family to participate in his madness.
Read more about Ankur Shah