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?
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.
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 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?
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.
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.
As can be seen from IP that I used http for printing.
My printers are Samsung SCX4702FN and HP2550n.
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.
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.
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.
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).