Testing IPP Printing with ipptool











up vote
3
down vote

favorite
1












I'm trying to send an IPP print job using the ipptool. Using the sample .test files, I can send commands to the printer, but I am unable to successfully use the print-job.test file.



Here's an example using ipptool.



c:...>ipptool -v ipp://name.local.:631/ipp/printer print-job.test
ipptool: Filename "$filename" on line 21 cannot be read.
ipptool: Filename mapped to "".


It looks like it's failing resolving the variable $filename within the test file so I attempted to hardcode this value in the test file. In this case I get no error, but still no print.



Does anybody have any experience using ipptool to test ipp printing?










share|improve this question


























    up vote
    3
    down vote

    favorite
    1












    I'm trying to send an IPP print job using the ipptool. Using the sample .test files, I can send commands to the printer, but I am unable to successfully use the print-job.test file.



    Here's an example using ipptool.



    c:...>ipptool -v ipp://name.local.:631/ipp/printer print-job.test
    ipptool: Filename "$filename" on line 21 cannot be read.
    ipptool: Filename mapped to "".


    It looks like it's failing resolving the variable $filename within the test file so I attempted to hardcode this value in the test file. In this case I get no error, but still no print.



    Does anybody have any experience using ipptool to test ipp printing?










    share|improve this question
























      up vote
      3
      down vote

      favorite
      1









      up vote
      3
      down vote

      favorite
      1






      1





      I'm trying to send an IPP print job using the ipptool. Using the sample .test files, I can send commands to the printer, but I am unable to successfully use the print-job.test file.



      Here's an example using ipptool.



      c:...>ipptool -v ipp://name.local.:631/ipp/printer print-job.test
      ipptool: Filename "$filename" on line 21 cannot be read.
      ipptool: Filename mapped to "".


      It looks like it's failing resolving the variable $filename within the test file so I attempted to hardcode this value in the test file. In this case I get no error, but still no print.



      Does anybody have any experience using ipptool to test ipp printing?










      share|improve this question













      I'm trying to send an IPP print job using the ipptool. Using the sample .test files, I can send commands to the printer, but I am unable to successfully use the print-job.test file.



      Here's an example using ipptool.



      c:...>ipptool -v ipp://name.local.:631/ipp/printer print-job.test
      ipptool: Filename "$filename" on line 21 cannot be read.
      ipptool: Filename mapped to "".


      It looks like it's failing resolving the variable $filename within the test file so I attempted to hardcode this value in the test file. In this case I get no error, but still no print.



      Does anybody have any experience using ipptool to test ipp printing?







      printer printing network-printer cups






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 29 '13 at 20:12









      senloe

      173129




      173129






















          4 Answers
          4






          active

          oldest

          votes

















          up vote
          1
          down vote













          Try this line:



          c:...>ipptool -vt -f [name of your URF file] ipp://name.local.:631/ipp/printer print-job.test


          and have the URF file in the same location as your .test file. Also, it is recommended to have the ipptool in the same location as well.






          share|improve this answer






























            up vote
            1
            down vote













            Edit a copy of your print-job.test file and save it as senloe---print-job.test.



            Your edit should replace the variables in the following two lines with hard-coded values:



            ATTR mimeMediaType document-format $filetype
            FILE $filename


            Replace them, for example with:



            ATTR mimeMediaType document-format text/plain
            FILE senloe---print-job.test


            This should send your file senloe---print-job.test as a plain text file to printers.



            You'll need to use the following command line (assuming you have CUPS installed locally):



            ipptool -v -t ipp://localhost:631/printers/your-real-printername 
            ./senloe---print-job.test


            You should see something like the following output:



            "./senloe---print-job.test":
            Print-Job:
            attributes-charset (charset) = utf-8
            attributes-natural-language (naturalLanguage) = en
            printer-uri (uri) = ipp://localhost:631/printers/ubuquitech
            requesting-user-name (nameWithoutLanguage) = senloe
            document-format (mimeMediaType) = text/plain
            copies (integer) = 1
            Print file using Print-Job [PASS]
            RECEIVED: 171 bytes in response
            status-code = successful-ok (successful-ok)
            attributes-charset (charset) = utf-8
            attributes-natural-language (naturalLanguage) = en
            job-uri (uri) = ipp://localhost:631/jobs/24
            job-id (integer) = 24
            job-state (enum) = pending
            job-state-reasons (keyword) = none


            If this works, the following should also work, now using the original test file print-job.test (which contains the variables) again, and using your edited senloe---print-job.test as the file to be printed:



            ipptool -v -t -f senloe---print-job.test                  
            ipp://localhost:631/printers/your-real-printername
            ./print-job.test





            share|improve this answer






























              up vote
              0
              down vote













              ipptool -v -tf /path/to/your.pdf  -d filetype=application/octet-stream -I http://printer-url/ipp /usr/share/cups/ipptool/print-job.test





              share|improve this answer





















              • You could add some explanations.
                – Toto
                Feb 12 at 19:22


















              up vote
              0
              down vote













              A while ago I created an AppImage of the IPP Sample Software which now includes not only ipptool, but also ippserver which can emulate a virtual IPP Printer in your local network.




              • To download, visit: https://github.com/KurtPfeifle/ippsample/releases

              • Here is the direct link to the IPP Sample Software AppImage


              (What's an AppImage? That is the package of a software consisting of multiple files -- even multiple different tools, apps or utilities -- bundled into a single compressed file. Just make it executable and run it from any location, on any Linux x86_64 distro.)



              I also created an ASCIInema movie which demonstrates the usage of the ippsample bundle and the usage of ipptool:



              asciicast






              share|improve this answer























                Your Answer








                StackExchange.ready(function() {
                var channelOptions = {
                tags: "".split(" "),
                id: "3"
                };
                initTagRenderer("".split(" "), "".split(" "), channelOptions);

                StackExchange.using("externalEditor", function() {
                // Have to fire editor after snippets, if snippets enabled
                if (StackExchange.settings.snippets.snippetsEnabled) {
                StackExchange.using("snippets", function() {
                createEditor();
                });
                }
                else {
                createEditor();
                }
                });

                function createEditor() {
                StackExchange.prepareEditor({
                heartbeatType: 'answer',
                autoActivateHeartbeat: false,
                convertImagesToLinks: true,
                noModals: true,
                showLowRepImageUploadWarning: true,
                reputationToPostImages: 10,
                bindNavPrevention: true,
                postfix: "",
                imageUploader: {
                brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                allowUrls: true
                },
                onDemand: true,
                discardSelector: ".discard-answer"
                ,immediatelyShowMarkdownHelp:true
                });


                }
                });














                draft saved

                draft discarded


















                StackExchange.ready(
                function () {
                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f667068%2ftesting-ipp-printing-with-ipptool%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown

























                4 Answers
                4






                active

                oldest

                votes








                4 Answers
                4






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes








                up vote
                1
                down vote













                Try this line:



                c:...>ipptool -vt -f [name of your URF file] ipp://name.local.:631/ipp/printer print-job.test


                and have the URF file in the same location as your .test file. Also, it is recommended to have the ipptool in the same location as well.






                share|improve this answer



























                  up vote
                  1
                  down vote













                  Try this line:



                  c:...>ipptool -vt -f [name of your URF file] ipp://name.local.:631/ipp/printer print-job.test


                  and have the URF file in the same location as your .test file. Also, it is recommended to have the ipptool in the same location as well.






                  share|improve this answer

























                    up vote
                    1
                    down vote










                    up vote
                    1
                    down vote









                    Try this line:



                    c:...>ipptool -vt -f [name of your URF file] ipp://name.local.:631/ipp/printer print-job.test


                    and have the URF file in the same location as your .test file. Also, it is recommended to have the ipptool in the same location as well.






                    share|improve this answer














                    Try this line:



                    c:...>ipptool -vt -f [name of your URF file] ipp://name.local.:631/ipp/printer print-job.test


                    and have the URF file in the same location as your .test file. Also, it is recommended to have the ipptool in the same location as well.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited May 28 '14 at 3:17









                    Kevin Panko

                    5,819113648




                    5,819113648










                    answered May 28 '14 at 1:30









                    Kim

                    111




                    111
























                        up vote
                        1
                        down vote













                        Edit a copy of your print-job.test file and save it as senloe---print-job.test.



                        Your edit should replace the variables in the following two lines with hard-coded values:



                        ATTR mimeMediaType document-format $filetype
                        FILE $filename


                        Replace them, for example with:



                        ATTR mimeMediaType document-format text/plain
                        FILE senloe---print-job.test


                        This should send your file senloe---print-job.test as a plain text file to printers.



                        You'll need to use the following command line (assuming you have CUPS installed locally):



                        ipptool -v -t ipp://localhost:631/printers/your-real-printername 
                        ./senloe---print-job.test


                        You should see something like the following output:



                        "./senloe---print-job.test":
                        Print-Job:
                        attributes-charset (charset) = utf-8
                        attributes-natural-language (naturalLanguage) = en
                        printer-uri (uri) = ipp://localhost:631/printers/ubuquitech
                        requesting-user-name (nameWithoutLanguage) = senloe
                        document-format (mimeMediaType) = text/plain
                        copies (integer) = 1
                        Print file using Print-Job [PASS]
                        RECEIVED: 171 bytes in response
                        status-code = successful-ok (successful-ok)
                        attributes-charset (charset) = utf-8
                        attributes-natural-language (naturalLanguage) = en
                        job-uri (uri) = ipp://localhost:631/jobs/24
                        job-id (integer) = 24
                        job-state (enum) = pending
                        job-state-reasons (keyword) = none


                        If this works, the following should also work, now using the original test file print-job.test (which contains the variables) again, and using your edited senloe---print-job.test as the file to be printed:



                        ipptool -v -t -f senloe---print-job.test                  
                        ipp://localhost:631/printers/your-real-printername
                        ./print-job.test





                        share|improve this answer



























                          up vote
                          1
                          down vote













                          Edit a copy of your print-job.test file and save it as senloe---print-job.test.



                          Your edit should replace the variables in the following two lines with hard-coded values:



                          ATTR mimeMediaType document-format $filetype
                          FILE $filename


                          Replace them, for example with:



                          ATTR mimeMediaType document-format text/plain
                          FILE senloe---print-job.test


                          This should send your file senloe---print-job.test as a plain text file to printers.



                          You'll need to use the following command line (assuming you have CUPS installed locally):



                          ipptool -v -t ipp://localhost:631/printers/your-real-printername 
                          ./senloe---print-job.test


                          You should see something like the following output:



                          "./senloe---print-job.test":
                          Print-Job:
                          attributes-charset (charset) = utf-8
                          attributes-natural-language (naturalLanguage) = en
                          printer-uri (uri) = ipp://localhost:631/printers/ubuquitech
                          requesting-user-name (nameWithoutLanguage) = senloe
                          document-format (mimeMediaType) = text/plain
                          copies (integer) = 1
                          Print file using Print-Job [PASS]
                          RECEIVED: 171 bytes in response
                          status-code = successful-ok (successful-ok)
                          attributes-charset (charset) = utf-8
                          attributes-natural-language (naturalLanguage) = en
                          job-uri (uri) = ipp://localhost:631/jobs/24
                          job-id (integer) = 24
                          job-state (enum) = pending
                          job-state-reasons (keyword) = none


                          If this works, the following should also work, now using the original test file print-job.test (which contains the variables) again, and using your edited senloe---print-job.test as the file to be printed:



                          ipptool -v -t -f senloe---print-job.test                  
                          ipp://localhost:631/printers/your-real-printername
                          ./print-job.test





                          share|improve this answer

























                            up vote
                            1
                            down vote










                            up vote
                            1
                            down vote









                            Edit a copy of your print-job.test file and save it as senloe---print-job.test.



                            Your edit should replace the variables in the following two lines with hard-coded values:



                            ATTR mimeMediaType document-format $filetype
                            FILE $filename


                            Replace them, for example with:



                            ATTR mimeMediaType document-format text/plain
                            FILE senloe---print-job.test


                            This should send your file senloe---print-job.test as a plain text file to printers.



                            You'll need to use the following command line (assuming you have CUPS installed locally):



                            ipptool -v -t ipp://localhost:631/printers/your-real-printername 
                            ./senloe---print-job.test


                            You should see something like the following output:



                            "./senloe---print-job.test":
                            Print-Job:
                            attributes-charset (charset) = utf-8
                            attributes-natural-language (naturalLanguage) = en
                            printer-uri (uri) = ipp://localhost:631/printers/ubuquitech
                            requesting-user-name (nameWithoutLanguage) = senloe
                            document-format (mimeMediaType) = text/plain
                            copies (integer) = 1
                            Print file using Print-Job [PASS]
                            RECEIVED: 171 bytes in response
                            status-code = successful-ok (successful-ok)
                            attributes-charset (charset) = utf-8
                            attributes-natural-language (naturalLanguage) = en
                            job-uri (uri) = ipp://localhost:631/jobs/24
                            job-id (integer) = 24
                            job-state (enum) = pending
                            job-state-reasons (keyword) = none


                            If this works, the following should also work, now using the original test file print-job.test (which contains the variables) again, and using your edited senloe---print-job.test as the file to be printed:



                            ipptool -v -t -f senloe---print-job.test                  
                            ipp://localhost:631/printers/your-real-printername
                            ./print-job.test





                            share|improve this answer














                            Edit a copy of your print-job.test file and save it as senloe---print-job.test.



                            Your edit should replace the variables in the following two lines with hard-coded values:



                            ATTR mimeMediaType document-format $filetype
                            FILE $filename


                            Replace them, for example with:



                            ATTR mimeMediaType document-format text/plain
                            FILE senloe---print-job.test


                            This should send your file senloe---print-job.test as a plain text file to printers.



                            You'll need to use the following command line (assuming you have CUPS installed locally):



                            ipptool -v -t ipp://localhost:631/printers/your-real-printername 
                            ./senloe---print-job.test


                            You should see something like the following output:



                            "./senloe---print-job.test":
                            Print-Job:
                            attributes-charset (charset) = utf-8
                            attributes-natural-language (naturalLanguage) = en
                            printer-uri (uri) = ipp://localhost:631/printers/ubuquitech
                            requesting-user-name (nameWithoutLanguage) = senloe
                            document-format (mimeMediaType) = text/plain
                            copies (integer) = 1
                            Print file using Print-Job [PASS]
                            RECEIVED: 171 bytes in response
                            status-code = successful-ok (successful-ok)
                            attributes-charset (charset) = utf-8
                            attributes-natural-language (naturalLanguage) = en
                            job-uri (uri) = ipp://localhost:631/jobs/24
                            job-id (integer) = 24
                            job-state (enum) = pending
                            job-state-reasons (keyword) = none


                            If this works, the following should also work, now using the original test file print-job.test (which contains the variables) again, and using your edited senloe---print-job.test as the file to be printed:



                            ipptool -v -t -f senloe---print-job.test                  
                            ipp://localhost:631/printers/your-real-printername
                            ./print-job.test






                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Aug 25 '15 at 10:58

























                            answered Aug 25 '15 at 10:44









                            Kurt Pfeifle

                            9,17713555




                            9,17713555






















                                up vote
                                0
                                down vote













                                ipptool -v -tf /path/to/your.pdf  -d filetype=application/octet-stream -I http://printer-url/ipp /usr/share/cups/ipptool/print-job.test





                                share|improve this answer





















                                • You could add some explanations.
                                  – Toto
                                  Feb 12 at 19:22















                                up vote
                                0
                                down vote













                                ipptool -v -tf /path/to/your.pdf  -d filetype=application/octet-stream -I http://printer-url/ipp /usr/share/cups/ipptool/print-job.test





                                share|improve this answer





















                                • You could add some explanations.
                                  – Toto
                                  Feb 12 at 19:22













                                up vote
                                0
                                down vote










                                up vote
                                0
                                down vote









                                ipptool -v -tf /path/to/your.pdf  -d filetype=application/octet-stream -I http://printer-url/ipp /usr/share/cups/ipptool/print-job.test





                                share|improve this answer












                                ipptool -v -tf /path/to/your.pdf  -d filetype=application/octet-stream -I http://printer-url/ipp /usr/share/cups/ipptool/print-job.test






                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Feb 12 at 17:15









                                Antony Brown

                                11




                                11












                                • You could add some explanations.
                                  – Toto
                                  Feb 12 at 19:22


















                                • You could add some explanations.
                                  – Toto
                                  Feb 12 at 19:22
















                                You could add some explanations.
                                – Toto
                                Feb 12 at 19:22




                                You could add some explanations.
                                – Toto
                                Feb 12 at 19:22










                                up vote
                                0
                                down vote













                                A while ago I created an AppImage of the IPP Sample Software which now includes not only ipptool, but also ippserver which can emulate a virtual IPP Printer in your local network.




                                • To download, visit: https://github.com/KurtPfeifle/ippsample/releases

                                • Here is the direct link to the IPP Sample Software AppImage


                                (What's an AppImage? That is the package of a software consisting of multiple files -- even multiple different tools, apps or utilities -- bundled into a single compressed file. Just make it executable and run it from any location, on any Linux x86_64 distro.)



                                I also created an ASCIInema movie which demonstrates the usage of the ippsample bundle and the usage of ipptool:



                                asciicast






                                share|improve this answer



























                                  up vote
                                  0
                                  down vote













                                  A while ago I created an AppImage of the IPP Sample Software which now includes not only ipptool, but also ippserver which can emulate a virtual IPP Printer in your local network.




                                  • To download, visit: https://github.com/KurtPfeifle/ippsample/releases

                                  • Here is the direct link to the IPP Sample Software AppImage


                                  (What's an AppImage? That is the package of a software consisting of multiple files -- even multiple different tools, apps or utilities -- bundled into a single compressed file. Just make it executable and run it from any location, on any Linux x86_64 distro.)



                                  I also created an ASCIInema movie which demonstrates the usage of the ippsample bundle and the usage of ipptool:



                                  asciicast






                                  share|improve this answer

























                                    up vote
                                    0
                                    down vote










                                    up vote
                                    0
                                    down vote









                                    A while ago I created an AppImage of the IPP Sample Software which now includes not only ipptool, but also ippserver which can emulate a virtual IPP Printer in your local network.




                                    • To download, visit: https://github.com/KurtPfeifle/ippsample/releases

                                    • Here is the direct link to the IPP Sample Software AppImage


                                    (What's an AppImage? That is the package of a software consisting of multiple files -- even multiple different tools, apps or utilities -- bundled into a single compressed file. Just make it executable and run it from any location, on any Linux x86_64 distro.)



                                    I also created an ASCIInema movie which demonstrates the usage of the ippsample bundle and the usage of ipptool:



                                    asciicast






                                    share|improve this answer














                                    A while ago I created an AppImage of the IPP Sample Software which now includes not only ipptool, but also ippserver which can emulate a virtual IPP Printer in your local network.




                                    • To download, visit: https://github.com/KurtPfeifle/ippsample/releases

                                    • Here is the direct link to the IPP Sample Software AppImage


                                    (What's an AppImage? That is the package of a software consisting of multiple files -- even multiple different tools, apps or utilities -- bundled into a single compressed file. Just make it executable and run it from any location, on any Linux x86_64 distro.)



                                    I also created an ASCIInema movie which demonstrates the usage of the ippsample bundle and the usage of ipptool:



                                    asciicast







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Dec 15 at 17:59

























                                    answered Dec 9 at 1:56









                                    Kurt Pfeifle

                                    9,17713555




                                    9,17713555






























                                        draft saved

                                        draft discarded




















































                                        Thanks for contributing an answer to Super User!


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.





                                        Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                        Please pay close attention to the following guidance:


                                        • Please be sure to answer the question. Provide details and share your research!

                                        But avoid



                                        • Asking for help, clarification, or responding to other answers.

                                        • Making statements based on opinion; back them up with references or personal experience.


                                        To learn more, see our tips on writing great answers.




                                        draft saved


                                        draft discarded














                                        StackExchange.ready(
                                        function () {
                                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f667068%2ftesting-ipp-printing-with-ipptool%23new-answer', 'question_page');
                                        }
                                        );

                                        Post as a guest















                                        Required, but never shown





















































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown

































                                        Required, but never shown














                                        Required, but never shown












                                        Required, but never shown







                                        Required, but never shown







                                        Popular posts from this blog

                                        How do I know what Microsoft account the skydrive app is syncing to?

                                        When does type information flow backwards in C++?

                                        Grease: Live!