]> git.ipfire.org Git - thirdparty/cups.git/blame - man/ipptool.man
Add support for writing ippserver attributes files from ipptool (Issue #5093)
[thirdparty/cups.git] / man / ipptool.man
CommitLineData
aaf19ab0 1.\"
f1dd3a39 2.\" ipptool man page.
aaf19ab0 3.\"
f1dd3a39 4.\" Copyright 2010-2017 by Apple Inc.
aaf19ab0 5.\"
3a43047f
MS
6.\" These coded instructions, statements, and computer programs are the
7.\" property of Apple Inc. and are protected by Federal copyright
8.\" law. Distribution and use rights are outlined in the file "LICENSE.txt"
9.\" which should have been included with this file. If this file is
10.\" file is missing or damaged, see the license at "http://www.cups.org/".
aaf19ab0 11.\"
6646208b 12.TH ipptool 1 "CUPS" "1 November 2017" "Apple Inc."
aaf19ab0 13.SH NAME
6b13fa61 14ipptool \- perform internet printing protocol requests
aaf19ab0
MS
15.SH SYNOPSIS
16.B ipptool
6b13fa61
MS
17[
18.B \-\-help
19] [
6646208b
MS
20.BI \-\-ippserver filename
21] [
6b13fa61
MS
22.B \-\-stop\-after\-include\-error
23] [
24.B \-\-version
25] [
26.B \-4
27] [
28.B \-6
29] [
30.B \-C
31] [
32.B \-E
33] [
34.B \-I
35] [
36.B \-L
37] [
9fcdd250
MS
38.B \-P
39.I filename.plist
40] [
6b13fa61
MS
41.B \-S
42] [
43.B \-T
10d09e33 44.I seconds
6b13fa61
MS
45] [
46.B \-V
aaf19ab0 47.I version
6b13fa61
MS
48] [
49.B \-X
50] [
51.B \-c
52] [
53.B \-d
aaf19ab0 54.I name=value
6b13fa61
MS
55] [
56.B \-f
aaf19ab0 57.I filename
6b13fa61 58] [
345e10ca
MS
59.B \-h
60] [
6b13fa61 61.B \-i
aaf19ab0 62.I seconds
6b13fa61
MS
63] [
64.B \-n
aaf19ab0 65.I repeat-count
6b13fa61
MS
66] [
67.B \-q
68] [
69.B \-t
70] [
71.B \-v ]
72.I printer-uri
73.I testfile
74[ ...
75.I testfile
aaf19ab0
MS
76]
77.SH DESCRIPTION
6b13fa61
MS
78.B ipptool
79sends IPP requests to the specified
80.I printer-uri
1deb86fd
MS
81and tests and/or displays the results.
82Each named
6b13fa61 83.I testfile
1deb86fd
MS
84defines one or more requests, including the expected response status, attributes, and values.
85Output 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.
86The
6b13fa61
MS
87.I testfile
88format is described in
89.BR ipptoolfile (5).
aaf19ab0 90.SH OPTIONS
6b13fa61
MS
91The following options are recognized by
92.B ipptool:
aaf19ab0 93.TP 5
6b13fa61 94.B \-\-help
9475ec92 95Shows program help.
3a43047f 96.TP 5
6646208b
MS
97-BI \-\-ippserver filename
98Specifies that the test results should be written to the named
99.B ippserver
100attributes file.
101.TP 5
6b13fa61
MS
102.B \-\-stop-after-include-error
103Tells
104.B ipptool
105to stop if an error occurs in an included file. Normally
106.B ipptool
107will continue with subsequent tests after the INCLUDE directive.
3a43047f 108.TP 5
6b13fa61
MS
109.B \-\-version
110Shows the version of
111.B ipptool
112being used.
9475ec92 113.TP 5
6b13fa61
MS
114.B \-4
115Specifies that
116.B ipptool
117must connect to the printer or server using IPv4.
1106b00e 118.TP 5
6b13fa61
MS
119.B \-6
120Specifies that
121.B ipptool
122must connect to the printer or server using IPv6.
1106b00e 123.TP 5
6b13fa61 124.B \-C
1deb86fd
MS
125Specifies that requests should be sent using the HTTP/1.1 "Transfer\-Encoding: chunked" header, which is required for conformance by all versions of IPP.
126The default is to use "Transfer\-Encoding: chunked" for requests with attached files and "Content\-Length:" for requests without attached files.
aaf19ab0 127.TP 5
6b13fa61 128.B \-E
aaf19ab0
MS
129Forces TLS encryption when connecting to the server using the HTTP "Upgrade" header.
130.TP 5
6b13fa61
MS
131.B \-I
132Specifies that
133.B ipptool
134will continue past errors.
030ae6a1 135.TP 5
6b13fa61 136.B \-L
1deb86fd
MS
137Specifies that requests should be sent using the HTTP/1.0 "Content\-Length:" header, which is required for conformance by all versions of IPP.
138The default is to use "Transfer\-Encoding: chunked" for requests with attached files and "Content\-Length:" for requests without attached files.
aaf19ab0 139.TP 5
9fcdd250 140.BI \-P \ filename.plist
1deb86fd
MS
141Specifies that the test results should be written to the named XML (Apple plist) file in addition to the regular test report (\fB\-t\fR).
142This option is incompatible with the \fB\-i\fR (interval) and \fB\-n\fR (repeat\-count) options.
9fcdd250 143.TP 5
6b13fa61
MS
144.B \-S
145Forces (dedicated) TLS encryption when connecting to the server.
aaf19ab0 146.TP 5
6b13fa61 147.BI \-T \ seconds
10d09e33
MS
148Specifies a timeout for IPP requests in seconds.
149.TP 5
6b13fa61 150.BI \-V \ version
aaf19ab0
MS
151Specifies 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.
152.TP 5
6b13fa61 153.B \-X
1deb86fd
MS
154Specifies that XML (Apple plist) output is desired instead of the plain text report.
155This option is incompatible with the \fB\-i\fR (interval) and \fB\-n\fR (repeat\-count) options.
aaf19ab0 156.TP 5
6b13fa61
MS
157.B \-c
158Specifies that CSV (comma\-separated values) output is desired instead of the plain text output.
aaf19ab0 159.TP 5
6b13fa61 160.BI \-d \ name=value
aaf19ab0
MS
161Defines the named variable.
162.TP 5
6b13fa61 163.BI \-f \ filename
aaf19ab0
MS
164Defines the default request filename for tests.
165.TP 5
345e10ca
MS
166.B \-h
167Validate HTTP response headers.
168.TP 5
6b13fa61
MS
169.BI \-i \ seconds
170Specifies that the (last)
171.I testfile
1deb86fd
MS
172should be repeated at the specified interval.
173This option is incompatible with the \fB\-X\fR (XML plist output) option.
aaf19ab0 174.TP 5
6b13fa61 175.B \-l
aaf19ab0
MS
176Specifies that plain text output is desired.
177.TP 5
6b13fa61
MS
178.BI \-n \ repeat\-count
179Specifies that the (last)
180.I testfile
1deb86fd
MS
181should be repeated the specified number of times.
182This option is incompatible with the \fI\-X\fR (XML plist output) option.
183.TP 5
184.B \-q
185Be quiet and produce no output.
aaf19ab0 186.TP 5
6b13fa61 187.B \-t
aaf19ab0
MS
188Specifies that CUPS test report output is desired instead of the plain text output.
189.TP 5
6b13fa61 190.B \-v
1deb86fd
MS
191Specifies that all request and response attributes should be output in CUPS test mode (\fB\-t\fR).
192This is the default for XML output.
6b13fa61
MS
193.SH EXIT STATUS
194The
195.B ipptool
dd3fdd2c 196program returns 0 if all tests were successful and 1 otherwise.
6b13fa61
MS
197.SH FILES
198The following standard files are available:
199.nf
200.I color.jpg
201.I create\-printer\-subscription.test
202.I document\-a4.pdf
203.I document\-a4.ps
204.I document\-letter.pdf
205.I document\-letter.ps
206.I get\-completed\-jobs.test
207.I get\-jobs.test
208.I get\-notifications.test
209.I get\-printer\-attributes.test
210.I get\-subscriptions.test
211.I gray.jpg
212.I ipp\-1.1.test
213.I ipp\-2.0.test
214.I ipp\-2.1.test
215.I ipp\-2.2.test
216.I ipp\-everywhere.test
217.I onepage\-a4.pdf
218.I onepage\-a4.ps
219.I onepage\-letter.pdf
220.I onepage\-letter.ps
221.I print\-job.test
222.I print\-job\-deflate.test
223.I print\-job\-gzip.test
224.I testfile.jpg
225.I testfile.pcl
226.I testfile.pdf
227.I testfile.ps
228.I testfile.txt
229.I validate\-job.test
230.fi
231.SH CONFORMING TO
232The
233.B ipptool
234program is unique to CUPS and conforms to the Internet Printing Protocol up to version 2.2.
aaf19ab0
MS
235.SH EXAMPLES
236Get a list of completed jobs for "myprinter":
237.nf
4c6277cc 238
6b13fa61 239 ipptool ipp://localhost/printers/myprinter get\-completed\-jobs.test
aaf19ab0
MS
240.fi
241.LP
242Send email notifications to "user@example.com" when "myprinter" changes:
243.nf
4c6277cc 244
6b13fa61
MS
245 ipptool \-d recipient=mailto:user@example.com \\
246 ipp://localhost/printers/myprinter create\-printer\-subscription.test
aaf19ab0
MS
247.fi
248.SH SEE ALSO
6b13fa61 249.BR ipptoolfile (5),
6b13fa61
MS
250IANA IPP Registry (http://www.iana.org/assignments/ipp\-registrations),
251PWG Internet Printing Protocol Workgroup (http://www.pwg.org/ipp)
f1dd3a39 252RFC 8011 (http://tools.ietf.org/html/rfc8011),
aaf19ab0 253.SH COPYRIGHT
bd5a2f28 254Copyright \[co] 2007-2017 by Apple Inc.