You are not logged in.

#1 2009-04-16 17:17:30

monzer4819
Member
Registered: 2009-03-26
Posts: 26

CUPS & snmp autodiscovery

Just did a fresh i686 install on my laptop. kernel 2.6.29, gnome 2.26 etc..

After installing my fav cups front end, system-config-printer-gnome, I noticed that the autodiscovery wasn't working.

I have a x86_64 install at work and running lpinfo -v outputs this:

[12:57 Mars-Arch64 ~]% lpinfo -v
network socket
network beh
network socket://10.55.113.245
network socket://10.55.113.240
network socket://10.55.113.153
network http
network ipp
network socket://10.55.113.250
network lpd
direct parallel:/dev/lp0
direct scsi
network smb

When I run lpinfo -v on my laptop I get this:

network socket
network beh
network http
network ipp
network lpd
direct scsi
network smb

So I did some googling and came across this page http://www.troubleshootingwiki.org/Basi … _CUPS-SNMP
and ran this command CUPS_DEBUG_LEVEL=1 /usr/lib/cups/backend/snmp 2>&1 first on my laptop:

bash-3.2# CUPS_DEBUG_LEVEL=1 /usr/lib/cups/backend/snmp 2>&1 | tee cupssnmp.log
DEBUG: Scanning for devices in "public" via "@LOCAL"...
DEBUG: 0.000 Sending 46 bytes to 10.55.113.255...
DEBUG: 1.001 Scan complete!
bash-3.2#

Then I ran it on my desktop:

[13:03 Mars-Arch64 ~]% CUPS_DEBUG_LEVEL=1 /usr/lib/cups/backend/snmp 2>&1                   
DEBUG: Scanning for devices in "public" via "@LOCAL"...
DEBUG: 0.000 Sending 46 bytes to 10.55.113.255...
DEBUG: 0.001 Received 55 bytes from 10.55.113.245...
DEBUG: community="public"
DEBUG: request-id=1239901542
DEBUG: error-status=0
DEBUG: add_cache(addr=0x7fff2345e370, addrname="10.55.113.245", uri="(null)", id="(null)", make_and_model="(null)")
DEBUG: 0.001 Sending 46 bytes to 10.55.113.245...
DEBUG: 0.001 Received 55 bytes from 10.55.113.240...
DEBUG: community="public"
DEBUG: request-id=1239901542
DEBUG: error-status=0
DEBUG: add_cache(addr=0x7fff2345e370, addrname="10.55.113.240", uri="(null)", id="(null)", make_and_model="(null)")
DEBUG: 0.002 Sending 46 bytes to 10.55.113.240...
DEBUG: 0.002 Received 46 bytes from 10.55.113.5...
DEBUG: community="public"
DEBUG: request-id=1239901542
DEBUG: error-status=2
DEBUG: 0.002 Received 46 bytes from 10.55.113.1...
DEBUG: community="public"
DEBUG: request-id=1239901542
DEBUG: error-status=2
DEBUG: 0.002 Received 76 bytes from 10.55.113.245...
DEBUG: community="public"
DEBUG: request-id=1239901543
DEBUG: error-status=0
DEBUG: 0.003 Received 110 bytes from 10.55.113.240...
DEBUG: community="public"
DEBUG: request-id=1239901543
DEBUG: error-status=0
DEBUG: 0.004 Received 55 bytes from 10.55.113.250...
DEBUG: community="public"
DEBUG: request-id=1239901542
DEBUG: error-status=0
DEBUG: add_cache(addr=0x7fff2345e370, addrname="10.55.113.250", uri="(null)", id="(null)", make_and_model="(null)")
DEBUG: 0.005 Sending 46 bytes to 10.55.113.250...
DEBUG: 0.005 Received 63 bytes from 10.55.113.153...
DEBUG: community="public"
DEBUG: request-id=1239901542
DEBUG: error-status=0
DEBUG: add_cache(addr=0x7fff2345e370, addrname="10.55.113.153", uri="(null)", id="(null)", make_and_model="(null)")
DEBUG: 0.006 Sending 46 bytes to 10.55.113.153...
DEBUG: 0.009 Received 91 bytes from 10.55.113.250...
DEBUG: community="public"
DEBUG: request-id=1239901543
DEBUG: error-status=0
DEBUG: 0.013 Received 114 bytes from 10.55.113.153...
DEBUG: community="public"
DEBUG: request-id=1239901543
DEBUG: error-status=0
DEBUG: 1.014 Probing 10.55.113.153...
DEBUG: 1.014 Trying socket://10.55.113.153:9100...
DEBUG: 10.55.113.153 supports AppSocket!
network socket://10.55.113.153 "Dell Laser Printer 1710n 72B0CYH BR.Q.P025 -- Part Number --" "Dell Laser Printer 1710n 72B0CYH BR.Q.P025 -- Part Number -- 10.55.113.153" ""
DEBUG: 1.016 Probing 10.55.113.240...
DEBUG: 1.016 Trying socket://10.55.113.240:9100...
DEBUG: 10.55.113.240 supports AppSocket!
network socket://10.55.113.240 "Dell Laser MFP 1815; OS 1.03.04.02   12-21-2007" "Dell Laser MFP 1815; OS 1.03.04.02   12-21-2007 10.55.113.240" ""
DEBUG: 1.016 Probing 10.55.113.245...
DEBUG: 1.017 Trying socket://10.55.113.245:9100...
DEBUG: 10.55.113.245 supports AppSocket!
network socket://10.55.113.245 "Dell 5330dn Mono Laser Printer" "Dell 5330dn Mono Laser Printer 10.55.113.245" ""
DEBUG: 1.017 Probing 10.55.113.250...
DEBUG: 1.017 Trying socket://10.55.113.250:9100...
DEBUG: 10.55.113.250 supports AppSocket!
network socket://10.55.113.250 "Lexmark Optra T612 11BPNF8  530.38wd2 11K1935" "Lexmark Optra T612 11BPNF8  530.38wd2 11K1935 10.55.113.250" ""
DEBUG: 1.020 Scan complete!

So something is wrong either cups or smnp discovery.    No idea where to go from here...

Offline

#2 2009-04-17 02:01:05

darthaxul
Member
Registered: 2008-09-24
Posts: 156

Re: CUPS & snmp autodiscovery

are u sure the printer is online and usable/configured?
is this a network printer?

Offline

#3 2009-04-17 16:57:21

monzer4819
Member
Registered: 2009-03-26
Posts: 26

Re: CUPS & snmp autodiscovery

Yes, the desktop computer running x86_64 is running on the same network.   It can see the printers, my laptop cannot.   btw tried both on wireless & wired.  Same result.

Offline

Board footer

Powered by FluxBB