1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
3 <!-- SECTION: Man Pages -->
5 <link rel=
"stylesheet" type=
"text/css" href=
"../cups-printable.css">
6 <title>ipptool(
1)
</title>
9 <h1 class=
"title">ipptool(
1)
</h1>
10 <h2 class=
"title"><a name=
"NAME">Name
</a></h2>
11 ipptool - perform internet printing protocol requests
12 <h2 class=
"title"><a name=
"SYNOPSIS">Synopsis
</a></h2>
14 </b>[ --help ] [ --stop-after-include-error ] [ --version ]
15 [ -
4 ] [ -
6 ] [ -C ] [ -E ] [ -I ] [ -L ] [ -S ] [ -T
19 </i>] [ -X ] [ -c ] [ -d
27 </i>] [ -q ] [ -t ] [ -v ]
33 <h2 class=
"title"><a name=
"DESCRIPTION">Description
</a></h2>
34 <i>ipptool
</i> 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
<a href='man-ipptoolfile.html?TOPIC=Man+Pages'
>ipptoolfile(
5)
</a>.
35 <h2 class=
"title"><a name=
"OPTIONS">Options
</a></h2>
36 The following options are recognized by
<i>ipptool
</i>:
40 <dd>Shows program help.
42 <dt>--stop-after-include-error
44 <dd>Tells
<i>ipptool
</i> to stop if an error occurs in an included file. Normally
<i>ipptool
</i> will continue with subsequent tests after the INCLUDE directive.
48 <dd>Shows the version of
<i>ipptool
</i> being used.
52 <dd>Specifies that
<i>ipptool
</i> must connect to the printer or server using IPv4.
56 <dd>Specifies that
<i>ipptool
</i> must connect to the printer or server using IPv6.
60 <dd>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. The default is to use
"Transfer-Encoding: chunked" for requests with attached files and
"Content-Length:" for requests without attached files.
64 <dd>Forces TLS encryption when connecting to the server using the HTTP
"Upgrade" header.
68 <dd>Specifies that
<i>ipptool
</i> will continue past errors.
72 <dd>Specifies 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.
76 <dd>Forces (dedicated) SSL encryption when connecting to the server.
80 <dd>Specifies a timeout for IPP requests in seconds.
84 <dd>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.
88 <dd>Specifies that XML (Apple plist) output is desired instead of the plain text report. This option is incompatible with the
<i>-i
</i> (interval) and
<i>-n
</i> (repeat-count) options.
92 <dd>Specifies that CSV (comma-separated values) output is desired instead of the plain text output.
96 <dd>Defines the named variable.
100 <dd>Defines the default request filename for tests.
104 <dd>Specifies that the (last) file should be repeated at the specified interval. This option is incompatible with the
<i>-X
</i> (XML plist output) option.
108 <dd>Specifies that plain text output is desired.
112 <dd>Specifies that the (last) file should be repeated the specified number of times. This option is incompatible with the
<i>-X
</i> (XML plist output) option.
116 <dd>Specifies that CUPS test report output is desired instead of the plain text output.
120 <dd>Specifies that all request and response attributes should be output in CUPS test mode (
<i>-t
</i>). This is the default for XML output.
123 <h2 class=
"title"><a name=
"EXIT_CODE">Exit Code
</a></h2>
124 The
<i>ipptool
</i> program returns
0 if all tests were sucessful and
1 otherwise.
125 <h2 class=
"title"><a name=
"COMPATIBILITY">Compatibility
</a></h2>
126 The
<i>ipptool
</i> program is unique to CUPS.
127 <h2 class=
"title"><a name=
"EXAMPLES">Examples
</a></h2>
128 Get a list of completed jobs for
"myprinter":
130 ipptool ipp://localhost/printers/myprinter get-completed-jobs.test
132 <p>Send email notifications to
"user@example.com" when
"myprinter" changes:
134 ipptool -d recipient=mailto:user@example.com
135 ipp://localhost/printers/myprinter create-printer-subscription.test
137 <h2 class=
"title"><a name=
"STANDARD_FILES">Standard Files
</a></h2>
138 The following standard files are available:
141 create-printer-subscription.test
146 get-completed-jobs.test
148 get-notifications.test
149 get-printer-attributes.test
150 get-subscriptions.test
162 print-job-deflate.test
171 <h2 class=
"title"><a name=
"SEE_ALSO">See Also
</a></h2>
172 <a href='man-ipptoolfile.html?TOPIC=Man+Pages'
>ipptoolfile(
5)
</a>, RFC
2911,
174 <a href='http://localhost:
631/help'
>http://localhost:
631/help
</a>
176 <a href='http://www.iana.org/assignments/ipp-registrations'
>http://www.iana.org/assignments/ipp-registrations
</a>
178 <a href='http://www.pwg.org/ipp'
>http://www.pwg.org/ipp
</a>
179 <h2 class=
"title"><a name=
"COPYRIGHT">Copyright
</a></h2>
180 Copyright
2007-
2014 by Apple Inc.