1print-service(1M) System Administration Commands print-service(1M)
2
3
4
6 print-service - select, report, import, export active print service on
7 a system
8
10 print-service [-s service [-m] | -q | -e file | -i file]
11
12
14 The print-service utility manages print service selection, as well as
15 export and import of basic print queue configuration.
16
17
18 Only a user root privileges or with the Printer Management profile can
19 change the active print service or import print queue configuration.
20
22 The following options are supported:
23
24 -s service
25
26 Select the active print service for on a host. service can be one
27 of lp or cups.
28
29
30 -m
31
32 Migrate print queue configuration during print service selection.
33
34
35 -q
36
37 Report the active print service on a host.
38
39
40 -e file
41
42 Export basic print queue configuration to a file.
43
44
45 -i file
46
47 Import basic print queue configuration from a file.
48
49
51 Example 1 Selecting a Print Service
52
53
54 The following command selects the CUPS print service as the active
55 print service on a host.
56
57
58 # print-service -s cups
59
60
61
62 Example 2 Reporting the Active Print Service
63
64
65 The following command reports the active print service on a host.
66
67
68 # print-service -q
69
70
71
72 Example 3 Exporting a Print Queue Configuration
73
74
75 The following command exports the print queue configuration from the
76 active print service.
77
78
79 # print-service -e /tmp/queues
80
81
82
83 Example 4 Importing a Print Queue Configuration
84
85
86 The following command imports the print queue configuration to the
87 active print service.
88
89
90 # print-service -i /tmp/queues
91
92
93
95 0
96
97 Successful completion.
98
99
100 non-zero
101
102 An error occurred.
103
104
106 See attributes(5) for descriptions of the following attributes:
107
108
109
110
111 ┌─────────────────────────────┬─────────────────────────────┐
112 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
113 ├─────────────────────────────┼─────────────────────────────┤
114 │Availability │SUNWpcu │
115 ├─────────────────────────────┼─────────────────────────────┤
116 │Interface Stability │Obsolete │
117 └─────────────────────────────┴─────────────────────────────┘
118
120 intro(1), attributes(5)
121
123 The print queue configuration saved and restored during export, import,
124 and migration is limited to queue name and device name. It is likely
125 that further configuration changes will be required before imported or
126 migrated print queues become usable.
127
128
129
130SunOS 5.11 18 Mar 2008 print-service(1M)