]> git.ipfire.org Git - thirdparty/cups.git/blame - man/lpadmin.8
Greatly simplify the man page handling.
[thirdparty/cups.git] / man / lpadmin.8
CommitLineData
ef416fc2 1.\"
cfa19b58 2.\" lpadmin man page for CUPS.
ef416fc2 3.\"
87030afb
MS
4.\" Copyright © 2007-2019 by Apple Inc.
5.\" Copyright © 1997-2006 by Easy Software Products.
ef416fc2 6.\"
87030afb
MS
7.\" Licensed under Apache License v2.0. See the file "LICENSE" for more
8.\" information.
ef416fc2 9.\"
87030afb 10.TH lpadmin 8 "CUPS" "26 April 2019" "Apple Inc."
ef416fc2 11.SH NAME
12lpadmin \- configure cups printers and classes
13.SH SYNOPSIS
14.B lpadmin
cfa19b58
MS
15[
16.B \-E
17] [
18.B \-U
bd7854cb 19.I username
cfa19b58
MS
20] [
21\fB\-h \fIserver\fR[\fB:\fIport\fR]
22]
23.B \-d
ef416fc2 24.I destination
25.br
26.B lpadmin
cfa19b58
MS
27[
28.B \-E
29] [
30.B \-U
bd7854cb 31.I username
cfa19b58
MS
32] [
33\fB\-h \fIserver\fR[\fB:\fIport\fR]
34]
35.B \-p
eac3a0a0 36.I destination
cfa19b58
MS
37[
38.B \-R
eac3a0a0
MS
39.I name-default
40]
41.I option(s)
ef416fc2 42.br
43.B lpadmin
cfa19b58
MS
44[
45.B \-E
46] [
47.B \-U
bd7854cb 48.I username
cfa19b58
MS
49] [
50\fB\-h \fIserver\fR[\fB:\fIport\fR]
51]
52.B \-x
ef416fc2 53.I destination
54.SH DESCRIPTION
cfa19b58
MS
55\fBlpadmin\fR configures printer and class queues provided by CUPS.
56It can also be used to set the server default printer or class.
ef416fc2 57.LP
cfa19b58 58When specified before the \fI-d\fR, \fI-p\fR, or \fI-x\fR options, the \fI-E\fR option forces encryption when connecting to the server.
ef416fc2 59.LP
cfa19b58
MS
60The first form of the command (\fI-d\fR) sets the default printer or class to \fIdestination\fR.
61Subsequent print jobs submitted via the
62.BR lp (1)
63or
64.BR lpr (1)
65commands will use this destination unless the user specifies otherwise with the
66.BR lpoptions (1)
67command.
ef416fc2 68.LP
cfa19b58 69The second form of the command (\fI-p\fR) configures the named printer or class. The additional options are described below.
ef416fc2 70.LP
cfa19b58
MS
71The third form of the command (\fI-x\fR) deletes the printer or class \fIdestination\fR.
72Any jobs that are pending for the destination will be removed and any job that is currently printed will be aborted.
73.SH OPTIONS
74The following options are recognized when configuring a printer queue:
ef416fc2 75.TP 5
cfa19b58
MS
76\fB\-c \fIclass\fR
77Adds the named \fIprinter\fR to \fIclass\fR.
78If \fIclass\fR does not exist it is created automatically.
ef416fc2 79.TP 5
cfa19b58 80\fB\-m \fImodel\fR
e67e2f9e 81Sets a standard PPD file for the printer from the \fImodel\fR directory or using one of the driver interfaces.
cfa19b58
MS
82Use the \fI-m\fR option with the
83.BR lpinfo (8)
84command to get a list of supported models.
e67e2f9e 85The model "raw" clears any existing PPD file and the model "everywhere" queries the printer referred to by the specified IPP \fIdevice-uri\fR.
ada35e59 86Note: Models other than "everywhere" are deprecated and will not be supported in a future version of CUPS.
eac3a0a0 87.TP 5
cfa19b58
MS
88\fB\-o cupsIPPSupplies=true\fR
89.TP 5
90\fB\-o cupsIPPSupplies=false\fR
eac3a0a0
MS
91Specifies whether IPP supply level values should be reported.
92.TP 5
cfa19b58 93\fB\-o cupsSNMPSupplies=true\fR
eac3a0a0 94.TP 5
cfa19b58 95\fB\-o cupsSNMPSupplies=false\fR
eac3a0a0
MS
96Specifies whether SNMP supply level (RFC 3805) values should be reported.
97.TP 5
cfa19b58
MS
98\fB\-o job\-k\-limit=\fIvalue\fR
99Sets the kilobyte limit for per-user quotas.
100The value is an integer number of kilobytes; one kilobyte is 1024 bytes.
ef416fc2 101.TP 5
cfa19b58
MS
102\fB\-o job\-page\-limit=\fIvalue\fR
103Sets the page limit for per-user quotas.
104The value is the integer number of pages that can be printed; double-sided pages are counted as two pages.
ef416fc2 105.TP 5
cfa19b58
MS
106\fB-o job\-quota\-period=\fIvalue\fR
107Sets the accounting period for per-user quotas.
108The value is an integer number of seconds; 86,400 seconds are in one day.
ef416fc2 109.TP 5
cfa19b58 110\fB\-o job\-sheets\-default=\fIbanner\fR
bd7854cb 111.TP 5
cfa19b58 112\fB\-o job\-sheets\-default=\fIbanner\fB,\fIbanner\fR
bd7854cb 113Sets the default banner page(s) to use for print jobs.
114.TP 5
cfa19b58
MS
115\fB\-o \fIname\fB=\fIvalue\fR
116Sets a PPD option for the printer.
117PPD options can be listed using the \fI-l\fR option with the
118.BR lpoptions (1)
119command.
120.TP 5
121\fB\-o \fIname\fB-default=\fIvalue\fR
122Sets a default server-side option for the destination.
123Any print-time option can be defaulted, e.g., "-o number-up-default=2" to set the default "number-up" option value to 2.
124.TP 5
125\fB\-o port\-monitor=\fIname\fR
126Sets the binary communications program to use when printing, "none", "bcp", or "tbcp".
127The default program is "none".
128The specified port monitor must be listed in the printer's PPD file.
129.TP 5
130\fB\-o printer-error-policy=\fIname\fR
b167c7fc
MS
131Sets the policy for errors such as printers that cannot be found or accessed, don't support the format being printed, fail during submission of the print data, or cause one or more filters to crash.
132The name must be one of "abort-job" (abort the job on error), "retry-job" (retry the job at a future time), "retry-current-job" (retry the current job immediately), or "stop-printer" (stop the printer on error).
cfa19b58 133The default error policy is "stop-printer" for printers and "retry-current-job" for
7cf5915e 134classes.
8ca02f3c 135.TP 5
cfa19b58
MS
136\fB\-o printer\-is\-shared=true\fR
137.TP 5
138\fB\-o printer\-is\-shared=false\fR
7cf5915e 139Sets the destination to shared/published or unshared/unpublished.
cfa19b58
MS
140Shared/published destinations are publicly announced by the server on the LAN based on the browsing configuration in \fIcupsd.conf\fR, while unshared/unpublished destinations are not announced.
141The default value is "true".
8ca02f3c 142.TP 5
cfa19b58
MS
143\fB\-o printer-op-policy=\fIname\fR
144Sets the IPP operation policy associated with the destination.
145The name must be defined in the \fIcupsd.conf\fR in a Policy section.
8ca02f3c 146The default operation policy is "default".
147.TP 5
cfa19b58 148\fB\-R \fIname\fB\-default\fR
eac3a0a0
MS
149Deletes the named option from \fIprinter\fR.
150.TP 5
cfa19b58
MS
151\fB\-r \fIclass\fR
152Removes the named \fIprinter\fR from \fIclass\fR.
153If the resulting class becomes empty it is removed.
ef416fc2 154.TP 5
cfa19b58 155\fB-u allow:\fR{\fIuser\fR|\fB@\fIgroup\fR}{\fB,\fIuser\fR|\fB,@\fIgroup\fR}*
80ca4592 156.TP 5
cfa19b58 157\fB-u deny:\fR{\fIuser\fR|\fB@\fIgroup\fR}{\fB,\fIuser\fR|\fB,@\fIgroup\fR}*
80ca4592 158.TP 5
cfa19b58 159\fB\-u allow:all\fR
80ca4592 160.TP 5
cfa19b58
MS
161\fB\-u deny:none\fR
162Sets user-level access control on a destination.
163Names starting with "@" are interpreted as UNIX groups.
164The latter two forms turn user-level access control off.
f80e6f38 165Note: The user 'root' is not granted special access - using "-u allow:foo,bar" will allow users 'foo' and 'bar' to access the printer but NOT 'root'.
ef416fc2 166.TP 5
cfa19b58
MS
167\fB\-v "\fIdevice-uri\fB"\fR
168Sets the \fIdevice-uri\fR attribute of the printer queue.
169Use the \fI-v\fR option with the
170.BR lpinfo (8)
171command to get a list of supported device URIs and schemes.
ef416fc2 172.TP 5
cfa19b58 173\fB\-D "\fIinfo\fB"\fR
7cf5915e 174Provides a textual description of the destination.
ef416fc2 175.TP 5
cfa19b58 176.B \-E
d5d64778
MS
177When specified before the \fB\-d\fR, \fB\-p\fR, or \fB\-x\fR options, forces the use of TLS encryption on the connection to the scheduler.
178Otherwise, enables the destination and accepts jobs; this is the same as running the
cfa19b58
MS
179.BR cupsaccept (8)
180and
181.BR cupsenable (8)
182programs on the destination.
ef416fc2 183.TP 5
cfa19b58 184\fB\-L "\fIlocation\fB"\fR
7cf5915e 185Provides a textual location of the destination.
d0df9cd3
MS
186.SH DEPRECATED OPTIONS
187The following \fBlpadmin\fR options are deprecated:
188.TP 5
189\fB\-i \fIfilename\fR
190This option historically has been used to provide either a System V interface script or (as an implementation side-effect) a PPD file.
ada35e59
MS
191Note: Interface scripts are not supported by CUPS.
192PPD files and printer drivers are deprecated and will not be supported in a future version of CUPS.
193.TP 5
194\fB\-P \fIppd-file\fR
195Specifies a PostScript Printer Description (PPD) file to use with the printer.
196Note: PPD files and printer drivers are deprecated and will not be supported in a future version of CUPS.
cfa19b58
MS
197.SH CONFORMING TO
198Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#".
bd7854cb 199Also, printer and class names are \fInot\fR case-sensitive.
f07dbc95 200.PP
cfa19b58
MS
201Finally, the CUPS version of \fBlpadmin\fR may ask the user for an access password depending on the printing system configuration.
202This differs from the System V version which requires the root user to execute this command.
203.SH NOTES
87030afb
MS
204CUPS printer drivers and backends are deprecated and will no longer be supported in a future feature release of CUPS.
205Printers that do not support IPP can be supported using applications such as
206.BR ippeveprinter (1).
207.LP
cfa19b58 208The CUPS version of \fBlpadmin\fR does not support all of the System V or Solaris printing system configuration options.
f07dbc95 209.PP
d0df9cd3 210Interface scripts are not supported for security reasons.
d5d64778
MS
211.PP
212The double meaning of the \fB\-E\fR option is an unfortunate historical oddity.
f07dbc95
MS
213.PP
214The \fBlpadmin\fR command communicates with the scheduler (\fBcupsd\fR) to make changes to the printing system configuration.
215This configuration information is stored in several files including \fIprinters.conf\fR and \fIclasses.conf\fR.
216These files should not be edited directly and are an implementation detail of CUPS that is subject to change at any time.
fffed089
MS
217.SH EXAMPLE
218Create an IPP Everywhere print queue:
219.nf
220
221 lpadmin -p myprinter -E -v ipp://myprinter.local/ipp/print -m everywhere
222
223.fi
ef416fc2 224.SH SEE ALSO
cfa19b58
MS
225.BR cupsaccept (8),
226.BR cupsenable (8),
227.BR lpinfo (8),
228.BR lpoptions (1),
229CUPS Online Help (http://localhost:631/help)
ef416fc2 230.SH COPYRIGHT
87030afb 231Copyright \[co] 2007-2019 by Apple Inc.