[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CUPS - how to match autodetected printers to physical ones



On Fri 08 Apr 2022 at 13:22:26 -0400, Greg Wooledge wrote:

> On Fri, Apr 08, 2022 at 06:03:47PM +0100, Tixy wrote:
> > On Fri, 2022-04-08 at 17:59 +0100, Tixy wrote:
> > > On Fri, 2022-04-08 at 12:10 -0400, Greg Wooledge wrote:
> > > > Unfortunately, I was not able to find ANY way to determine the IP
> > > > addresses of the autodetected printers that were presented to me.
> > > 
> > > If I go to http://localhost:631/printers/
> > 
> > I should say I got to that URL from the CUPs interface at
> > http://localhost:631/ then clicking the 'Admininitation' tab at the top
> > followed by the 'Manage Printers' button on the page that showed.
> 
> Here is what I have on that page:
> 
> =====================================================================
> Showing 7 of 7 printers.
> 
> Queue Name	Description	Location	Make and Model	Status
> Canon_LBP351dn_f9_7a_4a_			CNLBP712C CNLBP712C, driverless, cups-filters 1.28.7	Idle
> Canon_LBP712Cdn_db_c0_d3_	Canon_LBP712Cdn_db_c0_d3_		CNLBP712C CNLBP712C, driverless, cups-filters 1.28.7	Idle
> Cups_PDF_oc3261540276	Cups_PDF_oc3261540276		Local Raw Printer	Paused
> HP_LaserJet_4100_Series_0001E6A68D3D_	HP_LaserJet_4100_Series_0001E6A68D3D_		HP LaserJet 4100 Series , driverless, cups-filters 1.28.7	Idle
> hp_LaserJet_4250_621E13_	hp_LaserJet_4250_621E13_		hp LaserJet 4250, driverless, cups-filters 1.28.7	Idle
> HP_LaserJet_P3010_Series_0FCDD7_	HP_LaserJet_P3010_Series_0FCDD7_		HP LaserJet P3010 Series, driverless, cups-filters 1.28.7	Idle
> PostScript_oc3261540276	PostScript_oc3261540276		Local Raw Printer	Paused
> =====================================================================

[...]

> Looking at the stuff that I pasted here, how am I supposed to know whether
> this corresponds to the physical printer with IP address 10.76.172.100?

Let's eliminate Cups_PDF_oc3261540276 and PostScript_oc3261540276
first. These are local, manually set up print queues (not discovered).
The queue name doe not end with an underscore, indicating they are not
physical printers. (oc3261540276 identifies the host, but why that
format?)

The remaining five entries are printers. The "driverless, cups-filters"
indicates that cups-browsed has automatically set up local print queues
for them. They are on the same subnet as your device. 10/10 up to now
for the printing system.

This leaves two Canons and three HPs. What make is the printer in the
room? Canon? Still don't want to guess? Then

  avahi-browse -rt _ipp._tcp | grep -B 2 "10.76.172.100"

Another 10/10 fot the printing system and the tools it uses.

Of course, knowing the queue name in advance would be more desirable and
lead to less frustration.

-- 
Brian.


Reply to: