3 <!-- SECTION: Man Pages -->
5 <link rel=
"stylesheet" type=
"text/css" href=
"../cups-printable.css">
6 <title>lpadmin(
8)
</title>
9 <h1 class=
"title">lpadmin(
8)
</h1>
10 <h2 class=
"title"><a name=
"NAME">Name
</a></h2>
11 lpadmin - configure cups printers and classes
12 <h2 class=
"title"><a name=
"SYNOPSIS">Synopsis
</a></h2>
40 <h2 class=
"title"><a name=
"DESCRIPTION">Description
</a></h2>
41 <i>lpadmin
</i> configures printer and class queues provided by
42 CUPS. It can also be used to set the server default printer or
44 <p>When specified before the
<i>-d
</i>,
<i>-p
</i>, or
<i>-x
</i>
45 options, the
<i>-E
</i> option forces encryption when connecting to
47 <p>The first form of the command (
<i>-d
</i>) sets the default printer
48 or class to
<i>destination
</i>. Subsequent print jobs submitted
49 via the
<i>lp(
1)
</i> or
<i>lpr(
1)
</i> commands will use this
50 destination unless the user specifies otherwise with the
51 <i>lpoptions(
1)
</i> command.
52 <p>The second form of the command (
<i>-p
</i>) configures the named
53 printer or class. The additional options are described below.
54 <p>The third form of the command (
<i>-x
</i>) deletes the printer or
55 class
<i>destination
</i>. Any jobs that are pending for the
56 destination will be removed and any job that is currently printed
58 <h2 class=
"title"><a name=
"CONFIGURATION_OPTIONS">Configuration Options
</a></h2>
59 The following options are recognized when configuring a printer
61 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-c class
64 Adds the named
<i>printer
</i> to
<i>class
</i>. If
<i>class
</i> does
65 not exist it is created automatically.
66 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-i interface
69 Sets a System V style interface script for the printer. This
70 option cannot be specified with the
<i>-P
</i> option (PPD file)
71 and is intended for providing support for legacy printer drivers.
72 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-m model
75 Sets a standard System V interface script or PPD file for the printer from the
76 <i>model
</i> directory or using one of the driver interfaces. Use the
<i>-m
</i>
77 option 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
80 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-o cupsIPPSupplies=false
83 Specifies whether IPP supply level values should be reported.
84 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-o cupsSNMPSupplies=true
86 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-o cupsSNMPSupplies=false
89 Specifies 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
93 Sets the kilobyte limit for per-user quotas. The value is an
94 integer number of kilobytes; one kilobyte is
1024 bytes.
95 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-o job-page-limit=value
98 Sets the page limit for per-user quotas. The value is the integer
99 number of pages that can be printed; double-sided pages are
100 counted as two pages.
101 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-o job-quota-period=value
104 Sets the accounting period for per-user quotas. The value is an
105 integer number of seconds;
86,
400 seconds are in one day.
106 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-o job-sheets-default=banner
108 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-o job-sheets-default=banner,banner
111 Sets the default banner page(s) to use for print jobs.
112 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-o name=value
115 Sets a PPD option for the printer. PPD options can be listed using the
<i>-l
</i>
116 option with the
<i>lpoptions(
1)
</i> command.
117 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-o name-default=value
120 Sets a default server-side option for the destination. Any print-time
121 option can be defaulted, e.g.
"-o cpi-default=17" to set the default
122 "cpi" option value to
17.
123 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-o port-monitor=name
126 Sets the binary communications program to use when printing,
127 "none",
"bcp", or
"tbcp". The default program is
"none". The
128 specified port monitor must be listed in the printer's PPD file.
129 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-o printer-error-policy=name
132 Sets the error policy to be used when the printer backend is
133 unable 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
135 error policy is
"stop-printer" for printers and
"retry-current-job" for
137 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-o printer-is-shared=true/false
140 Sets the destination to shared/published or unshared/unpublished.
141 Shared/published destinations are publicly announced by the server
142 on the LAN based on the browsing configuration in
143 <b>cupsd.conf
</b>, while unshared/unpublished destinations are not
144 announced. The default value is
"true".
145 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-o printer-op-policy=name
148 Sets the IPP operation policy associated with the destination. The
149 name must be defined in the
<b>cupsd.conf
</b> in a Policy section.
150 The default operation policy is
"default".
151 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-R name-default
154 Deletes the named option from
<i>printer
</i>.
155 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-r class
158 Removes the named
<i>printer
</i> from
<i>class
</i>. If the
159 resulting class becomes empty it is removed.
160 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-u allow:user,user,@group
162 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-u deny:user,user,@group
164 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-u allow:all
166 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-u deny:none
169 Sets user-level access control on a destination. Names starting with
170 "@" are interpreted as UNIX groups. The latter two forms turn
171 user-level access control off.
172 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-v
"device-uri"
175 Sets the
<i>device-uri
</i> attribute of the printer queue. Use the
<i>-v
</i>
176 option with the
<i>lpinfo(
8)
</i> command to get a list of supported device URIs
178 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-D
"info"
181 Provides a textual description of the destination.
182 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-E
185 Enables 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"
190 Provides a textual location of the destination.
191 <p style=
"margin-left: 5.0em; text-indent: -5.0em">-P ppd-file
194 Specifies a PostScript Printer Description file to use with the
195 printer. If specified, this option overrides the
<i>-i
</i> option
197 <h2 class=
"title"><a name=
"COMPATIBILITY">Compatibility
</a></h2>
198 Unlike the System V printing system, CUPS allows printer names to
199 contain any printable character except SPACE, TAB,
"/", or
"#".
200 Also, printer and class names are
<i>not
</i> case-sensitive.
201 Finally, the CUPS version of
<i>lpadmin
</i> may ask the user for
202 an access password depending on the printing system
203 configuration. This differs from the System V version which
204 requires the root user to execute this command.
205 <h2 class=
"title"><a name=
"LIMITATIONS">Limitations
</a></h2>
206 The CUPS version of
<i>lpadmin
</i> does not support all of the
207 System V or Solaris printing system configuration options.
208 <h2 class=
"title"><a name=
"SEE_ALSO">See Also
</a></h2>
209 <i>cupsaccept(
8)
</i>,
<i>cupsenable(
8)
</i>,
<i>lpinfo(
8)
</i>,
212 <a href=
"http://localhost:631/help">http://localhost:
631/help
</a>
213 <h2 class=
"title"><a name=
"COPYRIGHT">Copyright
</a></h2>
214 Copyright
2007-
2013 by Apple Inc.