0

I'm trying to create a server/system subscription for cups using IPP. According to their docs, it should be possible; however, I can't seem to get it to work, and I'm not finding anything online.

I could generate printer-subscription that look like this:

{
VERSION 2.0
OPERATION Create-Printer-Subscriptions
GROUP operation-attributes-tag
ATTR "attributes-charset" charset: utf-8
ATTR "attributes-natural-language" naturalLanguage: en-US
ATTR "printer-uri" uri: ipp://0.0.0.0:631/printers/PDF
GROUP subscription-attributes-tag
ATTR "notify-events" keyword: printer-modified,printer-added,printer-deleted
ATTR "notify-recipient-uri" uri: http://127.0.0.1:3333
}

However, when trying to use the create-system-subscription operation, it replaces printer-uri with system-uri and tells me I'm missing attributes.

{
 VERSION 2.0
 OPERATION Create-System-Subscriptions
 GROUP operation-attributes-tag
 ATTR "attributes-charset" charset: utf-8
 ATTR "attributes-natural-language" naturalLanguage: en-US
 ATTR "system-uri" uri: ipp://0.0.0.0:631/
 GROUP subscription-attributes-tag
 ATTR "notify-events" keyword: printer-added,printer-deleted,printer-modified
 ATTR "notify-recipient-uri" uri: rss://host.docker.internal:3333/
}
Frasher Gray
6161 gold badge6 silver badges26 bronze badges
asked Jul 16, 2024 at 12:41
0

1 Answer 1

0

it seems cups handles this a bit different, for anyone wondering it is possible to achieve this by using the create-printer-subscription request and using "/" as the printer-uri

answered Jul 16, 2024 at 14:20
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.