← 返回命令列表

Linux command

ipptool 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Get printer attributes

ipptool -tv [ipp://printer.local/ipp/print] get-printer-attributes.test

Run a test file

ipptool [ipp://printer.local/ipp/print] [test.ipp]

Submit a print job

ipptool -f [document.pdf] [ipp://printer.local/ipp/print] print-job.test

Test with verbose output

ipptool -tv [ipp://printer.local/ipp/print] [test.ipp]

Run conformance tests

ipptool -tIv [ipp://printer.local/ipp/print] ipp-everywhere.test

说明

ipptool is a versatile testing tool for IPP (Internet Printing Protocol) printers and servers. It sends IPP requests based on test files and validates responses, making it essential for printer conformance testing and debugging. Test files define IPP operations and expected responses using a simple text format. The tool comes with standard test files for common operations like getting printer attributes, submitting jobs, and IPP Everywhere conformance testing.

参数

-t
Generate CUPS-style test report output.
-v
Verbose mode; display every request and response attribute.
-q
Quiet mode; suppress the normal summary output.
-l
Produce plain-text (list) output rather than the default report.
-c
Produce comma-separated (CSV) output.
-X
Produce Apple plist XML output.
-P _FILE_
In addition to the normal report, write machine-readable plist XML results to _FILE_.
-f _FILENAME_
File to use as document data for print-job tests.
-d _name=value_
Define a variable for use in test files (may be repeated).
-I
Ignore errors and continue with the next test rather than aborting.
-S
Use encryption (TLS/SSL) when connecting to the printer.
-T _SECONDS_
Request timeout in seconds.
-V _VERSION_
IPP version to advertise (1.0, 1.1, 2.0, 2.1, 2.2).
-4, -6
Force IPv4 or IPv6 connections respectively.
-C
Use HTTP/1.1 chunked transfer encoding for requests.
--help
Display help information.

FAQ

What is the ipptool command used for?

ipptool is a versatile testing tool for IPP (Internet Printing Protocol) printers and servers. It sends IPP requests based on test files and validates responses, making it essential for printer conformance testing and debugging. Test files define IPP operations and expected responses using a simple text format. The tool comes with standard test files for common operations like getting printer attributes, submitting jobs, and IPP Everywhere conformance testing.

How do I run a basic ipptool example?

Run `ipptool -tv [ipp://printer.local/ipp/print] get-printer-attributes.test` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -t do in ipptool?

Generate CUPS-style test report output.