]> git.ipfire.org Git - thirdparty/cups.git/blame - doc/help/man-ipptool.html
Merge pull request #1330 from weblate/weblate-cups-cups
[thirdparty/cups.git] / doc / help / man-ipptool.html
CommitLineData
cc7359ae 1<!DOCTYPE html>
a2326b5b 2<html>
cc7359ae 3 <head>
4e3aaa5e 4 <meta name="creator" content="mantohtml v2.0.2">
cc7359ae
MS
5 <title>ipptool(1)</title>
6 </head>
7 <body>
8 <h1 id="ipptool-1">ipptool(1)</h1>
9 <h2 id="ipptool-1.name">Name</h2>
10<p>ipptool - perform internet printing protocol requests
11</p>
12 <h2 id="ipptool-1.synopsis">Synopsis</h2>
13<p><strong>ipptool</strong>
6b13fa61 14[
cc7359ae 15<strong>--help</strong>
6b13fa61 16] [
fafb9504
MS
17<strong>--bearer-token</strong>
18<em>BEARER-TOKEN</em>
19] [
20<strong>--client-name</strong>
21<em>CLIENT-NAME</em>
22] [
2dad30d9
MS
23<strong>--ippfile</strong>
24<em>FILENAME</em>
dda99de9 25] [
cc7359ae 26<strong>--stop-after-include-error</strong>
6b13fa61 27] [
cc7359ae 28<strong>--version</strong>
6b13fa61 29] [
cc7359ae 30<strong>-4</strong>
6b13fa61 31] [
cc7359ae 32<strong>-6</strong>
6b13fa61 33] [
2dad30d9
MS
34<strong>-c</strong>
35] [
cc7359ae 36<strong>-C</strong>
6b13fa61 37] [
2dad30d9
MS
38<strong>-d</strong>
39<em>NAME=VALUE</em>
6b13fa61 40] [
2dad30d9 41<strong>-E</strong>
6b13fa61 42] [
2dad30d9
MS
43<strong>-f</strong>
44<em>FILENAME</em>
6b13fa61 45] [
2dad30d9 46<strong>-h</strong>
e639770b 47] [
2dad30d9
MS
48<strong>-i</strong>
49<em>SECONDS</em>
6b13fa61 50] [
2dad30d9 51<strong>-I</strong>
6b13fa61 52] [
2dad30d9 53<strong>-j</strong>
6b13fa61 54] [
2dad30d9 55<strong>-L</strong>
6b13fa61 56] [
2dad30d9
MS
57<strong>-n</strong>
58<em>REPEAT-COUNT</em>
6b13fa61 59] [
2dad30d9
MS
60<strong>-P</strong>
61<em>FILENAME.plist</em>
6b13fa61 62] [
2dad30d9 63<strong>-q</strong>
6b13fa61 64] [
2dad30d9 65<strong>-R</strong>
345e10ca 66] [
2dad30d9 67<strong>-S</strong>
6b13fa61 68] [
2dad30d9 69<strong>-t</strong>
4d6787bd 70] [
2dad30d9
MS
71<strong>-T</strong>
72<em>SECONDS</em>
6b13fa61 73] [
2dad30d9 74<strong>-v</strong>
6b13fa61 75] [
2dad30d9
MS
76<strong>-V</strong>
77<em>VERSION</em>
6b13fa61 78] [
2dad30d9
MS
79<strong>-X</strong>
80]
81<em>PRINTER-URI</em>
82<em>TESTFILE</em>
6b13fa61 83[ ...
2dad30d9 84<em>TESTFILE</em>
c277f98c 85]
cc7359ae
MS
86</p>
87 <h2 id="ipptool-1.description">Description</h2>
88<p><strong>ipptool</strong>
6b13fa61 89sends IPP requests to the specified
cc7359ae 90<em>printer-uri</em>
1deb86fd
MS
91and tests and/or displays the results.
92Each named
cc7359ae 93<em>testfile</em>
1deb86fd 94defines one or more requests, including the expected response status, attributes, and values.
2dad30d9 95Output is either a plain text, formatted text, CSV, JSON, or XML report on the standard output, with a non-zero exit status indicating that one or more tests have failed.
1deb86fd 96The
cc7359ae 97<em>testfile</em>
6b13fa61 98format is described in
4e3aaa5e 99<a href="ipptoolfile.html"><strong>ipptoolfile</strong>(5).</a>
cc7359ae
MS
100
101</p>
102 <h2 id="ipptool-1.options">Options</h2>
103<p>The following options are recognized by
104<strong>ipptool:</strong>
fafb9504
MS
105</p>
106 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--bearer-token </strong><em>BEARER-TOKEN</em><br>
107Specifies the OAuth 2.0 token to use for HTTP Bearer authentication (RFC 6750).
108</p>
3d16c7de 109 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--client-name </strong><em>CLIENT-NAME</em><br>
fafb9504
MS
110Specifies the client name to use for the TLS client certificate.
111If not specified, no client certificate is used during negotiation.
cc7359ae
MS
112</p>
113 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--help</strong><br>
114Shows program help.
115</p>
2dad30d9
MS
116 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--ippfile </strong><em>FILENAME</em><br>
117Specifies that the test results should be written to the named IPP file.
118These files can be used with programs like
4e3aaa5e 119<a href="ippeveprinter.html"><strong>ippeveprinter</strong>(1).</a>
2dad30d9 120
cc7359ae
MS
121</p>
122 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--stop-after-include-error</strong><br>
123Tells
124<strong>ipptool</strong>
6b13fa61 125to stop if an error occurs in an included file. Normally
cc7359ae 126<strong>ipptool</strong>
6b13fa61 127will continue with subsequent tests after the INCLUDE directive.
cc7359ae
MS
128</p>
129 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>--version</strong><br>
130Shows the version of
131<strong>ipptool</strong>
6b13fa61 132being used.
cc7359ae
MS
133</p>
134 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-4</strong><br>
135Specifies that
136<strong>ipptool</strong>
6b13fa61 137must connect to the printer or server using IPv4.
cc7359ae
MS
138</p>
139 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-6</strong><br>
140Specifies that
141<strong>ipptool</strong>
6b13fa61 142must connect to the printer or server using IPv6.
2dad30d9
MS
143</p>
144 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-c</strong><br>
145Specifies that CSV (comma-separated values) output is desired instead of the plain text output.
cc7359ae
MS
146</p>
147 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-C</strong><br>
148Specifies that requests should be sent using the HTTP/1.1 &quot;Transfer-Encoding: chunked&quot; header, which is required for conformance by all versions of IPP.
149The default is to use &quot;Transfer-Encoding: chunked&quot; for requests with attached files and &quot;Content-Length:&quot; for requests without attached files.
150</p>
2dad30d9 151 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-d</strong><em> NAME=VALUE</em>
cc7359ae
MS
152<br>
153Defines the named variable.
154</p>
2dad30d9
MS
155 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-E</strong><br>
156Forces TLS encryption when connecting to the server using the HTTP &quot;Upgrade&quot; header.
157</p>
158 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-f</strong><em> FILENAME</em>
cc7359ae
MS
159<br>
160Defines the default request filename for tests.
161</p>
162 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-h</strong><br>
163Validate HTTP response headers.
164</p>
2dad30d9 165 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-i</strong><em> SECONDS</em>
cc7359ae
MS
166<br>
167Specifies that the (last)
168<em>testfile</em>
1deb86fd 169should be repeated at the specified interval.
2dad30d9
MS
170This option is incompatible with the <strong>--ippfile</strong> (IPP file output) and <em>-P</em> or <strong>-X</strong> (XML plist output) options.
171</p>
172 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-I</strong><br>
173Specifies that
174<strong>ipptool</strong>
175will continue past errors.
cc7359ae
MS
176</p>
177 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-j</strong><br>
178Specifies that
179<strong>ipptool</strong>
4d6787bd 180will produce JSON output.
cc7359ae
MS
181</p>
182 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-l</strong><br>
183Specifies that plain text output is desired.
184</p>
2dad30d9
MS
185 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-L</strong><br>
186Specifies that requests should be sent using the HTTP/1.0 &quot;Content-Length:&quot; header, which is required for conformance by all versions of IPP.
187The default is to use &quot;Transfer-Encoding: chunked&quot; for requests with attached files and &quot;Content-Length:&quot; for requests without attached files.
188</p>
189 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-n</strong><em> REPEAT-COUNT</em>
cc7359ae
MS
190<br>
191Specifies that the (last)
192<em>testfile</em>
1deb86fd 193should be repeated the specified number of times.
2dad30d9
MS
194This option is incompatible with the <em>--ippfile</em> (IPP file output) and <em>-P</em> or <em>-X</em> (XML plist output) options.
195</p>
196 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-P</strong><em> FILENAME.plist</em>
197<br>
198Specifies that the test results should be written to the named XML (Apple plist) file in addition to the regular test report (<strong>-t</strong>).
199This option is incompatible with the <strong>-i</strong> (interval) and <strong>-n</strong> (repeat-count) options.
cc7359ae
MS
200</p>
201 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-q</strong><br>
202Be quiet and produce no output.
2dad30d9
MS
203</p>
204 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-S</strong><br>
205Forces (dedicated) TLS encryption when connecting to the server.
cc7359ae
MS
206</p>
207 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-t</strong><br>
208Specifies that CUPS test report output is desired instead of the plain text output.
2dad30d9
MS
209</p>
210 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-T</strong><em> SECONDS</em>
211<br>
212Specifies a timeout for IPP requests in SECONDS.
cc7359ae
MS
213</p>
214 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-v</strong><br>
215Specifies that all request and response attributes should be output in CUPS test mode (<strong>-t</strong>).
2dad30d9
MS
216This is the default for CSV, JSON, and XML output.
217</p>
218 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-V</strong><em> VERSION</em>
219<br>
220Specifies the default IPP version to use: 1.0, 1.1, 2.0, 2.1, or 2.2. If not specified, version 1.1 is used.
221</p>
222 <p style="margin-left: 2.5em; text-indent: -2.5em;"><strong>-X</strong><br>
223Specifies that XML (Apple plist) output is desired instead of the plain text report.
224This option is incompatible with the <strong>-i</strong> (interval) and <strong>-n</strong> (repeat-count) options.
cc7359ae
MS
225</p>
226 <h2 id="ipptool-1.exit-status">Exit Status</h2>
227<p>The
228<strong>ipptool</strong>
dd3fdd2c 229program returns 0 if all tests were successful and 1 otherwise.
cc7359ae
MS
230</p>
231 <h2 id="ipptool-1.files">Files</h2>
2dad30d9
MS
232<p>The following standard test files are available:
233</p>
234 <pre>
235 cancel-current-job.test - Cancel the current job
236 create-job.test - Create a job and send a document
237 create-job-sheets.test - &quot;&quot; with banner
238 create-job-timeout.test - &quot;&quot; with timeout
239 create-printer-subscription.test - Create a printer subscription
240 cups-create-local-printer.test - Create a local print queue
241 fax-job.test - Fax a file (for fax queues)
242 get-completed-jobs.test - Get a list of completed jobs
243 get-job-attributes.test - Get attributes for a job
244 get-job-template-attributes.test - Get job ticket attributes for a printer
245 get-jobs.test - Get a list of not-completed jobs
246 get-notifications.test - Get notifications for a subscription
247 get-printer-attributes.test - Get attributes for a printer
248 get-printer-attributes-suite.test - Test Get-Printer-Attributes conformance
249 get-printers.test - Get a list of printers
250 get-subscriptions.test - Get a list of subscriptions
251 identify-printer.test - Identify a printer
252 identify-printer-display.test - Identify a printer via the display
253 ipp-1.1.test - Run IPP/1.1 conformance tests
254 ipp-2.0.test - Run IPP/2.0 conformance tests
255 ipp-2.1.test - Run IPP/2.1 conformance tests
256 ipp-2.2.test - Run IPP/2.2 conformance tests
257 print-job.test - Print a file
258 print-job-and-wait.test - Print a file and wait for completion
259 print-job-deflate.test - Print a file with deflate compression
260 print-job-gzip.test - Print a file with gzip compression
261 print-job-hold.test - Print a file and hold
262 print-job-letter.test - Print a file on US Letter media
263 print-job-manual.test - Print a file with manual feed
264 print-job-media-col.test - Print a file using &quot;media-col&quot;
265 print-job-media-needed.test - Print a file and test for &quot;media-needed&quot;
266 print-job-password.test - Print a file with a password/PIN
267 print-job-raster.test - Print a generated raster file
268 print-uri.test - Print a URI/URL
269 set-attrs-hold.test - Test setting job-hold-until to hold a job
270 validate-job.test - Validate a job ticket
271</pre>
272 <p>The following standard document files are available:
cc7359ae
MS
273</p>
274 <pre>
2dad30d9
MS
275 color.jpg - A color photo of a flower
276 document-a4.pdf - A 4-page A4 PDF document
277 document-a4.ps - A 4-page A4 PostScript document
278 document-letter.pdf - A 4-page US Letter PDF document
279 document-letter.ps - A 4-page US Letter PostScript document
280 gray.jpg - A grayscale photo of an Alcatraz doorway
281 onepage-a4-300-black-1.pwg - A one page A4 PWG Raster document
282 onepage-a4.pdf - A one page A4 PDF document
283 onepage-a4.ps - A one page A4 PostScript document
284 onepage-letter-300-black-1.pwg - A one page US Letter PWG Raster document
285 onepage-letter.pdf - A one page US Letter PDF document
286 onepage-letter.ps - A one page US Letter PostScript document
287 testfile.jpg - A color photo collage
288 testfile.pcl - A HP-PCL homage to &quot;The Shining&quot;
289 testfile.pdf - A historical CUPS PDF document
290 testfile.ps - A historical CUPS PostScript document
291 testfile.txt - A plain text homage to &quot;The Shining&quot;
6b13fa61 292</pre>
cc7359ae
MS
293 <h2 id="ipptool-1.conforming-to">Conforming To</h2>
294<p>The
295<strong>ipptool</strong>
6b13fa61 296program is unique to CUPS and conforms to the Internet Printing Protocol up to version 2.2.
cc7359ae
MS
297</p>
298 <h2 id="ipptool-1.examples">Examples</h2>
299<p>Get a list of completed jobs for &quot;myprinter&quot;:
300</p>
301 <pre>
a2326b5b
MS
302 ipptool ipp://localhost/printers/myprinter get-completed-jobs.test
303</pre>
cc7359ae
MS
304 <p>Send email notifications to &quot;user@example.com&quot; when &quot;myprinter&quot; changes:
305</p>
306 <pre>
8e67b75b 307 ipptool -d recipient=mailto:user@example.com \
a2326b5b
MS
308 ipp://localhost/printers/myprinter create-printer-subscription.test
309</pre>
cc7359ae 310 <h2 id="ipptool-1.see-also">See Also</h2>
4e3aaa5e 311<a href="ipptoolfile.html"><p><strong>ipptoolfile</strong>(5),</a>
cc7359ae 312
4cdcda51 313IANA IPP Registry (<a href="https://www.iana.org/assignments/ipp-registrations">https://www.iana.org/assignments/ipp-registrations</a>),
2dad30d9
MS
314PWG Internet Printing Protocol Workgroup (<a href="https://www.pwg.org/ipp">https://www.pwg.org/ipp</a>),
315RFC 8011 (<a href="https://datatracker.ietf.org/doc/html/rfc8011">https://datatracker.ietf.org/doc/html/rfc8011</a>)
cc7359ae
MS
316</p>
317 <h2 id="ipptool-1.copyright">Copyright</h2>
76b6aade 318<p>Copyright &copy; 2021-2024 by OpenPrinting.
cc7359ae 319 </body>
a2326b5b 320</html>