]> git.ipfire.org Git - thirdparty/cups.git/blame - man/ipptool.man
Merge changes from CUPS 1.5svn-r9352.
[thirdparty/cups.git] / man / ipptool.man
CommitLineData
aaf19ab0
MS
1.\"
2.\" "$Id$"
3.\"
4.\" ipptool man page for CUPS.
5.\"
6.\" Copyright 2010 by Apple Inc.
7.\"
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/".
13.\"
10d09e33 14.TH ipptool 1 "CUPS" "17 October 2010" "Apple Inc."
aaf19ab0
MS
15.SH NAME
16ipptool - perform internet printing protocol requests
17.SH SYNOPSIS
18.B ipptool
10d09e33
MS
19[ -C ] [ -E ] [ -I ] [ -L ] [ -S ] [ -T
20.I seconds
21] [ -V
aaf19ab0
MS
22.I version
23] [ -X ] [ -c ] [ -d
24.I name=value
25] [ -f
26.I filename
27] [ -i
28.I seconds
29] [ -n
30.I repeat-count
31] [ -q ] [ -t ] [ -v ]
32.I URI
33.I filename
34[
35.I ... filenameN
36]
37.SH DESCRIPTION
38\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.
39.SH OPTIONS
40The following options are recognized by \fIipptool\fR:
41.TP 5
42-C
43Specifies 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.
44.TP 5
45-E
46Forces TLS encryption when connecting to the server using the HTTP "Upgrade" header.
47.TP 5
030ae6a1
MS
48-I
49Specifies that \fIipptool\fR will continue past errors.
50.TP 5
aaf19ab0
MS
51-L
52Specifies 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.
53.TP 5
54-S
55Forces (dedicated) SSL encryption when connecting to the server.
56.TP 5
10d09e33
MS
57-T seconds
58Specifies a timeout for IPP requests in seconds.
59.TP 5
aaf19ab0
MS
60-V version
61Specifies 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.
62.TP 5
63-X
64Specifies 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.
65.TP 5
66-c
67Specifies that CSV (comma-separated values) output is desired instead of the plain text output.
68.TP 5
69-d name=value
70Defines the named variable.
71.TP 5
72-f filename
73Defines the default request filename for tests.
74.TP 5
75-i seconds
10d09e33 76Specifies 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
77.TP 5
78-l
79Specifies that plain text output is desired.
80.TP 5
81-n repeat-count
82Specifies 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.
83.TP 5
84-t
85Specifies that CUPS test report output is desired instead of the plain text output.
86.TP 5
87-v
88Specifies that all request and response attributes should be output in CUPS test mode (\fI-t\fR). This is the default for XML output.
89.SH COMPATIBILITY
90The \fIipptool\fR program is unique to CUPS.
91.SH EXAMPLES
92Get a list of completed jobs for "myprinter":
93.nf
94 ipptool ipp://localhost/printers/myprinter get-completed-jobs.test
95.fi
96.LP
97Send email notifications to "user@example.com" when "myprinter" changes:
98.nf
99 ipptool -d recipient=mailto:user@example.com \
100 ipp://localhost/printers/myprinter create-printer-subscription.test
101.fi
102.SH STANDARD FILES
103The following standard files are available:
104.nf
105 create-printer-subscription.test
106 get-completed-jobs.test
107 get-jobs.test
108 ipp-1.1.test
109 ipp-2.0.test
110 ipp-2.1.test
111 testfile.jpg
112 testfile.pdf
113 testfile.ps
114 testfile.txt
115.fi
116.SH SEE ALSO
117\fIipptoolfile(5)\fR,
118.br
119http://localhost:631/help
120.SH COPYRIGHT
121Copyright 2007-2010 by Apple Inc.
122.\"
123.\" End of "$Id$".
124.\"