4 .\" Copyright © 2010-2021 by Apple Inc.
6 .\" Licensed under Apache License v2.0. See the file "LICENSE" for more
9 .TH ipptool 1 "CUPS" "5 April 2021" "Apple Inc."
11 ipptool \- perform internet printing protocol requests
20 .B \-\-stop\-after\-include\-error
79 sends IPP requests to the specified
81 and tests and/or displays the results.
84 defines one or more requests, including the expected response status, attributes, and values.
85 Output is either a plain text, formatted text, CSV, or XML report on the standard output, with a non-zero exit status indicating that one or more tests have failed.
88 format is described in
91 The following options are recognized by
97 \fB\-\-ippserver \fIfilename\fR
98 Specifies that the test results should be written to the named
102 .B \-\-stop-after-include-error
105 to stop if an error occurs in an included file. Normally
107 will continue with subsequent tests after the INCLUDE directive.
117 must connect to the printer or server using IPv4.
122 must connect to the printer or server using IPv6.
125 Specifies that requests should be sent using the HTTP/1.1 "Transfer\-Encoding: chunked" header, which is required for conformance by all versions of IPP.
126 The default is to use "Transfer\-Encoding: chunked" for requests with attached files and "Content\-Length:" for requests without attached files.
129 Forces TLS encryption when connecting to the server using the HTTP "Upgrade" header.
134 will continue past errors.
137 Specifies that requests should be sent using the HTTP/1.0 "Content\-Length:" header, which is required for conformance by all versions of IPP.
138 The default is to use "Transfer\-Encoding: chunked" for requests with attached files and "Content\-Length:" for requests without attached files.
140 .BI \-P \ filename.plist
141 Specifies that the test results should be written to the named XML (Apple plist) file in addition to the regular test report (\fB\-t\fR).
142 This option is incompatible with the \fB\-i\fR (interval) and \fB\-n\fR (repeat\-count) options.
145 Retries tests when the "server-error-busy" status code is returned.
148 Forces (dedicated) TLS encryption when connecting to the server.
151 Specifies a timeout for IPP requests in seconds.
154 Specifies 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.
157 Specifies that XML (Apple plist) output is desired instead of the plain text report.
158 This option is incompatible with the \fB\-i\fR (interval) and \fB\-n\fR (repeat\-count) options.
161 Specifies that CSV (comma\-separated values) output is desired instead of the plain text output.
164 Defines the named variable.
167 Defines the default request filename for tests.
170 Validate HTTP response headers.
173 Specifies that the (last)
175 should be repeated at the specified interval.
176 This option is incompatible with the \fB\-X\fR (XML plist output) option.
179 Specifies that plain text output is desired.
181 .BI \-n \ repeat\-count
182 Specifies that the (last)
184 should be repeated the specified number of times.
185 This option is incompatible with the \fI\-X\fR (XML plist output) option.
188 Be quiet and produce no output.
191 Specifies that CUPS test report output is desired instead of the plain text output.
194 Specifies that all request and response attributes should be output in CUPS test mode (\fB\-t\fR).
195 This is the default for XML output.
199 program returns 0 if all tests were successful and 1 otherwise.
201 The following standard files are available:
204 .I create\-printer\-subscription.test
207 .I document\-letter.pdf
208 .I document\-letter.ps
209 .I get\-completed\-jobs.test
211 .I get\-notifications.test
212 .I get\-printer\-attributes.test
213 .I get\-subscriptions.test
219 .I ipp\-everywhere.test
222 .I onepage\-letter.pdf
223 .I onepage\-letter.ps
225 .I print\-job\-deflate.test
226 .I print\-job\-gzip.test
232 .I validate\-job.test
237 program is unique to CUPS and conforms to the Internet Printing Protocol up to version 2.2.
239 Get a list of completed jobs for "myprinter":
242 ipptool ipp://localhost/printers/myprinter get\-completed\-jobs.test
245 Send email notifications to "user@example.com" when "myprinter" changes:
248 ipptool \-d recipient=mailto:user@example.com \\
249 ipp://localhost/printers/myprinter create\-printer\-subscription.test
253 IANA IPP Registry (http://www.iana.org/assignments/ipp\-registrations),
254 PWG Internet Printing Protocol Workgroup (http://www.pwg.org/ipp)
255 RFC 8011 (http://tools.ietf.org/html/rfc8011),
257 Copyright \[co] 2007-2021 by Apple Inc.