xref: /illumos-gate/usr/src/man/man8/lpget.8 (revision 6446bd46ed1b4e9f69da153665f82181ccaedad5)
te
Copyright (C) 2003, Sun Microsystems, Inc. All Rights Reserved
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.
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.
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]
LPGET 8 "Feb 25, 2017"
NAME
lpget - get printing configuration
SYNOPSIS

lpget [-k key] [destination... | list]
DESCRIPTION

The lpget utility reads printing configuration information from the configuration databases in $HOME/.printers, /etc/printers.conf, and printers.conf.byname. This information, called a configuration report, is displayed to the standard output. See printers(5) and printers.conf(5) for information about the printer configuration databases.

lpget displays a configuration report for all keys for the specified destination or destinations by default. Use the -k option to display a configuration report for specific keys. Use the list operand to display a configuration report for all configured destinations.

OPTIONS

The following option is supported: -k key

Displays a configuration report for key. See printers.conf(5) for information about specifying key.

OPERANDS

The following operands are supported: destination

Displays a configuration report for destination. Destination can be either a printer of a class of printers. See lpadmin(8). Specify destination using atomic or POSIX-style (server:destination) names. See printers.conf(5) for information regarding the naming conventions for atomic names and standards(7) for information concerning POSIX.

list

Displays a configuration report for all configured destinations.

EXAMPLES

Example 1 Displaying a Configuration Report for the bsdaddr Key

The following example displays a configuration report for the bsdaddr key for printer catalpa.

example% lpget -k bsdaddr catalpa

Example 2 A Configuration Report for all Keys for all Configured Destinations

The following example displays a configuration report for all keys for all configured destinations.

example% lpget list
EXIT STATUS

The following exit values are returned: 0

Successful completion.

non-zero

An error occurred.

FILES
/etc/printers.conf

System printer configuration database.

$HOME/.printers

User-configurable printer database.

printers.conf.byname

NIS version of /etc/printers.conf.

ATTRIBUTES

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE ATTRIBUTE VALUE
Stability Level Stable
SEE ALSO

ldap (1), lp (1), lpstat (1), lpc (1B), lpq (1B), lpr (1B), printers (5), printers.conf (5), attributes (7), standards (7), lpadmin (8), lpset (8)

NOTES

Be mindful of the following if the LDAP database is used as the name service. If the ldapclient(8) server is a replica LDAP server, LDAP printer database updates may not appear immediately, as the replica server may not not have been updated by the master server and can be out of sync. For example, a printer that you deleted by using lpset(8) may still appear in the printer list you display with lpget until the replica is updated from the master. Replica servers vary as to how often they are updated from the master. Refer to the for more information on LDAP replication.