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