subscriptions.conf log spam
Don Badrak
dbadrak at tco.census.gov
Wed Sep 17 09:45:17 PDT 2008
>
> > > # ./ipptest -v ipp://xx.xx.xx.xx s.cancel.1
> > > "s.cancel.1":
> > > Cancel-Subscription:
> > > attributes-charset (charset) = "utf-8"
> > > attributes-natural-language (language) = "en"
> > > printer-uri (uri) = "ipp://xx.xx.xx.xx"
> > > requesting-user-name (name) = "root"
> > > notify-subscription-id (integer) = 1
> > > s.cancel [FAIL]
> > > RECEIVED: 124 bytes in response
> > > BAD STATUS
> > > status-code = 0406 (notify-subscription-id 1 no good!)
> > > attributes-charset (charset) = "utf-8"
> > > attributes-natural-language (language) = "en"
> > > status-message (text) = "notify-subscription-id 1 no good!"
> > >
> > > It's odd. Before trying this, I stopped cupsd, edited the subscriptions.conf and changed it to this:
> > >
> > > <Subscription 2>
> >
> > Then the subscription ID should be *2*, right?
>
> Uh... This is what happens when you do 48 things at once. :-)
>
> Sorry. I tried the ipptest with the cancel. It didn't do anything. I stopped cupsd, changed it to 2, restarted, and did the ipptest again. The reason I still told it to remove 1 is because I was still getting the printer-state-changes, vs printer-stopped.
>
> I'll try it once more using the existing ID number. What else can I do with the subscriptions through this? Can I modify them by adding or removing (or showing) the events?
{
OPERATION cancel-subscription
GROUP operation
ATTR charset attributes-charset utf-8
ATTR language attributes-natural-language en
ATTR uri printer-uri $uri
ATTR name requesting-user-name badra001
ATTR integer notify-subscription-id 2
STATUS successful-ok
}
./ipptest -v ipp://148.129.229.20 s.cancel.2
"s.cancel.2":
Cancel-Subscription:
attributes-charset (charset) = "utf-8"
attributes-natural-language (language) = "en"
printer-uri (uri) = "ipp://148.129.229.20"
requesting-user-name (name) = "myusername"
notify-subscription-id (integer) = 2
s.cancel [PASS]
RECEIVED: 72 bytes in response
attributes-charset (charset) = "utf-8"
attributes-natural-language (language) = "en"
Wonderful! Thanks.
Don
More information about the cups
mailing list