NETWORK PRINTERs not working in SUSE 12.1

I installed OpenSUSE 12.1 in my office PC which is connected to two network MFP laser printers (HP and SAMSUNG). Using CUPS I could install the printers. All of our IPs are like 31.xx.x.xxx, subnet mask /23 while we have a GW 31.xx.x.1. Now I find that CUPS could allow to configure printers. However, printers are showing they are always busy and so I could not get printouts. By the by, we have a community in SNMP. I have included the line "Community <our_community_name> in the /etc/cups/snmp.conf file which is also included in the /etc/snmp/snmpd.conf file. However, snmpd.conf file contains server name beside the community while I have not included the server names in the CUPS_SNMP file.

For diagnostics, I tried with ( setenv CUPS_DEBUG_LEVEL 2 ; /usr/lib/cups/backend/snmp ) | tee snmp.log command while the output is not showing printers.


  ( setenv CUPS_DEBUG_LEVEL 2 ; /usr/lib/cups/backend/snmp ) | tee snmp.logDEBUG: Scanning for devices in "our_community_name" via "@LOCAL"...
DEBUG: Sending get request to 31.xx.y.255...
DEBUG: OUT Hex Dump (45 bytes):
DEBUG: OUT 0000: 30 2b 02 01  00 04 08 62  61 72 63 25  31 32 33 a0    0+.....our_community_name.
DEBUG: OUT 0010: 1c 02 01 01  02 01 00 02  01 00 30 11  30 0f 06 0b    ..........0.0...
DEBUG: OUT 0020: 2b 06 01 02  01 19 03 02  01 02 01 05  00             +............
DEBUG: OUT Message:
DEBUG: OUT SEQUENCE 43 bytes
DEBUG: OUT     INTEGER 1 bytes 0
DEBUG: OUT     OCTET STRING 8 bytes "our_community_name"
DEBUG: OUT     Get-Request-PDU 28 bytes
DEBUG: OUT         INTEGER 1 bytes 1
DEBUG: OUT         INTEGER 1 bytes 0
DEBUG: OUT         INTEGER 1 bytes 0
DEBUG: OUT         SEQUENCE 17 bytes
DEBUG: OUT             SEQUENCE 15 bytes
DEBUG: OUT                 OID 11 bytes .1.3.6.1.2.1.25.3.2.1.2.1
DEBUG: OUT                 NULL VALUE 0 bytes
DEBUG: Sending get request to 31.xx.y.255...
DEBUG: OUT Hex Dump (45 bytes):
DEBUG: OUT 0000: 30 2b 02 01  00 04 08 62  61 72 63 25  31 32 33 a0    0+.....our_community_name.
DEBUG: OUT 0010: 1c 02 01 01  02 01 00 02  01 00 30 11  30 0f 06 0b    ..........0.0...
DEBUG: OUT 0020: 2b 06 01 02  01 19 03 02  01 02 01 05  00             +............
DEBUG: OUT Message:
DEBUG: OUT SEQUENCE 43 bytes
DEBUG: OUT     INTEGER 1 bytes 0
DEBUG: OUT     OCTET STRING 8 bytes "our_community_name"
DEBUG: OUT     Get-Request-PDU 28 bytes
DEBUG: OUT         INTEGER 1 bytes 1
DEBUG: OUT         INTEGER 1 bytes 0
DEBUG: OUT         INTEGER 1 bytes 0
DEBUG: OUT         SEQUENCE 17 bytes
DEBUG: OUT             SEQUENCE 15 bytes
DEBUG: OUT                 OID 11 bytes .1.3.6.1.2.1.25.3.2.1.2.1
DEBUG: OUT                 NULL VALUE 0 bytes
DEBUG: Sending get request to 31.xx.y.255...
DEBUG: OUT Hex Dump (45 bytes):
DEBUG: OUT 0000: 30 2b 02 01  00 04 08 62  61 72 63 25  31 32 33 a0    0+.....our_community_name.
DEBUG: OUT 0010: 1c 02 01 01  02 01 00 02  01 00 30 11  30 0f 06 0b    ..........0.0...
DEBUG: OUT 0020: 2b 06 01 02  01 19 03 02  01 02 01 05  00             +............
DEBUG: OUT Message:
DEBUG: OUT SEQUENCE 43 bytes
DEBUG: OUT     INTEGER 1 bytes 0
DEBUG: OUT     OCTET STRING 8 bytes "our_community_name"
DEBUG: OUT     Get-Request-PDU 28 bytes
DEBUG: OUT         INTEGER 1 bytes 1
DEBUG: OUT         INTEGER 1 bytes 0
DEBUG: OUT         INTEGER 1 bytes 0
DEBUG: OUT         SEQUENCE 17 bytes
DEBUG: OUT             SEQUENCE 15 bytes
DEBUG: OUT                 OID 11 bytes .1.3.6.1.2.1.25.3.2.1.2.1
DEBUG: OUT                 NULL VALUE 0 bytes
DEBUG: Sending get request to 31.xx.y.255...
DEBUG: OUT Hex Dump (45 bytes):
DEBUG: OUT 0000: 30 2b 02 01  00 04 08 62  61 72 63 25  31 32 33 a0    0+.....our_community_name.
DEBUG: OUT 0010: 1c 02 01 01  02 01 00 02  01 00 30 11  30 0f 06 0b    ..........0.0...
DEBUG: OUT 0020: 2b 06 01 02  01 19 03 02  01 02 01 05  00             +............
DEBUG: OUT Message:
DEBUG: OUT SEQUENCE 43 bytes
DEBUG: OUT     INTEGER 1 bytes 0
DEBUG: OUT     OCTET STRING 8 bytes "our_community_name"
DEBUG: OUT     Get-Request-PDU 28 bytes
DEBUG: OUT         INTEGER 1 bytes 1
DEBUG: OUT         INTEGER 1 bytes 0
DEBUG: OUT         INTEGER 1 bytes 0
DEBUG: OUT         SEQUENCE 17 bytes
DEBUG: OUT             SEQUENCE 15 bytes
DEBUG: OUT                 OID 11 bytes .1.3.6.1.2.1.25.3.2.1.2.1
DEBUG: OUT                 NULL VALUE 0 bytes
DEBUG: 2.003 Scan complete!

I have also tried


snmpwalk -Cc -v 1 -c our_community_name 31.xx.x.xxx | tee snmpwalk.log
Timeout: No Response from 31.xx.x.xxx

and

netcat -z 31.xx.x.xxx 631 && echo ok || echo failedok

I am not an expert and so I can’t figure it out. Can anyone help me?

Thanks

I use an HP networked printer and it works great with openSUSE 12.1. I make sure the application hplib is installed from YaST Software Management. Then, I do this to install a printer:

in KDE do Alt-F2: kdesu hp-setup

OR

in Gnome do Alt-F2: **gnomesu hp-setup

**I enter the root password, then select a networked printer, I check Manual Discovery and enter the exact IP address for the HP networked printer and follow the prompts. You can use CUP’s to set other printer actions, but hplib is required to get the printer to work properly normally.

Thank You,

Did you try managing the printers with CUPS web interface ?
http://127.0.0.1:631/

Thanks to all for kind response.
I tried configuring printers with CUPS and using http://localhost:631 which means http://127.0.0.1:631.

I tried with hp-setup which could not detect printers while CUPS could detect it but says printers are busy/not responding. Our network is under proxy and maintained using SNMP for our own community. I included the community name only in CUPS/snmp.conf but did not work.

Still the issue is unresolved.

Still trying to get a handle on this, and I’m not sure if the SNMP stuff is relevant (or not). Are you sure you have configured the printers properly? Did you ever manage to test print okay?

cat /etc/cups/printers.conf

What does the following return?

lpstat -t

THE O/P of

lpstat -t

[/QUOTE] is:

ADITYA-> lpstat -tscheduler is not running
no system default destination
lpstat: Connection refused
lpstat: Connection refused
lpstat: Connection refused
lpstat: Connection refused
lpstat: Connection refused
ADITYA->

However, I am getting return of the “PING” as follows:

[QUOTE]ADITYA-> lpstat -t
scheduler is not running
no system default destination
lpstat: Connection refused
lpstat: Connection refused
lpstat: Connection refused
lpstat: Connection refused
lpstat: Connection refused
ADITYA->
ADITYA-> ping 31.28.8.158
PING 31.28.8.158 (31.28.8.158) 56(84) bytes of data.
64 bytes from 31.28.8.158: icmp_seq=1 ttl=64 time=0.033 ms
64 bytes from 31.28.8.158: icmp_seq=2 ttl=64 time=0.029 ms
^C
— 31.28.8.158 ping statistics —
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.029/0.031/0.033/0.002 ms
ADITYA->

I never got any test print as printer is saying “busy”.

[/QUOTE]

That suggests that CUPS is not running. What happens if you start CUPS with (as root)

rccups start

After your statement, I restarted CUPS and I got the following points:

ADITYA:~ # lpstat  -t
scheduler is running
no system default destination
device for HP: http://31.28.8.158/printers
device for SAMSUNG: http://31.28.8.159/printers
HP accepting requests since Fri Jun 22 13:46:39 2012
SAMSUNG accepting requests since Thu Jun 21 17:05:28 2012
printer HP now printing HP-36.  enabled since Fri Jun 22 13:46:39 2012
        The printer is busy.
printer SAMSUNG is idle.  enabled since Thu Jun 21 17:05:28 2012
HP-36                   root              1024   Fri Jun 22 13:46:39 2012


ADITYA:~ # rccups start
redirecting to systemctl
ADITYA:~ # 



By the by, I gave a test page printing at HP which obviously did not come out.

These device URI’s don’t look right

device for HP: http://31.28.8.158/printers
device for SAMSUNG: http://31.28.8.159/printers

Mine for reference

device for Brother_DCP-7055: usb://Brother/DCP-7055
device for HL-2150N: socket://192.168.90.13

These reflect a locally connected printer and one on our LAN at work.

I think you’d better show us how they’re defined in /etc/cups/printers.conf

As Greg hinted at previously, you probably need to start over with the CUPS configuration. (He pointed you at the CUPS web config utility).

I learnt something about IPP printing from here

Using Network Printers - Documentation - CUPS


Internet Printing Protocol (IPP)  IPP is the only protocol that CUPS supports natively and is supported  by some network printers and print servers. However, since many  printers do not implement IPP properly, only use IPP when the vendor  actually documents official support for it. IPP printing normally  happens over port 631 and uses the http and ipp URI schemes:
  
http://*ip-address-or-hostname*:*port-number*/*resource* http://*ip-address-or-hostname*:*port-number*/*resource*?*option=value* http://*ip-address-or-hostname*:*port-number*/*resource*?*option=value&option=value* ipp://*ip-address-or-hostname*/*resource* ipp://*ip-address-or-hostname*/*resource*?*option=value* ipp://*ip-address-or-hostname*/*resource*?*option=value&option=value* ipp://*ip-address-or-hostname*:*port-number*/*resource* ipp://*ip-address-or-hostname*:*port-number*/*resource*?*option=value* ipp://*ip-address-or-hostname*:*port-number*/*resource*?*option=value&option=value* 

So, maybe your device URIs are okay, but I’m out of my depth with knowing whether your printers support this, and any other requirements. Maybe someone who is familiar with network printing via IPP can chime in here. (If I dig anything else up that may be relevant or helpful, I’ll pass it on).

I tried replacing the http with ipp but I got the same result. In normal condition, printers are idle and ready to take job. While I submit a job, they either report connecting to printer or say printer is busy.

I note that so far you have not supplied details about the printer models concerned. It may help others respond if you do so.

I also note that there are reports that IPP printing does not work well with the Samsung unified driver (at least for some models):

Ubuntu Forums - View Single Post - HOWTO Install Samsung Unified Printer Driver

*Note the advice given to try LPD instead.

The Samsung Unified Linux Driver Repository

(Refer comment 8)

As far as the HP printer is concerned, along with advice that James already provided, I think you should read these references:
HP Linux Imaging and Printing
Talk:CUPS - Gentoo Linux Wiki

  1. As can be seen from IP that I used http for printing.
  2. My printers are Samsung SCX4702FN and HP2550n.
  3. I do not know exact procedure for LPD. CUPS can access printers which could also be detected by PING. However, printers are not printing and reporting busy.

I have succeeded in getting 3 Network printers working with OpenSuse 12.1 on my network. They are:

  1. HPLaserjet 4L (Parallel interface connected via printer server) (hplith foomatic driver)
  2. Samsung ML-2010 (usb interace connected via printer server) (Samsung foomatic/GDI driver)
  3. Brother MFC-5840CN (network printer) (Brother lpr driver plus cups wrapper)

I gave them each a fixed IP address and used the printer facility under Gnome system tools. They are all connected via the ‘socket’ protocol. I remember that it did not work straight away in each case. I had to open the firewall for internal addresses and ‘enable’ the interfaces, but these steps were prompted by error messages from the GUI. In the cases of Brother and Samsung I think I had to obtain the Linux drivers for the printers from their web sites (certainly for the Brother). Unless I am mistaken, the hp driver ís included in OpenSuse 12.1.

I have tried with switching off the firewall; in firewall opening the ports 515, 631, 9100 etc… but it did not work. After opning or disabling the firewall only CUPS could reckon the IP addresses. I tried with kde tool also but did not work. Printers are reporting busy.

For the HP printer, I said to use a manual configuration and to enter its IP address directly. It does not sound like you did as I suggested for the HP printer.

Thank You,

For the HP printer, I said to use a manual configuration and to enter its IP address directly. It does not sound like you did as I suggested for the HP printer.

Thank You,

I mentioned that I tried as you said. I entered IP manually while it is not detecting.

On 06/22/2012 06:26 AM, vegaonline wrote:
>
>> For the HP printer, I said to use a manual configuration and to enter
>> its IP address directly. It does not sound like you did as I suggested
>> for the HP printer.
>>
>> Thank You,
>
> I mentioned that I tried as you said. I entered IP manually while it is
> not detecting.

Does that printer have multiple drivers available? I have an HP Laserjet Pro
P1606DN that needs to use the proprietary plugin. There are two different
drivers listed. One of them always leads to “printer busy” with no output, and
the other works. For my printer, the one with CUPS in the name is correct, but
it is not the default.

  1. My printers are Samsung SCX4702FN and HP2550n.

I think you mistyped your Samsung model: It is a SCX4720FN, and from the pages that I previously linked to, it appears that IPP does not work. (You should try LPD instead).

Regarding, your HP2550n printer
HP Linux Imaging and Printing
Search the knowledge base:
Troubleshooting my network attached printer | HPLIP Knowledge Base

I am sorry for (a) error in typing and (b) replying late as I was out in the weekend. It is Samsung SCX4720FN – you are right.

I tried with lpd also and configured CUPS as lpd://31.28.8.159/queue while printer is not printing and reporting busy.

I have seen your link regarding HP2550n. It is supported in SUSE12.1 for network printing.