2 .\" Copyright (C) 2003, 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 LPGET 1M "May 23, 2003"
8 lpget \- get printing configuration
12 \fBlpget\fR [\fB-k\fR \fIkey\fR] [\fIdestination\fR... | list]
18 The \fBlpget\fR utility reads printing configuration information from the
19 configuration databases in \fB$HOME/.printers\fR, \fB/etc/printers.conf\fR,
20 \fBprinters.conf.byname\fR, and \fBprinters.org_dir\fR printer. This
21 information, called a \fIconfiguration report\fR, is displayed to the standard
22 output. See \fBprinters\fR(4) and \fBprinters.conf\fR(4) for information about
23 the printer configuration databases.
26 \fBlpget\fR displays a configuration report for all keys for the specified
27 destination or destinations by default. Use the \fB-k\fR option to display a
28 configuration report for specific keys. Use the \fBlist\fR operand to display a
29 configuration report for all configured destinations.
33 The following option is supported:
37 \fB\fB-k\fR \fIkey\fR\fR
40 Displays a configuration report for \fIkey\fR. See \fBprinters.conf\fR(4) for
41 information about specifying \fIkey\fR.
47 The following operands are supported:
51 \fB\fIdestination\fR\fR
54 Displays a configuration report for \fIdestination\fR. Destination can be
55 either a printer of a class of printers. See \fBlpadmin\fR(1M). Specify
56 \fIdestination\fR using atomic or POSIX-style
57 (\fIserver\fR\fB:\fR\fIdestination\fR) names. See \fBprinters.conf \fR(4) for
58 information regarding the naming conventions for atomic names and
59 \fBstandards\fR(5) for information concerning POSIX.
68 Displays a configuration report for all configured destinations.
73 \fBExample 1 \fRDisplaying a Configuration Report for the \fBbsdaddr\fR Key
76 The following example displays a configuration report for the \fBbsdaddr\fR
77 key for printer \fBcatalpa\fR.
82 example% \fBlpget -k bsdaddr catalpa\fR
88 \fBExample 2 \fRA Configuration Report for all Keys for all Configured
92 The following example displays a configuration report for all keys for all
93 configured destinations.
98 example% \fBlpget list\fR
106 The following exit values are returned:
113 Successful completion.
129 \fB\fB/etc/printers.conf\fR\fR
132 System printer configuration database.
138 \fB\fB$HOME/.printers\fR \fR
141 User-configurable printer database.
147 \fB\fBprinters.conf.byname\fR\fR
150 \fBNIS\fR version of \fB/etc/printers.conf\fR.
156 \fB\fBprinters.org_dir\fR\fR
159 \fBNIS+\fR version of \fB/etc/printers.conf\fR.
165 See \fBattributes\fR(5) for descriptions of the following attributes:
173 ATTRIBUTE TYPE ATTRIBUTE VALUE
175 Stability Level Stable
181 \fBldap\fR(1), \fBlp\fR(1), \fBlpc\fR(1B), \fBlpq\fR(1B), \fBlpr\fR(1B),
182 \fBlpstat\fR(1), \fBlpadmin \fR(1M), \fBlpset\fR(1M), \fBprinters\fR(4),
183 \fBprinters.conf\fR(4), \fBattributes\fR(5), \fBstandards\fR(5)
190 Be mindful of the following if the LDAP database is used as the name service.
191 If the \fBldapclient\fR(1M) server is a replica LDAP server, LDAP printer
192 database updates may not appear immediately, as the replica server may not not
193 have been updated by the master server and can be out of sync. For example, a
194 printer that you deleted by using \fBlpset\fR(1M) may still appear in the
195 printer list you display with \fBlpget\fR until the replica is updated from the
196 master. Replica servers vary as to how often they are updated from the master.
197 Refer to the \fI\fR for more information on LDAP replication.