summaryrefslogtreecommitdiff
path: root/usr/src/man/man8/ppdmgr.8
blob: 35eb38badfbd4b5d9b895b658f725542e0826c4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
'\" te
.\"  Copyright (c) 2007 by 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]
.TH PPDMGR 8 "Mar 9, 2007"
.SH NAME
ppdmgr \- utility for managing PPD files
.SH SYNOPSIS
.LP
.nf
\fBppdmgr\fR \fB-a\fR \fIppd_filename_path\fR [\fB-L\fR \fIlabel\fR] [\fB-R\fR \fIppd_repository_name\fR] [\fB-w\fR]
.fi

.LP
.nf
\fBppdmgr\fR \fB-r\fR [\fB-L\fR \fIlabel\fR] [\fB-R\fR \fIppd_repository_name\fR]
.fi

.LP
.nf
\fBppdmgr\fR \fB-u\fR [\fB-L\fR \fIlabel\fR] [\fB-R\fR \fIppd_repository_name\fR]
.fi

.SH DESCRIPTION
.sp
.LP
The PPD File Manager adds PPD files to the print system's PPD file
repositories. When changes in the PPD file repositories are made by the
utility, they are reflected in the Solaris Print Manager (see
\fBprintmgr\fR(8)) GUI printer driver field when adding or modifying local
attached or network attached printers.
.sp
.LP
Multiple PPD file repositories may be available. PPD files that are supplied
with the system are available in the "\fBsystem\fR" repository. PPD files that
are supplied by third party vendors may be available in the "\fBvendor\fR"
repository. PPD files that are supplied by system administrators may be
available in the "\fBadmin\fR" repository, and PPD files that are added using
this utility are available in the "user" repository. When this utility is used
to update or rebuild printer information reflected in the \fBprintmgr\fR(8),
the special reserved repository name "\fBall\fR" can be used to specify all of
the available PPD file repositories.
.sp
.LP
PPD files are grouped under a user-provided "label" within the print system's
PPD file repository to allow easier selection of a printer driver through the
\fBprintmgr\fR GUI. The special reserved label name "\fBall\fR" can be used to
specify all of the available labels in a PPD file repository. The results are
undefined if a label name contains characters that are not in the portable
filename character set or if a label name starts with a hyphen (-). A label
name may not contain a semi-colon (:).
.SH OPTIONS
.sp
.LP
The following subcommand are supported:
.sp
.ne 2
.na
\fB\fB-a\fR \fIppd_file_path\fR\fR
.ad
.sp .6
.RS 4n
Adds a copy of \fIppd_file_path\fR to the system under the specified label in
the specified repository, where \fIppd_file_path\fR is the full path and file
name to the PPD file. The utility accepts a valid PPD file with either a
\fB\&.ppd\fR or \fB\&.ppd.gz\fR (gzipped) extension.
.RE

.sp
.ne 2
.na
\fB\fB-L\fR \fIlabel\fR\fR
.ad
.sp .6
.RS 4n
Specifies a label to group PPD files under. When specified with the \fB-a\fR
option, the default label is "\fBuser\fR". When specified with the \fB-r\fR or
\fB-u\fR option, the default label is "\fBall\fR". The following are reserved
labels:
.sp
.ne 2
.na
\fB\fBcaches\fR\fR
.ad
.RS 16n
may never be specified
.RE

.sp
.ne 2
.na
\fB\fBppdcache\fR\fR
.ad
.RS 16n
may never be specified
.RE

.sp
.ne 2
.na
\fB\fBmanufaliases\fR\fR
.ad
.RS 16n
may never be specified
.RE

.sp
.ne 2
.na
\fB\fBall\fR\fR
.ad
.RS 16n
applies the specified action to all labels in a repository, and may only be
specified with the \fB-r\fR or \fB-u\fR option.
.RE

.sp
.ne 2
.na
\fB\fBSUNW*\fR\fR
.ad
.RS 16n
anything starting with \fBSUNW\fR is reserved and should not be specified with
the \fB-a\fR option.
.RE

.RE

.sp
.ne 2
.na
\fB\fB-R\fR \fIrepository_name\fR\fR
.ad
.sp .6
.RS 4n
Specifies the name of a PPD file repository representing one of the PPD file
installation locations. Possible repository names include: "\fBuser\fR",
"\fBadmin\fR", "\fBvendor\fR", "\fBsystem\fR", and "\fBall\fR".
.sp
The repository name "\fBall\fR" signifies all of the possible repository names.
The default repository name is "\fBuser\fR". Only the "\fBuser\fR" or
"\fBadmin\fR" repository may be specified with the \fB-a\fR option.
.RE

.sp
.ne 2
.na
\fB\fB-r\fR\fR
.ad
.sp .6
.RS 4n
Rebuilds the cache information for the specified label in the specified
repository.
.RE

.sp
.ne 2
.na
\fB\fB-u\fR\fR
.ad
.sp .6
.RS 4n
Updates the cache information for the specified label in the specified
repository.
.RE

.sp
.ne 2
.na
\fB\fB-w\fR\fR
.ad
.sp .6
.RS 4n
Write the full path of the added PPD file. This option is only valid with the
\fB-a\fR option. Otherwise, this option is ignored.
.RE

.SH EXAMPLES
.LP
\fBExample 1 \fRAdding a copy of a PPD file to the repository
.sp
.LP
The following commands add a copy of a PPD file to the "\fBuser\fR" repository
under the "\fBuser\fR" label:

.sp
.in +2
.nf
# ppdmgr -a /net/somesystem/ppdfiles/ppdfile.ppd
.fi
.in -2
.sp

.sp
.LP
or

.sp
.in +2
.nf
# ppdmgr -a /net/somesystem/ppdfiles/ppdfile.ppd -L user
.fi
.in -2
.sp

.sp
.LP
The following command adds a copy of a PPD file to the "\fBuser\fR" repository
under the "\fBPhoto\fR" label and write the full path of the added copy to
standard output:

.sp
.in +2
.nf
# ppdmgr -a /net/somesystem/ppdfiles/ppdfile.ppd -L "Photo" -w
.fi
.in -2
.sp

.LP
\fBExample 2 \fRUpdating the cache for the PPD files
.sp
.LP
The following commands update the cache for the PPD files under the "\fBall\fR"
labels in the "\fBuser\fR" repository:

.sp
.in +2
.nf
 # ppdmgr -u
.fi
.in -2
.sp

.sp
.LP
or

.sp
.in +2
.nf
 # ppdmgr -u -R user -L all
.fi
.in -2
.sp

.sp
.LP
The following command updates the cache for the PPD files under the "photo"
label in the "\fBuser\fR" repository:

.sp
.in +2
.nf
 # ppdmgr -u -R user -L Photo
.fi
.in -2
.sp

.LP
\fBExample 3 \fRRebuilding the cache for the PPD files
.sp
.LP
The following command rebuilds the cache for the PPD files under the "Photo"
label in the "\fBuser\fR" repository:

.sp
.in +2
.nf
# ppdmgr -r -R user -L Photo
.fi
.in -2
.sp

.SH EXIT STATUS
.sp
.LP
The following exit values are returned:
.sp
.ne 2
.na
\fB\fB0\fR\fR
.ad
.RS 6n
Successful completion.
.RE

.sp
.ne 2
.na
\fB\fB>0\fR\fR
.ad
.RS 6n
An error occurred.
.RE

.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(7) for descriptions of the following attributes:
.sp

.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE	ATTRIBUTE VALUE
_
Interface Stability	Committed
.TE

.SH SEE ALSO
.sp
.LP
.BR attributes (7),
.BR printmgr (8)