[cups-devel] [ipptool] How do I retrieve the "-actual" job attributes with ipptool? (Syntax for *.test file)

Michael Sweet msweet at apple.com
Mon Nov 2 07:44:53 PST 2015


Kurt,

Use the "requested-attributes" attribute to explicitly request named attributes, e.g.:

    ATTR keyword requested-attributes number-up-actual,finishings-actual,...

That said, the default is to return everything (that is supported, anyways).

Support the the "xxx-actuals" attributes is not widespread...



> On Oct 31, 2015, at 8:41 PM, pipitas <pipitas at gmail.com> wrote:
> 
> I tried to retrieve some "-actual" job attributes with the help of ipptool.
> 
> Here is the syntax I used. I did not find an example in any other *.test
> file for this, so I tried to write my own, based on how I understood the
> IPP documentation I read (creating an additional "GROUP job-actual"):
> 
>        NAME "get-job-attributes"
>       OPERATION get-job-attributes
> 
>        GROUP operation
>        ATTR charset attributes-charset utf-8
>        ATTR language attributes-natural-language en
>        ATTR uri job-uri $uri
> 
>        GROUP job-actual
>        ATTR charset attributes-charset utf-8
>        ATTR language attributes-natural-language en
>        ATTR integer number-up-actual
>        ATTR enum finishings-actual
> 
>        STATUS successful-ok
>        STATUS successful-ok-ignored-or-substituted-attributes
> 
>        DISPLAY job-uri
>        DISPLAY job-state
>        DISPLAY number-up
>        DISPLAY number-up-actual
>        DISPLAY finishings
>        DISPLAY finishings-actual
> 
> However, I only get an error message stating "ipptool: Bad integer value
> "ATTR" on line XXX".
> 
> Can ipptool even do what I'm trying?
> _______________________________________________
> cups-devel mailing list
> cups-devel at cups.org
> https://www.cups.org/mailman/listinfo/cups-devel

_________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair




More information about the cups-devel mailing list