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