1 IPPTOOL.txt - 2011-09-20
2 ------------------------
7 Starting with CUPS 1.5, CUPS now installs a user program called ipptool that
8 can be used to send arbitrary IPP requests to a CUPS server or IPP printer.
9 This tool started life as part of the CUPS automated test suite and has
10 grown to support complex conformance tests and a simple way to query
11 printer, job, and subscription attributes.
16 The ipptool command requires a printer URI and one or more "test" files that
17 describe the operations, attributes to display, and expected status and
18 attribute values. Several standard files are included with CUPS, for example
19 to show a list of pending print jobs on a CUPS printer called "myprinter"
22 ipptool ipp://localhost/printers/myprinter get-jobs.test
24 which would produce something like this:
26 job-id job-state job-name job-originating-user-name
27 ------ ------------ ------------ -------------------------
28 72 pending testfile.pdf msweet
29 73 pending testfile.ps msweet
30 74 pending-held testfile.jpg msweet
31 75 pending-held testfile.txt msweet
33 To get output suitable for import into a spreadsheet, use the "-c" (CSV)
36 ipptool -c ipp://localhost/printers/myprinter get-jobs.test
38 which will produce something like this:
40 job-id,job-state,job-name,job-originating-user-name
41 72,pending,testfile.pdf,msweet
42 73,pending,testfile.ps,msweet
43 74,pending-held,testfile.jpg,msweet
44 75,pending-held,testfile.txt,msweet
49 We provide basic IPP conformance tests for IPP/1.1, IPP/2.0, IPP/2.1, and
50 IPP/2.2. For a given printer URI, the following commands perform tests at
53 ipptool -tf filename [options] -I printer-uri ipp-1.1.test
54 ipptool -tf filename [options] -I -V 2.0 printer-uri ipp-2.0.test
55 ipptool -tf filename [options] -I -V 2.1 printer-uri ipp-2.1.test
56 ipptool -tf filename [options] -I -V 2.2 printer-uri ipp-2.2.test
58 The filename must use a format supported by the printer; ipptool will guess
59 the MIME media type using the extension, otherwise application/octet stream
60 will be used. The following standard test files are included:
73 Print-by-reference (URL) printing can be tested by defining the document-uri
74 variable to a URL, for example:
76 ipptool -tf filename -d document-uri=url -I printer-uri ipp-1.1.test
78 The standard test files are available on cups.org under the "test"
79 directory, for example:
81 http://www.cups.org/test/document-a4.pdf
83 The "document" test files contain 4 pages each. Doing the IPP conformance
84 tests will will produce up to 90 pages on various media, depending on the
88 READING THE DOCUMENTATION
90 The command usage is described in the ipptest(1) man page, while the file
91 format is described in the ipptestfile(5) man page.
94 GETTING SUPPORT AND OTHER RESOURCES
96 If you have problems, READ THE DOCUMENTATION FIRST! We also provide many
97 discussion forums which are available at:
99 http://www.cups.org/newsgroups.php
101 See the CUPS web site at "http://www.cups.org/" for other resources.
106 CUPS is Copyright 2007-2011 by Apple Inc. CUPS and the CUPS logo are
107 trademarks of Apple Inc.
109 The MD5 Digest code is Copyright 1999 Aladdin Enterprises.
111 This software is based in part on the work of the Independent JPEG Group.
113 CUPS is provided under the terms of version 2 of the GNU General Public
114 License and GNU Library General Public License. This program is distributed
115 in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
116 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
117 See the "doc/help/license.html" or "LICENSE.txt" files for more information.