How does one query CUPS for the error policy via command-line tools

John Florian john.florian at dart.biz
Fri Sep 14 07:00:35 PDT 2012


One may set a queue's policy using:

$ sudo lpadmin -oprinter-error-policy=abort-job -p MYQUEUE

How does one query CUPS to discover that same info?  The following would appear to be the correct approach, but this particular options doesn't appear in the output:

$ sudo lpoptions -p MYQUEUE
auth-info-required=none copies=1 device-uri=http://myhost.example.com:631/printers/MYQUEUE finishings=3 job-hold-until=no-hold job-priority=50 job-sheets=none,none marker-change-time=0 number-up=1 printer-info='test-automation target' printer-is-accepting-jobs=true printer-is-shared=true printer-location='virtual printer on myhost.example.com' printer-make-and-model='Local Raw Printer' printer-state=3 printer-state-change-time=1347626564 printer-state-reasons=none printer-type=4 printer-uri-supported=ipp://localhost:631/printers/MYQUEUE





More information about the cups mailing list