1lpget(1M) System Administration Commands lpget(1M)
2
3
4
6 lpget - get printing configuration
7
9 lpget [-k key] [destination... | list]
10
11
13 The lpget utility reads printing configuration information from the
14 configuration databases in $HOME/.printers, /etc/printers.conf, print‐
15 ers.conf.byname, and printers.org_dir printer. This information, called
16 a configuration report, is displayed to the standard output. See print‐
17 ers(4) and printers.conf(4) for information about the printer configu‐
18 ration databases.
19
20
21 lpget displays a configuration report for all keys for the specified
22 destination or destinations by default. Use the -k option to display a
23 configuration report for specific keys. Use the list operand to display
24 a configuration report for all configured destinations.
25
27 The following option is supported:
28
29 -k key Displays a configuration report for key. See printers.conf(4)
30 for information about specifying key.
31
32
34 The following operands are supported:
35
36 destination Displays a configuration report for destination. Desti‐
37 nation can be either a printer of a class of printers.
38 See lpadmin(1M). Specify destination using atomic or
39 POSIX-style (server:destination) names. See print‐
40 ers.conf (4) for information regarding the naming con‐
41 ventions for atomic names and standards(5) for informa‐
42 tion concerning POSIX.
43
44
45 list Displays a configuration report for all configured des‐
46 tinations.
47
48
50 Example 1 Displaying a Configuration Report for the bsdaddr Key
51
52
53 The following example displays a configuration report for the bsdaddr
54 key for printer catalpa.
55
56
57 example% lpget -k bsdaddr catalpa
58
59
60
61 Example 2 A Configuration Report for all Keys for all Configured Desti‐
62 nations
63
64
65 The following example displays a configuration report for all keys for
66 all configured destinations.
67
68
69 example% lpget list
70
71
72
74 The following exit values are returned:
75
76 0 Successful completion.
77
78
79 non-zero An error occurred.
80
81
83 /etc/printers.conf System printer configuration database.
84
85
86 $HOME/.printers User-configurable printer database.
87
88
89 printers.conf.byname NIS version of /etc/printers.conf.
90
91
92 printers.org_dir NIS+ version of /etc/printers.conf.
93
94
96 See attributes(5) for descriptions of the following attributes:
97
98
99
100
101 ┌─────────────────────────────┬─────────────────────────────┐
102 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
103 ├─────────────────────────────┼─────────────────────────────┤
104 │Availability │SUNWpcu │
105 ├─────────────────────────────┼─────────────────────────────┤
106 │Stability Level │Stable │
107 └─────────────────────────────┴─────────────────────────────┘
108
110 ldap(1), lp(1), lpc(1B), lpq(1B), lpr(1B), lpstat(1), lpadmin [22m(1M),
111 lpset(1M), printers(4), printers.conf(4), attributes(5), standards(5)
112
113
114
115
117 Be mindful of the following if the LDAP database is used as the name
118 service. If the ldapclient(1M) server is a replica LDAP server, LDAP
119 printer database updates may not appear immediately, as the replica
120 server may not not have been updated by the master server and can be
121 out of sync. For example, a printer that you deleted by using lpset(1M)
122 may still appear in the printer list you display with lpget until the
123 replica is updated from the master. Replica servers vary as to how
124 often they are updated from the master. Refer to the for more informa‐
125 tion on LDAP replication.
126
127
128
129SunOS 5.11 23 May 2003 lpget(1M)