IPP Sample Software
Meanwhile the IPP Sample Software (which includes ipptool
mentioned above) is a separate project on Github. It is now under the auspices of the Printer Working Group (PWG), the body which standardized IPP (Internet Printing Protocol).
While the software currently still is in beta, is already very functional. It ships two main command line tools:
ippserver
. Start it (with the appropriate options) and you will have a fully-fledged IPP server instance on your network, serving as virtual IPP printer (or an IPP server hosting multiple virtual IPP queues) which you can use to test any (or your self-written) IPP client software against.
ipptool
. This is an IPP client program which can send any combination of IPP requests to any IPP instance on the network (CUPS server, ippserver
, IPP-capable printer hardware) and validate its responses. The software ships with a few prepared text files containing example IPP requests, all with a .test
suffix for their filenames.
For your purpose, you could run these commands:
ipptool -t -v ipp://xxx.xxx.xxx.xxx/ipp/print get-printer-attributes.test
.
This command will query any IPP printer about its supported IPP attributes.
This should include an item telling about its supposed IPP versions support.
For example reporting as ipp-versions-supported (1setOf keyword) = 1.0,1.1,2.0
.
ipptool -t -v ipp://xxx.xxx.xxx.xxx/ipp/print ipp-1.1.test
.
This command will run a complete validation suite against the printer to test for its real-world IPP-1.1 compliance.
ipptool -t -v ipp://xxx.xxx.xxx.xxx/ipp/print ipp-2.0.test
.
This command will run a complete validation suite against the printer to test for its real-world IPP-2.0 compliance.
ipptool -t -v ipp://xxx.xxx.xxx.xxx/ipp/print ipp-2.0.test
.
This command will run a complete validation suite against the printer to test for its real-world IPP-2.0 compliance.
ipptool -t -v ipp://xxx.xxx.xxx.xxx/ipp/print ipp-2.1.test
.
This command will run a complete validation suite against the printer to test for its real-world IPP-2.2 compliance.
ipptool -t -v ipp://xxx.xxx.xxx.xxx/ipp/print ipp-2.2.test
.
This command will run a complete validation suite against the printer to test for its real-world IPP-2.2 compliance.
ipptool -t -v ipp://xxx.xxx.xxx.xxx/ipp/print ipp-everywhere.test
.
This command will run a complete IPP Everywhere (which is the latest IPP Standard) validation suite against the printer to test for its real-world IPP Everywhere compliance.
AppImage of the IPP Sample Software
To make this type of testing easy for you guys, I created a ready-made executable AppImage from the IPP Sample software that should be able to directly run (no "installation" needed!) on all x86_64 Linux distros.
You can use it on (almost) any Linux system without having CUPS or ippsample installed!
The AppImage has embedded all the major executable command line tools of the IPP Sample Software project. These exacutables will run as 'sub-commands' of the AppImage. See further down for examples.
Download:
wget https://github.com/KurtPfeifle/ippsample/releases/download/continuous/ippsample-x86_64.AppImage
Make AppImage executable (and optionally rename it to ippsample
):
chmod a+x ippsample-x86_64.AppImage
mv ippsample-x86_64.AppImage ippsample
Have a look at its built-in help screen:
./ippsample --ai-usage
Run it:
./ippsample ipptool -t -v ipp://xxx.xxx.xxx.xxx/ipp/print ipp-2.0.test
Find all IPP-capable printers nearby:
./ippsample ippfind
will yield s.th. like:
ipp://HPA0B3CCF051B9.local:631/ipp/printer
ipp://lenjessie2.local:8444/ipp/print
ipp://mbp14.papercut-ipv4.local:631/printers/OJ6500
ipp://mbp14.papercut-ipv4.local:631/printers/libreoffice-pin-code-drucker
Pick one printer, print a job:
./ippsample ipptool \
-tv \
-f ./printjob.pdf \
ipp://HPA0B3CCF051B9.local:631/ipp/printer \
print-job.test
ASCIinema ASCIIcast
Here is an (older) ASCIinema ascii-cast acting as an illustration of what I wrote about and how to use the IPP Sample Software (and its AppImage):