]> git.ipfire.org Git - thirdparty/cups.git/blame - man/ipptool.man
Import CUPS v1.7.2
[thirdparty/cups.git] / man / ipptool.man
CommitLineData
aaf19ab0 1.\"
71f63681 2.\" "$Id: ipptool.man 11642 2014-02-27 15:57:59Z msweet $"
aaf19ab0 3.\"
71f63681 4.\" ipptool man page for CUPS.
aaf19ab0 5.\"
71f63681 6.\" Copyright 2010-2014 by Apple Inc.
aaf19ab0 7.\"
71f63681
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.\"
71f63681 14.TH ipptool 1 "CUPS" "20 February 2014" "Apple Inc."
aaf19ab0
MS
15.SH NAME
16ipptool - perform internet printing protocol requests
17.SH SYNOPSIS
18.B ipptool
9475ec92 19[ --help ] [ --stop-after-include-error ] [ --version ]
1106b00e 20[ -4 ] [ -6 ] [ -C ] [ -E ] [ -I ] [ -L ] [ -S ] [ -T
10d09e33
MS
21.I seconds
22] [ -V
aaf19ab0
MS
23.I version
24] [ -X ] [ -c ] [ -d
25.I name=value
26] [ -f
27.I filename
28] [ -i
29.I seconds
30] [ -n
31.I repeat-count
32] [ -q ] [ -t ] [ -v ]
33.I URI
34.I filename
35[
36.I ... filenameN
37]
38.SH DESCRIPTION
39\fIipptool\fR sends IPP requests to the specified URI and tests and/or displays the results. Each named file defines one or more requests, including the expected response status, attributes, and values. 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. The file format is described in \fIipptoolfile(5)\fR.
40.SH OPTIONS
41The following options are recognized by \fIipptool\fR:
42.TP 5
9475ec92
MS
43--help
44Shows program help.
71f63681 45.TP 5
9475ec92
MS
46--stop-after-include-error
47Tells \fIipptool\fR to stop if an error occurs in an included file. Normally \fIipptool\fR will continue with subsequent tests after the INCLUDE directive.
71f63681 48.TP 5
9475ec92
MS
49--version
50Shows the version of \fIipptool\fR being used.
51.TP 5
1106b00e
MS
52-4
53Specifies that \fIipptool\fR must connect to the printer or server using IPv4.
54.TP 5
55-6
56Specifies that \fIipptool\fR must connect to the printer or server using IPv6.
57.TP 5
aaf19ab0
MS
58-C
59Specifies that requests should be sent using the HTTP/1.1 "Transfer-Encoding: chunked" header, which is required for conformance by all versions of IPP. The default is to use "Transfer-Encoding: chunked" for requests with attached files and "Content-Length:" for requests without attached files.
60.TP 5
61-E
62Forces TLS encryption when connecting to the server using the HTTP "Upgrade" header.
63.TP 5
030ae6a1
MS
64-I
65Specifies that \fIipptool\fR will continue past errors.
66.TP 5
aaf19ab0
MS
67-L
68Specifies that requests should be sent using the HTTP/1.0 "Content-Length:" header, which is required for conformance by all versions of IPP. The default is to use "Transfer-Encoding: chunked" for requests with attached files and "Content-Length:" for requests without attached files.
69.TP 5
70-S
71Forces (dedicated) SSL encryption when connecting to the server.
72.TP 5
10d09e33
MS
73-T seconds
74Specifies a timeout for IPP requests in seconds.
75.TP 5
aaf19ab0
MS
76-V version
77Specifies 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.
78.TP 5
79-X
80Specifies that XML (Apple plist) output is desired instead of the plain text report. This option is incompatible with the \fI-i\fR (interval) and \fI-n\fR (repeat-count) options.
81.TP 5
82-c
83Specifies that CSV (comma-separated values) output is desired instead of the plain text output.
84.TP 5
85-d name=value
86Defines the named variable.
87.TP 5
88-f filename
89Defines the default request filename for tests.
90.TP 5
91-i seconds
10d09e33 92Specifies that the (last) file should be repeated at the specified interval. This option is incompatible with the \fI-X\fR (XML plist output) option.
aaf19ab0
MS
93.TP 5
94-l
95Specifies that plain text output is desired.
96.TP 5
97-n repeat-count
98Specifies that the (last) file should be repeated the specified number of times. This option is incompatible with the \fI-X\fR (XML plist output) option.
99.TP 5
100-t
101Specifies that CUPS test report output is desired instead of the plain text output.
102.TP 5
103-v
104Specifies that all request and response attributes should be output in CUPS test mode (\fI-t\fR). This is the default for XML output.
9475ec92
MS
105.SH EXIT CODE
106The \fIipptool\fR program returns 0 if all tests were sucessful and 1 otherwise.
aaf19ab0
MS
107.SH COMPATIBILITY
108The \fIipptool\fR program is unique to CUPS.
109.SH EXAMPLES
110Get a list of completed jobs for "myprinter":
111.nf
112 ipptool ipp://localhost/printers/myprinter get-completed-jobs.test
113.fi
114.LP
115Send email notifications to "user@example.com" when "myprinter" changes:
116.nf
117 ipptool -d recipient=mailto:user@example.com \
118 ipp://localhost/printers/myprinter create-printer-subscription.test
119.fi
120.SH STANDARD FILES
121The following standard files are available:
122.nf
f3c17241 123 color.jpg
aaf19ab0 124 create-printer-subscription.test
f3c17241
MS
125 document-a4.pdf
126 document-a4.ps
127 document-letter.pdf
128 document-letter.ps
aaf19ab0
MS
129 get-completed-jobs.test
130 get-jobs.test
9475ec92 131 get-notifications.test
f3c17241 132 get-printer-attributes.test
9475ec92 133 get-subscriptions.test
f3c17241 134 gray.jpg
aaf19ab0
MS
135 ipp-1.1.test
136 ipp-2.0.test
137 ipp-2.1.test
f3c17241 138 ipp-2.2.test
9475ec92 139 ipp-everywhere.test
f3c17241
MS
140 onepage-a4.pdf
141 onepage-a4.ps
142 onepage-letter.pdf
143 onepage-letter.ps
144 print-job.test
9475ec92
MS
145 print-job-deflate.test
146 print-job-gzip.test
aaf19ab0 147 testfile.jpg
9475ec92 148 testfile.pcl
aaf19ab0
MS
149 testfile.pdf
150 testfile.ps
151 testfile.txt
9475ec92 152 validate-job.test
aaf19ab0
MS
153.fi
154.SH SEE ALSO
71f63681 155\fIipptoolfile(5)\fR, RFC 2911,
aaf19ab0
MS
156.br
157http://localhost:631/help
71f63681
MS
158.br
159http://www.iana.org/assignments/ipp-registrations
160.br
161http://www.pwg.org/ipp
aaf19ab0 162.SH COPYRIGHT
71f63681 163Copyright 2007-2014 by Apple Inc.
aaf19ab0 164.\"
71f63681 165.\" End of "$Id: ipptool.man 11642 2014-02-27 15:57:59Z msweet $".
aaf19ab0 166.\"