[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
> =====================================================================
> 
> Of course it looks like crap when I just paste the text from the web
> page into an email.  But if you ignore the horrible formatting, you
> can see there are NO IP addresses here.

Looks are the least of the deficiencies here. The Queue Name appears
to be being used for the printer Descriptiom and the Location column
is empty. Neither column provides adequate, useful information.
> 
> If I go to a single printer's page, I get text like this:
> 
> =====================================================================
> Canon_LBP351dn_f9_7a_4a_
> Canon_LBP351dn_f9_7a_4a_ (Idle, Accepting Jobs, Not Shared, Server Default)
> 
> Maintenance
>  
> Administration
> Description:	
> Location:	
> Driver:	CNLBP712C CNLBP712C, driverless, cups-filters 1.28.7 (color, 2-sided printing)
> Connection:	implicitclass://Canon_LBP351dn_f9_7a_4a_/
> Defaults:	job-sheets=none, none media=na_letter_8.5x11in sides=one-sided
> =====================================================================
> 
> Maybe I need to amend the question to "How is one supposed to figure out
> which autodetected printer is which IN A CORPORATE NETWORK OF UNKNOWN
> PROVENANCE?"  I don't know what I need to say to convey to you that
> my workplace's network DOES NOT work like what you see on yours.
> 
> 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?

A third way forward:

"implicitclass://Canon_LBP351dn_f9_7a_4a_/" is the URI for this printer.
Canon_LBP351dn_f9_7a_4a_ is the printer's Service Name. 

  avahi-resolve -n Canon_LBP351dn_f9_7a_4a_.local

should give the IP address of the host.

-- 
Brian.


Reply to: