]>
Commit | Line | Data |
---|---|---|
ef416fc2 | 1 | .\" |
cfa19b58 | 2 | .\" lpadmin man page for CUPS. |
ef416fc2 | 3 | .\" |
d0df9cd3 | 4 | .\" Copyright 2007-2017 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 | .\" |
d0df9cd3 | 9 | .TH lpadmin 8 "CUPS" "1 November 2017" "Apple Inc." |
ef416fc2 | 10 | .SH NAME |
11 | lpadmin \- 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. |
55 | It can also be used to set the server default printer or class. | |
ef416fc2 | 56 | .LP |
cfa19b58 | 57 | When 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 |
59 | The first form of the command (\fI-d\fR) sets the default printer or class to \fIdestination\fR. |
60 | Subsequent print jobs submitted via the | |
61 | .BR lp (1) | |
62 | or | |
63 | .BR lpr (1) | |
64 | commands will use this destination unless the user specifies otherwise with the | |
65 | .BR lpoptions (1) | |
66 | command. | |
ef416fc2 | 67 | .LP |
cfa19b58 | 68 | The 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 |
70 | The third form of the command (\fI-x\fR) deletes the printer or class \fIdestination\fR. |
71 | Any jobs that are pending for the destination will be removed and any job that is currently printed will be aborted. | |
72 | .SH OPTIONS | |
73 | The following options are recognized when configuring a printer queue: | |
ef416fc2 | 74 | .TP 5 |
cfa19b58 MS |
75 | \fB\-c \fIclass\fR |
76 | Adds the named \fIprinter\fR to \fIclass\fR. | |
77 | If \fIclass\fR does not exist it is created automatically. | |
ef416fc2 | 78 | .TP 5 |
e67e2f9e MS |
79 | \fB\-P \fIppd-file\fR |
80 | Specifies a PostScript Printer Description (PPD) file to use with the printer. | |
ef416fc2 | 81 | .TP 5 |
cfa19b58 | 82 | \fB\-m \fImodel\fR |
e67e2f9e | 83 | Sets a standard PPD file for the printer from the \fImodel\fR directory or using one of the driver interfaces. |
cfa19b58 MS |
84 | Use the \fI-m\fR option with the |
85 | .BR lpinfo (8) | |
86 | command to get a list of supported models. | |
e67e2f9e | 87 | The model "raw" clears any existing PPD file and the model "everywhere" queries the printer referred to by the specified IPP \fIdevice-uri\fR. |
eac3a0a0 | 88 | .TP 5 |
cfa19b58 MS |
89 | \fB\-o cupsIPPSupplies=true\fR |
90 | .TP 5 | |
91 | \fB\-o cupsIPPSupplies=false\fR | |
eac3a0a0 MS |
92 | Specifies whether IPP supply level values should be reported. |
93 | .TP 5 | |
cfa19b58 | 94 | \fB\-o cupsSNMPSupplies=true\fR |
eac3a0a0 | 95 | .TP 5 |
cfa19b58 | 96 | \fB\-o cupsSNMPSupplies=false\fR |
eac3a0a0 MS |
97 | Specifies whether SNMP supply level (RFC 3805) values should be reported. |
98 | .TP 5 | |
cfa19b58 MS |
99 | \fB\-o job\-k\-limit=\fIvalue\fR |
100 | Sets the kilobyte limit for per-user quotas. | |
101 | The value is an integer number of kilobytes; one kilobyte is 1024 bytes. | |
ef416fc2 | 102 | .TP 5 |
cfa19b58 MS |
103 | \fB\-o job\-page\-limit=\fIvalue\fR |
104 | Sets the page limit for per-user quotas. | |
105 | The value is the integer number of pages that can be printed; double-sided pages are counted as two pages. | |
ef416fc2 | 106 | .TP 5 |
cfa19b58 MS |
107 | \fB-o job\-quota\-period=\fIvalue\fR |
108 | Sets the accounting period for per-user quotas. | |
109 | The value is an integer number of seconds; 86,400 seconds are in one day. | |
ef416fc2 | 110 | .TP 5 |
cfa19b58 | 111 | \fB\-o job\-sheets\-default=\fIbanner\fR |
bd7854cb | 112 | .TP 5 |
cfa19b58 | 113 | \fB\-o job\-sheets\-default=\fIbanner\fB,\fIbanner\fR |
bd7854cb | 114 | Sets the default banner page(s) to use for print jobs. |
115 | .TP 5 | |
cfa19b58 MS |
116 | \fB\-o \fIname\fB=\fIvalue\fR |
117 | Sets a PPD option for the printer. | |
118 | PPD options can be listed using the \fI-l\fR option with the | |
119 | .BR lpoptions (1) | |
120 | command. | |
121 | .TP 5 | |
122 | \fB\-o \fIname\fB-default=\fIvalue\fR | |
123 | Sets a default server-side option for the destination. | |
124 | Any print-time option can be defaulted, e.g., "-o number-up-default=2" to set the default "number-up" option value to 2. | |
125 | .TP 5 | |
126 | \fB\-o port\-monitor=\fIname\fR | |
127 | Sets the binary communications program to use when printing, "none", "bcp", or "tbcp". | |
128 | The default program is "none". | |
129 | The specified port monitor must be listed in the printer's PPD file. | |
130 | .TP 5 | |
131 | \fB\-o printer-error-policy=\fIname\fR | |
132 | Sets the error policy to be used when the printer backend is unable to send the job to the printer. | |
133 | The name must be one of "abort-job", "retry-job", "retry-current-job", or "stop-printer". | |
134 | The default error policy is "stop-printer" for printers and "retry-current-job" for | |
7cf5915e | 135 | classes. |
8ca02f3c | 136 | .TP 5 |
cfa19b58 MS |
137 | \fB\-o printer\-is\-shared=true\fR |
138 | .TP 5 | |
139 | \fB\-o printer\-is\-shared=false\fR | |
7cf5915e | 140 | Sets the destination to shared/published or unshared/unpublished. |
cfa19b58 MS |
141 | Shared/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. |
142 | The default value is "true". | |
8ca02f3c | 143 | .TP 5 |
cfa19b58 MS |
144 | \fB\-o printer-op-policy=\fIname\fR |
145 | Sets the IPP operation policy associated with the destination. | |
146 | The name must be defined in the \fIcupsd.conf\fR in a Policy section. | |
8ca02f3c | 147 | The default operation policy is "default". |
148 | .TP 5 | |
cfa19b58 | 149 | \fB\-R \fIname\fB\-default\fR |
eac3a0a0 MS |
150 | Deletes the named option from \fIprinter\fR. |
151 | .TP 5 | |
cfa19b58 MS |
152 | \fB\-r \fIclass\fR |
153 | Removes the named \fIprinter\fR from \fIclass\fR. | |
154 | If the resulting class becomes empty it is removed. | |
ef416fc2 | 155 | .TP 5 |
cfa19b58 | 156 | \fB-u allow:\fR{\fIuser\fR|\fB@\fIgroup\fR}{\fB,\fIuser\fR|\fB,@\fIgroup\fR}* |
80ca4592 | 157 | .TP 5 |
cfa19b58 | 158 | \fB-u deny:\fR{\fIuser\fR|\fB@\fIgroup\fR}{\fB,\fIuser\fR|\fB,@\fIgroup\fR}* |
80ca4592 | 159 | .TP 5 |
cfa19b58 | 160 | \fB\-u allow:all\fR |
80ca4592 | 161 | .TP 5 |
cfa19b58 MS |
162 | \fB\-u deny:none\fR |
163 | Sets user-level access control on a destination. | |
164 | Names starting with "@" are interpreted as UNIX groups. | |
165 | The latter two forms turn user-level access control off. | |
f80e6f38 | 166 | Note: 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 | 167 | .TP 5 |
cfa19b58 MS |
168 | \fB\-v "\fIdevice-uri\fB"\fR |
169 | Sets the \fIdevice-uri\fR attribute of the printer queue. | |
170 | Use the \fI-v\fR option with the | |
171 | .BR lpinfo (8) | |
172 | command to get a list of supported device URIs and schemes. | |
ef416fc2 | 173 | .TP 5 |
cfa19b58 | 174 | \fB\-D "\fIinfo\fB"\fR |
7cf5915e | 175 | Provides a textual description of the destination. |
ef416fc2 | 176 | .TP 5 |
cfa19b58 | 177 | .B \-E |
7cf5915e | 178 | Enables the destination and accepts jobs; this is the same as running the |
cfa19b58 MS |
179 | .BR cupsaccept (8) |
180 | and | |
181 | .BR cupsenable (8) | |
182 | programs on the destination. | |
ef416fc2 | 183 | .TP 5 |
cfa19b58 | 184 | \fB\-L "\fIlocation\fB"\fR |
7cf5915e | 185 | Provides a textual location of the destination. |
d0df9cd3 MS |
186 | .SH DEPRECATED OPTIONS |
187 | The following \fBlpadmin\fR options are deprecated: | |
188 | .TP 5 | |
189 | \fB\-i \fIfilename\fR | |
190 | This option historically has been used to provide either a System V interface script or (as an implementation side-effect) a PPD file. | |
191 | Since interface scripts are no longer supported, the \fI-P\fR option is preferred for providing a PPD file for a printer. | |
cfa19b58 MS |
192 | .SH CONFORMING TO |
193 | Unlike the System V printing system, CUPS allows printer names to contain any printable character except SPACE, TAB, "/", or "#". | |
bd7854cb | 194 | Also, printer and class names are \fInot\fR case-sensitive. |
cfa19b58 MS |
195 | Finally, the CUPS version of \fBlpadmin\fR may ask the user for an access password depending on the printing system configuration. |
196 | This differs from the System V version which requires the root user to execute this command. | |
197 | .SH NOTES | |
198 | The CUPS version of \fBlpadmin\fR does not support all of the System V or Solaris printing system configuration options. | |
d0df9cd3 | 199 | Interface scripts are not supported for security reasons. |
fffed089 MS |
200 | .SH EXAMPLE |
201 | Create an IPP Everywhere print queue: | |
202 | .nf | |
203 | ||
204 | lpadmin -p myprinter -E -v ipp://myprinter.local/ipp/print -m everywhere | |
205 | ||
206 | .fi | |
ef416fc2 | 207 | .SH SEE ALSO |
cfa19b58 MS |
208 | .BR cupsaccept (8), |
209 | .BR cupsenable (8), | |
210 | .BR lpinfo (8), | |
211 | .BR lpoptions (1), | |
212 | CUPS Online Help (http://localhost:631/help) | |
ef416fc2 | 213 | .SH COPYRIGHT |
bd5a2f28 | 214 | Copyright \[co] 2007-2017 by Apple Inc. |