HP JetDirect Printerserver
Hi. I have a problem with my HP Printerserver HP JetDirect 500X. Or maybe better to say, ther is a printer, that I cannot get inay printing from, if I want to print something out from my SuSE 10.0 Eval. The ports are setup to use 9100 and 9101 for TCP printing. My HL5040 Laserprinter on port 9100 is printing ok. But not my HP DJ895Cxi. When I set it up, I printed out an ok test to it, but it will not print from a document. I tried with nmap: nmap -v 192.168.1.3 Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-11-07 13:23 CET Initiating SYN Stealth Scan against 192.168.1.3 [1663 ports] at 13:23 Increasing send delay for 192.168.1.3 from 0 to 5 due to 27 out of 89 dropped probes since last increase. Discovered open port 9100/tcp on 192.168.1.3 The SYN Stealth Scan took 14.82s to scan 1663 total ports. Host 192.168.1.3 appears to be up ... good. Interesting ports on 192.168.1.3: (The 1656 ports scanned but not shown below are in state: closed) PORT STATE SERVICE 9100/tcp open jetdirect MAC Address: 00:10:83:BA:6A:BC (Hewlett-packard Company) Nmap finished: 1 IP address (1 host up) scanned in 15.310 seconds Raw packets sent: 1721 (68.8KB) | Rcvd: 1664 (76.5KB) No 9101 port is shown here ????
From the /var/log/messages I have this:
Nov 7 13:09:20 lajka3 hp: unable to open /var/run/hpiod.port: No such file or directory: prnt/hpijs/hplip_api.c 75 Nov 7 13:09:20 lajka3 hp: unable to connect hpiod socket 50000: Connection refused: prnt/hpijs/hplip_api.c 693 Nov 7 13:09:20 lajka3 hp: unable to send ProbeDevices: Broken pipe Nov 7 13:11:05 lajka3 hp: unable to open /var/run/hpiod.port: No such file or directory: prnt/hpijs/hplip_api.c 75 Nov 7 13:11:05 lajka3 hp: unable to connect hpiod socket 50000: Connection refused: prnt/hpijs/hplip_api.c 693 Nov 7 13:11:05 lajka3 hp: unable to send ProbeDevices: Broken pipe Nov 7 13:11:07 lajka3 hp: unable to open /var/run/hpiod.port: No such file or directory: prnt/hpijs/hplip_api.c 75 Nov 7 13:11:07 lajka3 hp: unable to connect hpiod socket 50000: Connection refused: prnt/hpijs/hplip_api.c 693 Nov 7 13:11:07 lajka3 hp: unable to send ProbeDevices: Broken pipe What is wrong here ?. Erik Jakobsen
Hello, On Nov 7 13:31 Erik Jakobsen wrote (shortened):
I have a problem with my HP Printerserver HP JetDirect 500X.
Or maybe better to say, ther is a printer, that I cannot get inay printing from, if I want to print something out from my SuSE 10.0 Eval.
The ports are setup to use 9100 and 9101 for TCP printing.
My HL5040 Laserprinter on port 9100 is printing ok.
But not my HP DJ895Cxi. When I set it up, I printed out an ok test to it, but it will not print from a document.
The DeskJet prints a few characters successfully but not a whole big document? This indicates that you must set up the right parallel port settings in the JetDirect box according to what the DeskJet needs. See the documentation of the JetDirect box how to do it.
I tried with nmap:
nmap -v 192.168.1.3 ... No 9101 port is shown here ????
Port 9101 is not listed in /usr/share/nmap/nmap-services therefore it is not tested by default with nmpa. See the Suse "Administration Manual" or the nmap man page how to scan particular ports (i.e. use the '-p' switch).
From the /var/log/messages I have this:
Nov 7 13:09:20 lajka3 hp: unable to open /var/run/hpiod.port: No such file or directory: prnt/hpijs/hplip_api.c 75
Do you really use the "hp" backend? If yes, make sure the required hplip services are up and running, see http://portal.suse.com/sdb/en/2005/02/jsmeix_print-einrichten-93.html You should prefer the "socket" backend when you access the printer via TCP socket on a printserver box, see http://portal.suse.com/sdb/en/2004/05/jsmeix_print-cups-in-a-nutshell.html "The Backends" Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5 Mail: jsmeix@suse.de 90409 Nuernberg, Germany WWW: http://www.suse.de/
Johannes Meixner wrote:
Hello,
On Nov 7 13:31 Erik Jakobsen wrote (shortened):
I have a problem with my HP Printerserver HP JetDirect 500X.
Or maybe better to say, ther is a printer, that I cannot get inay printing from, if I want to print something out from my SuSE 10.0 Eval.
The ports are setup to use 9100 and 9101 for TCP printing.
My HL5040 Laserprinter on port 9100 is printing ok.
But not my HP DJ895Cxi. When I set it up, I printed out an ok test to it, but it will not print from a document.
Thank you for your reply Johannes. I have to say, that I'm glad you also answered me this time. I found the old mail, where you mentioned the 2 ports 9100 and 9101.
The DeskJet prints a few characters successfully but not a whole big document?
At test the DeskJet prints the whole testpage out. Else it's not printing anything at all.
This indicates that you must set up the right parallel port settings in the JetDirect box according to what the DeskJet needs. See the documentation of the JetDirect box how to do it.
I did test it now with netcat: netcat z 192.168.1.3 9100 && echo ok || echo failed ok lajka3:~ # echo -e "\004queue" \ | netcat -w 2 -p 722 192.168.1.3 9100 Did print ok out to my HL5040 lajka3:~ # echo -e "\004queue" \ | netcat -w 2 -p 722 192.168.1.3 9101 Did print ok out to my DeskJet. lajka3:~ # netcat z 192.168.1.3 9101 && echo ok || echo failed ok I use the same ports as I always have done, so I know they are the right ones.
I tried with nmap:
nmap -v 192.168.1.3
...
No 9101 port is shown here ????
Port 9101 is not listed in /usr/share/nmap/nmap-services therefore it is not tested by default with nmpa. See the Suse "Administration Manual" or the nmap man page how to scan particular ports (i.e. use the '-p' switch).
Here are the nmap results: nmap -p 9101 192.168.1.3 Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-11-07 16:42 CET Interesting ports on 192.168.1.3: PORT STATE SERVICE 9101/tcp open unknown MAC Address: 00:10:83:BA:6A:BC (Hewlett-packard Company) Nmap finished: 1 IP address (1 host up) scanned in 0.393 seconds lajka3:~ # nmap -p 9100 192.168.1.3 Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-11-07 16:42 CET Interesting ports on 192.168.1.3: PORT STATE SERVICE 9100/tcp open jetdirect MAC Address: 00:10:83:BA:6A:BC (Hewlett-packard Company) Nmap finished: 1 IP address (1 host up) scanned in 0.360 seconds I wonder why the 9101 will not work. On another HDD on this computer I have SuSE 9.3, and 9101 is quite ok here. My point of view tells me, that it has something to do with this SuSE 10.0 Eval. computer, but I may be wrong in that ?.
From the /var/log/messages I have this:
Nov 7 13:09:20 lajka3 hp: unable to open /var/run/hpiod.port: No such file or directory: prnt/hpijs/hplip_api.c 75
Do you really use the "hp" backend? If yes, make sure the required hplip services are up and running, see http://portal.suse.com/sdb/en/2005/02/jsmeix_print-einrichten-93.html You should prefer the "socket" backend when you access the printer via TCP socket on a printserver box, see http://portal.suse.com/sdb/en/2004/05/jsmeix_print-cups-in-a-nutshell.html "The Backends"
No I am sorry if I confuse you there. I think its the output from a wrong printersetup in Yast :-(
Kind Regards Johannes Meixner
Kind Regards Erik Jakobsen
Hello, On Nov 7 16:48 Erik Jakobsen wrote (shortened):
At test the DeskJet prints the whole testpage out. Else it's not printing anything at all.
I have no idea what is wrong here. Does it print the testpage several times correctly? Perhaps it prints only one job and then because of whatever error the queue becomes disabled at the end of the first job? If the testpage prints, there is no ned for further "netcat" and/or "nmap" tests because the testpage print shows that the port is the right one and that you can send data to the printer.
On another HDD on this computer I have SuSE 9.3, and 9101 is quite ok here. My point of view tells me, that it has something to do with this SuSE 10.0 Eval.
But 9.3 and 10.0 both have CUPS version 1.1.23 and I don't think the differences (i.e. some bug-fixes) cause this problem. Inspect the CUPS error_log file, see http://portal.suse.com/sdb/en/2004/05/jsmeix_print-cups-in-a-nutshell.html -------------------------------------------------------------------- If problems are encountered: 1. Set the "LogLevel debug" in /etc/cups/cupsd.conf. 2. Stop cupsd. 3. Move /var/log/cups/error_log* to another location (or delete it) in order to avoid having to search through gigantic log files. 4. Start cupsd. 5. Retry the action leading to the problem. 6. Now /var/log/cups/error_log* contains many messages that are useful for troubleshooting. -------------------------------------------------------------------- Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5 Mail: jsmeix@suse.de 90409 Nuernberg, Germany WWW: http://www.suse.de/
Johannes Meixner wrote:
Hello,
On Nov 7 16:48 Erik Jakobsen wrote (shortened):
At test the DeskJet prints the whole testpage out. Else it's not printing anything at all.
I have no idea what is wrong here. Does it print the testpage several times correctly? Perhaps it prints only one job and then because of whatever error the queue becomes disabled at the end of the first job?
If the testpage prints, there is no ned for further "netcat" and/or "nmap" tests because the testpage print shows that the port is the right one and that you can send data to the printer.
Ok Johannes. Its a pity. I have just tested all the 3 printoptions, and it was ok. Ok about the netcat and nmap.
On another HDD on this computer I have SuSE 9.3, and 9101 is quite ok here. My point of view tells me, that it has something to do with this SuSE 10.0 Eval.
But 9.3 and 10.0 both have CUPS version 1.1.23 and I don't think the differences (i.e. some bug-fixes) cause this problem.
Ok.
Inspect the CUPS error_log file, see http://portal.suse.com/sdb/en/2004/05/jsmeix_print-cups-in-a-nutshell.html -------------------------------------------------------------------- If problems are encountered:
1. Set the "LogLevel debug" in /etc/cups/cupsd.conf. 2. Stop cupsd. 3. Move /var/log/cups/error_log* to another location (or delete it) in order to avoid having to search through gigantic log files. 4. Start cupsd. 5. Retry the action leading to the problem. 6. Now /var/log/cups/error_log* contains many messages that are useful for troubleshooting. --------------------------------------------------------------------
Kind Regards Johannes Meixner
I will do that Johannes, and thanks for your help. Erik
Johannes Meixner wrote:
Inspect the CUPS error_log file, see http://portal.suse.com/sdb/en/2004/05/jsmeix_print-cups-in-a-nutshell.html -------------------------------------------------------------------- If problems are encountered:
1. Set the "LogLevel debug" in /etc/cups/cupsd.conf. 2. Stop cupsd. 3. Move /var/log/cups/error_log* to another location (or delete it) in order to avoid having to search through gigantic log files. 4. Start cupsd. 5. Retry the action leading to the problem. 6. Now /var/log/cups/error_log* contains many messages that are useful for troubleshooting. --------------------------------------------------------------------
Kind Regards Johannes Meixner
So far, I see no problems. Do you ?: I [07/Nov/2005:17:55:05 +0100] Listening to 0:631 D [07/Nov/2005:17:55:05 +0100] AddLocation: added location 'CUPS_INTERNAL_BROWSE_ACL' D [07/Nov/2005:17:55:05 +0100] AllowHost: CUPS_INTERNAL_BROWSE_ACL allow @LOCAL D [07/Nov/2005:17:55:05 +0100] DenyIP: CUPS_INTERNAL_BROWSE_ACL deny 00000000/00000000 D [07/Nov/2005:17:55:05 +0100] AddLocation: added location '/' D [07/Nov/2005:17:55:05 +0100] DenyIP: / deny 00000000/00000000 D [07/Nov/2005:17:55:05 +0100] AllowIP: / allow 7f000001/ffffffff D [07/Nov/2005:17:55:05 +0100] AllowIP: / allow 7f000002/ffffffff D [07/Nov/2005:17:55:05 +0100] AllowHost: / allow @LOCAL D [07/Nov/2005:17:55:05 +0100] AddLocation: added location '/admin' D [07/Nov/2005:17:55:05 +0100] DenyIP: /admin deny 00000000/00000000 D [07/Nov/2005:17:55:05 +0100] AllowIP: /admin allow 7f000001/ffffffff I [07/Nov/2005:17:55:05 +0100] Loaded configuration file "/etc/cups/cupsd.conf" I [07/Nov/2005:17:55:05 +0100] Configured for up to 100 clients. I [07/Nov/2005:17:55:05 +0100] Allowing up to 100 client connections per host. I [07/Nov/2005:17:55:05 +0100] Full reload is required. D [07/Nov/2005:17:55:05 +0100] LoadAllPrinters: Loading printer DJ895... D [07/Nov/2005:17:55:05 +0100] LoadAllPrinters: Loading printer HL5040... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "ipp"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "lpd"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "smb"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "usb:/dev/usb/lp0"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "usb:/dev/usb/lp1"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "usb:/dev/usb/lp2"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "usb:/dev/usb/lp3"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "usb:/dev/usb/lp4"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "usb:/dev/usb/lp5"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "usb:/dev/usb/lp6"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "usb:/dev/usb/lp7"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "usb:/dev/usb/lp8"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "usb:/dev/usb/lp9"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "usb:/dev/usb/lp10"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "usb:/dev/usb/lp11"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "usb:/dev/usb/lp12"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "usb:/dev/usb/lp13"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "usb:/dev/usb/lp14"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "usb:/dev/usb/lp15"... D [07/Nov/2005:17:55:05 +0100] LoadDevices: Added device "http"... D [07/Nov/2005:17:55:06 +0100] LoadDevices: Added device "ptal"... D [07/Nov/2005:17:55:06 +0100] LoadDevices: Added device "scsi"... D [07/Nov/2005:17:55:06 +0100] LoadDevices: Added device "canon:/dev/lp0"... D [07/Nov/2005:17:55:06 +0100] LoadDevices: Added device "epson:/dev/lp0"... D [07/Nov/2005:17:55:06 +0100] LoadDevices: Added device "parallel:/dev/lp0"... D [07/Nov/2005:17:55:06 +0100] LoadDevices: Added device "serial:/dev/ttyS0?baud=115200"... D [07/Nov/2005:17:55:06 +0100] LoadDevices: Added device "serial:/dev/ttyS1?baud=115200"... D [07/Nov/2005:17:55:06 +0100] LoadDevices: Added device "serial:/dev/ttyS2?baud=115200"... D [07/Nov/2005:17:55:06 +0100] LoadDevices: Added device "serial:/dev/ttyS3?baud=115200"... D [07/Nov/2005:17:55:06 +0100] LoadDevices: Added device "socket"... I [07/Nov/2005:17:55:06 +0100] LoadPPDs: Read "/etc/cups/ppds.dat", 3764 PPDs... I [07/Nov/2005:17:55:07 +0100] LoadPPDs: No new or changed PPDs... D [07/Nov/2005:17:55:07 +0100] LoadAllJobs: Scanning /var/spool/cups... D [07/Nov/2005:17:55:07 +0100] LoadAllJobs: Loading attributes for job 1... D [07/Nov/2005:17:55:07 +0100] LoadAllJobs: Loading attributes for job 2... I [07/Nov/2005:17:55:07 +0100] Full reload complete. D [07/Nov/2005:17:55:07 +0100] StartListening: NumListeners=1 D [07/Nov/2005:17:55:07 +0100] StartListening: address=00000000 port=631 D [07/Nov/2005:17:55:07 +0100] ResumeListening: setting input bits... D [07/Nov/2005:17:56:17 +0100] AcceptClient: 5 from localhost:631. D [07/Nov/2005:17:56:17 +0100] ReadClient: 5 POST / HTTP/1.1 D [07/Nov/2005:17:56:17 +0100] ProcessIPPRequest: 5 status_code=1 D [07/Nov/2005:17:56:17 +0100] ReadClient: 5 POST / HTTP/1.1 D [07/Nov/2005:17:56:17 +0100] ProcessIPPRequest: 5 status_code=1 D [07/Nov/2005:17:56:17 +0100] ReadClient: 5 POST / HTTP/1.1 D [07/Nov/2005:17:56:17 +0100] ProcessIPPRequest: 5 status_code=0 D [07/Nov/2005:17:56:17 +0100] CloseClient: 5 D [07/Nov/2005:17:56:17 +0100] AcceptClient: 5 from localhost:631. D [07/Nov/2005:17:56:17 +0100] ReadClient: 5 POST / HTTP/1.1 D [07/Nov/2005:17:56:17 +0100] ProcessIPPRequest: 5 status_code=1 D [07/Nov/2005:17:56:17 +0100] ReadClient: 5 POST / HTTP/1.1 D [07/Nov/2005:17:56:17 +0100] ProcessIPPRequest: 5 status_code=1 D [07/Nov/2005:17:56:17 +0100] ReadClient: 5 POST / HTTP/1.1 D [07/Nov/2005:17:56:17 +0100] ProcessIPPRequest: 5 status_code=0 D [07/Nov/2005:17:56:17 +0100] CloseClient: 5 D [07/Nov/2005:17:56:22 +0100] AcceptClient: 5 from localhost:631. D [07/Nov/2005:17:56:22 +0100] ReadClient: 5 POST / HTTP/1.1 D [07/Nov/2005:17:56:22 +0100] ProcessIPPRequest: 5 status_code=1 D [07/Nov/2005:17:56:22 +0100] ReadClient: 5 POST / HTTP/1.1 D [07/Nov/2005:17:56:22 +0100] ProcessIPPRequest: 5 status_code=1 D [07/Nov/2005:17:56:22 +0100] ReadClient: 5 POST / HTTP/1.1 D [07/Nov/2005:17:56:22 +0100] ProcessIPPRequest: 5 status_code=0 D [07/Nov/2005:17:56:22 +0100] CloseClient: 5 Regards Erik
Hello, On Nov 7 18:01 Erik Jakobsen wrote (shortened):
Johannes Meixner wrote:
Inspect the CUPS error_log file, see http://portal.suse.com/sdb/en/2004/05/jsmeix_print-cups-in-a-nutshell.html -------------------------------------------------------------------- If problems are encountered:
1. Set the "LogLevel debug" in /etc/cups/cupsd.conf. 2. Stop cupsd. 3. Move /var/log/cups/error_log* to another location (or delete it) in order to avoid having to search through gigantic log files. 4. Start cupsd. 5. Retry the action leading to the problem. 6. Now /var/log/cups/error_log* contains many messages that are useful for troubleshooting. --------------------------------------------------------------------
So far, I see no problems. Do you ?:
No, because it seems you missed step 5. I don't see that you actually printed a job (no "Started filter" and "Started backend" mesages) which fails to print. Note that the only part of interest in error_log are the mesages for one single job which fails to print. Kind Regards Johannes Meixner -- SUSE LINUX Products GmbH, Maxfeldstrasse 5 Mail: jsmeix@suse.de 90409 Nuernberg, Germany WWW: http://www.suse.de/
Johannes Meixner wrote:
So far, I see no problems. Do you ?:
No, because it seems you missed step 5.
The problem was to print from my DeskJet printer. I did try tp print from it after having deleted the error_log file. Wasn't that step 5 ?.
I don't see that you actually printed a job (no "Started filter" and "Started backend" mesages) which fails to print.
Let me say it in that way: It didn't succeded to print from the DeskJet printer.
Note that the only part of interest in error_log are the mesages for one single job which fails to print.
Of course. Sorry for the long logfile
Kind Regards Johannes Meixner
Kind regards Erik Jakobsen
It prints now the HP DJ895Cxi. What seemed to be wrong, was the setup for printing to kprint in Mozilla. I had kprint instaed of kprinter in the kprinter -stdin. Sorry for the inconvenience. Best regards Erik Jakobsen
participants (2)
-
Erik Jakobsen
-
Johannes Meixner