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