2 .\" Copyright 1989 AT&T Copyright (c) 2006, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH ENABLE 1 "Feb 25, 2017"
8 enable, disable \- enable/disable LP printers
12 \fB/usr/bin/enable\fR \fIprinter\fR...
17 \fB/usr/bin/disable\fR [\fB-c\fR | \fB-W\fR] [\fB-r\fR [\fIreason\fR]] \fIprinter\fR...
22 The \fBenable\fR command activates printers, enabling them to print requests
23 submitted by the \fBlp\fR command. \fBenable\fR must be run on the printer
27 The \fBdisable\fR command deactivates printers, disabling them from printing
28 requests submitted by the \fBlp\fR command. By default, any requests that are
29 currently printing on \fIprinter\fR are reprinted in their entirety either on
30 \fIprinter\fR or another member of the same class of printers. The
31 \fBdisable\fR command must be run on the print server.
34 Use \fBlpstat\fR \fB-p\fR to check the status of printers.
37 Generally, \fBenable\fR and \fBdisable\fR are run on the print server to
38 control local print queues. Under some configurations, they can also be run on
39 client systems when IPP is being used to communicate between client and server.
42 The following options are supported for use with \fBdisable\fR:
49 Cancels any requests that are currently printing on \fIprinter\fR. This option
50 cannot be used with the \fB-W\fR option. If the printer is remote, the \fB-c\fR
51 option is silently ignored.
60 Waits until the request currently being printed is finished before disabling
61 \fIprinter\fR. This option cannot be used with the \fB-c\fR option. If the
62 printer is remote, the \fB-W\fR option is silently ignored.
68 \fB\fB-r\fR [\fIreason\fR]\fR
71 Assigns a \fIreason\fR for the disabling of the printer(s). This \fIreason\fR
72 applies to all printers specified. This \fIreason\fR is reported by
73 \fBlpstat\fR \fB-p\fR. Enclose \fIreason\fR in quotes if it contains blanks.
74 The default reason is \fBunknown reason\fR for the existing printer, and
75 \fB"new printer"\fR for a printer added to the system but not yet enabled.
80 The following operand is supported for both \fBenable\fR and \fBdisable\fR:
87 The name of the printer to be enabled or disabled. Specify \fIprinter\fR using
88 atomic or URI-style (\fIscheme\fR\fB://\fR\fIendpoint\fR) names. See
89 \fBprinters.conf\fR(4) regarding the naming conventions for destinations.
94 The following exit values are returned:
101 Successful completion.
116 \fB\fB/etc/printers.conf\fR\fR
119 System printer configuration database
125 \fB\fB$HOME/.printers\fR\fR
128 User-configurable printer database
134 \fB\fBou=printers\fR\fR
137 LDAP version of \fB/etc/printers.conf\fR
143 \fB\fBprinters.conf.byname\fR\fR
146 \fBNIS\fR version of \fB/etc/printers.conf\fR
151 See \fBattributes\fR(5) for descriptions of the following attributes:
159 ATTRIBUTE TYPE ATTRIBUTE VALUE
161 Interface Stability Obsolete
168 \fBlp\fR(1), \fBlpstat\fR(1), \fBprinters.conf\fR(4), \fBattributes\fR(5)
171 When IPP is in use, the user is prompted for a passphrase if the remote print
172 service is configured to require authentication.