New SNMP printer discovery backend

Kurt Pfeifle kpfeifle at danka.de
Tue Apr 18 16:26:50 PDT 2006


I'm very pleased to have seen the new SNMP printer discovery backend added to 1.2 SVN a few hours ago  :-)

My first test result is very encouraging. I compiled (building in the source directory), yet didn't install, but instead did run the backend directly from the build directory like that:

  kurt at sp:~/cupssrc> LD_LIBRARY_PATH=$PWD/cups:$PWD/filter backend/snmp @LOCAL

Guess what? It works :-)

It discovers 10 printers within ~2 seconds:

  kurt at sp:~/cupssrc> time LD_LIBRARY_PATH=$PWD/cups:$PWD/filter backend/snmp @LOCAL|wc
  INFO: Using default SNMP Community public
  ERROR: Bad SNMP packet from 10.162.2.91!
     10      81     994

  real    0m2.066s
  user    0m0.020s
  sys     0m0.016s

The complete discovery list looks like this:

  network lpd://10.162.2.27/ "KODAK DIGIMASTER E150 digital production system" "10.162.2.27" ""
  network ipp://10.162.2.29:631/ipp "Ricoh IPP Printer v2.0" "10.162.2.29" ""
  network ipp://10.162.2.37:631/ipp "hp LaserJet 4345 mfp" "10.162.2.37" "MFG:Hewlett-Packard;CMD:PJL,MLC,BIDI-ECP,PCLXL,PCL,PDF,PJL,XHTML,MIME,POSTSCRIPT;1284.4DL:4d,4e,1;MDL:hp LaserJet 4345 mfp;CLS:"
  network ipp://10.162.2.42:631/ipp "Canon iR9070" "10.162.2.42" ""
  network ipp://10.162.2.48:631/ipp "Canon iR C2620" "10.162.2.48" ""
  network ipp://10.162.2.52:631/ipp "Ricoh IPP Printer v2.0" "10.162.2.52" ""
  network socket://10.162.2.83 "infotec  ISC1032" "10.162.2.83" ""
  network ipp://10.162.2.92:631/ipp "Ricoh IPP Printer v2.0" "10.162.2.92" ""
  network socket://10.162.2.93 "infotec  ISC824" "10.162.2.93" ""
  network ipp://10.162.2.112:631/ipp "HP Color LaserJet 4730mfp" "10.162.2.112" "MFG:Hewlett-Packard;CMD:PJL,MLC,BIDI-ECP,PCLXL,PCL,PDF,PJL,POSTSCRIPT;1284.4DL:4d,4e,1;MDL:HP Color LaserJet 4730mfp;CLS:PRINTE"


Tomorrow I'll run a few more thorough tests, to see if discovery is complete; also, I'll move myself to a different subnet where I expect to see about 100 printers.

Cheers,
Kurt




More information about the cups mailing list