On Mon 11 Apr 2022 at 13:04:12 -0400, Greg Wooledge wrote: > On Mon, Apr 11, 2022 at 05:47:07PM +0100, Brian wrote: > > What does > > > > avahi-browse -rt _ipp._tcp | grep -B3 port > > > > give for this device? > > = eno1 IPv4 Canon LBP351dn (f9:7a:4a) Internet Printer > local > hostname = [dhcp-10-76-172-100.local] > address = [10.76.172.100] > port = [631] > > And for completeness: > > wooledg:~$ avahi-resolve -n dhcp-10-76-172-100.local > dhcp-10-76-172-100.local 10.76.172.100
Thanks. I completly forgot: CUPS constructs a destination from a printer's Service (Bonjour) Name by replacing a dash (-) with an underscore (_). It then adds an underscore (_) to the end. (It has stopped doing the latter in the most recent version, I thnk). I will scub the third method. It is too involved to explain how to reverse what is in the implicitclass URI just for resolving. avahi-browse seems the way to go for your purpose. BTW. I am interested in how using /usr/lib/cups/backend/snmp went. Its drawback is that not all printers provide an snmp service. -- Brian.