]> git.ipfire.org Git - thirdparty/cups.git/blame - doc/help/man-lpadmin.html
Initial work on man page modernization (STR #4372)
[thirdparty/cups.git] / doc / help / man-lpadmin.html
CommitLineData
c277f98c 1<!DOCTYPE HTML>
94436c5a
MS
2<html>
3<!-- SECTION: Man Pages -->
4<head>
5 <link rel="stylesheet" type="text/css" href="../cups-printable.css">
6 <title>lpadmin(8)</title>
7</head>
8<body>
9<h1 class="title">lpadmin(8)</h1>
10<h2 class="title"><a name="NAME">Name</a></h2>
11lpadmin - configure cups printers and classes
12<h2 class="title"><a name="SYNOPSIS">Synopsis</a></h2>
c277f98c
MS
13<b>lpadmin</b>
14[ -E ] [-U
15<i>username</i>
16] [ -h
17<i>server[:port]</i>
18] -d
19<i>destination</i>
20<br>
21<b>lpadmin</b>
22[ -E ] [-U
23<i>username</i>
24] [ -h
25<i>server[:port]</i>
26] -p
27<i>destination</i>
28[ -R
29<i>name-default</i>
30]
31<i>option(s)</i>
32<br>
33<b>lpadmin</b>
34[ -E ] [-U
35<i>username</i>
36] [ -h
37<i>server[:port]</i>
38] -x
39<i>destination</i>
40<h2 class="title"><a name="DESCRIPTION">Description</a></h2>
94436c5a
MS
41<i>lpadmin</i> configures printer and class queues provided by
42CUPS. It can also be used to set the server default printer or
43class.
44<p>When specified before the <i>-d</i>, <i>-p</i>, or <i>-x</i>
45options, the <i>-E</i> option forces encryption when connecting to
46the server.
47<p>The first form of the command (<i>-d</i>) sets the default printer
48or class to <i>destination</i>. Subsequent print jobs submitted
c277f98c 49via the <i>lp(1)</i> or <i>lpr(1)</i> commands will use this
94436c5a 50destination unless the user specifies otherwise with the
c277f98c 51<i>lpoptions(1)</i> command.
94436c5a
MS
52<p>The second form of the command (<i>-p</i>) configures the named
53printer or class. The additional options are described below.
54<p>The third form of the command (<i>-x</i>) deletes the printer or
55class <i>destination</i>. Any jobs that are pending for the
56destination will be removed and any job that is currently printed
57will be aborted.
58<h2 class="title"><a name="CONFIGURATION_OPTIONS">Configuration Options</a></h2>
59The following options are recognized when configuring a printer
60queue:
c277f98c
MS
61<p style="margin-left: 5.0em; text-indent: -5.0em">-c class
62<br>
63<br>
64Adds the named <i>printer</i> to <i>class</i>. If <i>class</i> does
94436c5a 65not exist it is created automatically.
c277f98c
MS
66<p style="margin-left: 5.0em; text-indent: -5.0em">-i interface
67<br>
68<br>
69Sets a System V style interface script for the printer. This
94436c5a
MS
70option cannot be specified with the <i>-P</i> option (PPD file)
71and is intended for providing support for legacy printer drivers.
c277f98c
MS
72<p style="margin-left: 5.0em; text-indent: -5.0em">-m model
73<br>
74<br>
75Sets a standard System V interface script or PPD file for the printer from the
94436c5a 76<i>model</i> directory or using one of the driver interfaces. Use the <i>-m</i>
c277f98c
MS
77option with the <i>lpinfo(8)</i> command to get a list of supported models.
78<p style="margin-left: 5.0em; text-indent: -5.0em">-o cupsIPPSupplies=true
79<br>
80<p style="margin-left: 5.0em; text-indent: -5.0em">-o cupsIPPSupplies=false
81<br>
82<br>
83Specifies whether IPP supply level values should be reported.
84<p style="margin-left: 5.0em; text-indent: -5.0em">-o cupsSNMPSupplies=true
85<br>
86<p style="margin-left: 5.0em; text-indent: -5.0em">-o cupsSNMPSupplies=false
87<br>
88<br>
89Specifies whether SNMP supply level (RFC 3805) values should be reported.
90<p style="margin-left: 5.0em; text-indent: -5.0em">-o job-k-limit=value
91<br>
92<br>
93Sets the kilobyte limit for per-user quotas. The value is an
94436c5a 94integer number of kilobytes; one kilobyte is 1024 bytes.
c277f98c
MS
95<p style="margin-left: 5.0em; text-indent: -5.0em">-o job-page-limit=value
96<br>
97<br>
98Sets the page limit for per-user quotas. The value is the integer
94436c5a
MS
99number of pages that can be printed; double-sided pages are
100counted as two pages.
c277f98c
MS
101<p style="margin-left: 5.0em; text-indent: -5.0em">-o job-quota-period=value
102<br>
103<br>
104Sets the accounting period for per-user quotas. The value is an
94436c5a 105integer number of seconds; 86,400 seconds are in one day.
c277f98c
MS
106<p style="margin-left: 5.0em; text-indent: -5.0em">-o job-sheets-default=banner
107<br>
108<p style="margin-left: 5.0em; text-indent: -5.0em">-o job-sheets-default=banner,banner
109<br>
110<br>
111Sets the default banner page(s) to use for print jobs.
112<p style="margin-left: 5.0em; text-indent: -5.0em">-o name=value
113<br>
114<br>
115Sets a PPD option for the printer. PPD options can be listed using the <i>-l</i>
116option with the <i>lpoptions(1)</i> command.
117<p style="margin-left: 5.0em; text-indent: -5.0em">-o name-default=value
118<br>
119<br>
120Sets a default server-side option for the destination. Any print-time
94436c5a
MS
121option can be defaulted, e.g. "-o cpi-default=17" to set the default
122"cpi" option value to 17.
c277f98c
MS
123<p style="margin-left: 5.0em; text-indent: -5.0em">-o port-monitor=name
124<br>
125<br>
126Sets the binary communications program to use when printing,
94436c5a
MS
127"none", "bcp", or "tbcp". The default program is "none". The
128specified port monitor must be listed in the printer's PPD file.
c277f98c
MS
129<p style="margin-left: 5.0em; text-indent: -5.0em">-o printer-error-policy=name
130<br>
131<br>
132Sets the error policy to be used when the printer backend is
94436c5a
MS
133unable to send the job to the printer. The name must be one of
134"abort-job", "retry-job", "retry-current-job", or "stop-printer". The default
135error policy is "stop-printer" for printers and "retry-current-job" for
136classes.
c277f98c
MS
137<p style="margin-left: 5.0em; text-indent: -5.0em">-o printer-is-shared=true/false
138<br>
139<br>
140Sets the destination to shared/published or unshared/unpublished.
94436c5a
MS
141Shared/published destinations are publicly announced by the server
142on the LAN based on the browsing configuration in
143<b>cupsd.conf</b>, while unshared/unpublished destinations are not
144announced. The default value is "true".
c277f98c
MS
145<p style="margin-left: 5.0em; text-indent: -5.0em">-o printer-op-policy=name
146<br>
147<br>
148Sets the IPP operation policy associated with the destination. The
94436c5a
MS
149name must be defined in the <b>cupsd.conf</b> in a Policy section.
150The default operation policy is "default".
c277f98c
MS
151<p style="margin-left: 5.0em; text-indent: -5.0em">-R name-default
152<br>
153<br>
154Deletes the named option from <i>printer</i>.
155<p style="margin-left: 5.0em; text-indent: -5.0em">-r class
156<br>
157<br>
158Removes the named <i>printer</i> from <i>class</i>. If the
94436c5a 159resulting class becomes empty it is removed.
c277f98c
MS
160<p style="margin-left: 5.0em; text-indent: -5.0em">-u allow:user,user,@group
161<br>
162<p style="margin-left: 5.0em; text-indent: -5.0em">-u deny:user,user,@group
163<br>
164<p style="margin-left: 5.0em; text-indent: -5.0em">-u allow:all
165<br>
166<p style="margin-left: 5.0em; text-indent: -5.0em">-u deny:none
167<br>
168<br>
169Sets user-level access control on a destination. Names starting with
94436c5a
MS
170"@" are interpreted as UNIX groups. The latter two forms turn
171user-level access control off.
c277f98c
MS
172<p style="margin-left: 5.0em; text-indent: -5.0em">-v "device-uri"
173<br>
174<br>
175Sets the <i>device-uri</i> attribute of the printer queue. Use the <i>-v</i>
176option with the <i>lpinfo(8)</i> command to get a list of supported device URIs
94436c5a 177and schemes.
c277f98c
MS
178<p style="margin-left: 5.0em; text-indent: -5.0em">-D "info"
179<br>
180<br>
181Provides a textual description of the destination.
182<p style="margin-left: 5.0em; text-indent: -5.0em">-E
183<br>
184<br>
185Enables the destination and accepts jobs; this is the same as running the
186<i>cupsaccept(8)</i> and <i>cupsenable(8)</i> programs on the destination.
187<p style="margin-left: 5.0em; text-indent: -5.0em">-L "location"
188<br>
189<br>
190Provides a textual location of the destination.
191<p style="margin-left: 5.0em; text-indent: -5.0em">-P ppd-file
192<br>
193<br>
194Specifies a PostScript Printer Description file to use with the
94436c5a
MS
195printer. If specified, this option overrides the <i>-i</i> option
196(interface script).
94436c5a
MS
197<h2 class="title"><a name="COMPATIBILITY">Compatibility</a></h2>
198Unlike the System V printing system, CUPS allows printer names to
199contain any printable character except SPACE, TAB, "/", or "#".
200Also, printer and class names are <i>not</i> case-sensitive.
201Finally, the CUPS version of <i>lpadmin</i> may ask the user for
202an access password depending on the printing system
203configuration. This differs from the System V version which
204requires the root user to execute this command.
205<h2 class="title"><a name="LIMITATIONS">Limitations</a></h2>
206The CUPS version of <i>lpadmin</i> does not support all of the
207System V or Solaris printing system configuration options.
208<h2 class="title"><a name="SEE_ALSO">See Also</a></h2>
c277f98c
MS
209<i>cupsaccept(8)</i>, <i>cupsenable(8)</i>, <i>lpinfo(8)</i>,
210<i>lpoptions(1)</i>,
94436c5a 211<br>
c277f98c 212<a href="http://localhost:631/help">http://localhost:631/help</a>
94436c5a
MS
213<h2 class="title"><a name="COPYRIGHT">Copyright</a></h2>
214Copyright 2007-2013 by Apple Inc.
215
216</body>
217</html>