lpget(1M)
NAME
lpget − get printing configuration
SYNOPSIS
lpget [ −k key ] [ destination ... | list ]
DESCRIPTION
The lpget utility reads printing configuration information from the configuration databases in /etc/printers.conf and $HOME/.printers and displays the information (called a configuration report) to the standard output. See printers(4) and printers.conf(4) 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 options are supported:
−k key Displays a configuration report for key. See printers.conf(4) 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(1M)). Specify destination using atomic, POSIX-style (server:destination), or Federated Naming Service (FNS) (.../service/printer/...) names. See printers.conf(4) for information regarding the naming conventions for atomic and FNS names, and standards(5) for information concerning POSIX.
list Displays a configuration report for all configured destinations.
EXAMPLES
The following example displays a configuration report for the bsdaddr key for printer catalpa.
example% lpget −k bsdaddr catalpa
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.
fns.ctx_dir.domain NIS+ version of /etc/printers.conf.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
| Availability | SUNWpcu |
| Stability Level | Stable |
SEE ALSO
lp(1), lpc(1B), lpq(1B), lpr(1B), lpstat(1), lpadmin(1M), lpset(1M), printers(4), printers.conf(4), attributes(5), standards(5)
SunOS 5.6 — Last change: 13 Mar 1997