Operating System - HP-UX
1833127 Members
3348 Online
110051 Solutions
New Discussion

Re: remote printing problems from one hp_ux server to another

 
Shawn Miller_2
Frequent Advisor

remote printing problems from one hp_ux server to another

I have one HP_UX server that acts as the print server. All other unix servers send print request to this server. I have a new server and when I setup a remote printer and send a print request the print job does not get to the print server. If you run lpstat you will see, lost connection after sending the main command to printserver.corp.com, Retrying ...

Any suggestions. You can send print jobs from all other servers to this remote printer and it works fine.
9 REPLIES 9
Peter Godron
Honored Contributor

Re: remote printing problems from one hp_ux server to another

If all the other clients work, the server must be ok. What is the difference between the setup on the working clients and the new machine. Spooler running? Can you ping the network printer?
doug mielke
Respected Contributor

Re: remote printing problems from one hp_ux server to another

I'd make sure the print server knows how to send a message back to the server sending the job.

Try to ping from the srever to the originator.

do an nslookup on the print server for the new servers name to make sure it can resolve the name.

My guess is there is no reply from the print server to the new one when you send the job.
Shawn Miller_2
Frequent Advisor

Re: remote printing problems from one hp_ux server to another

All servers can ping the printer.
From the print server to the server issueing the print request I can run a nslookup of the other printer and it works. I can ping both servers from each other. I can telnet, ftp, etc from one of the printers to the other. The spooler is running on both printers.

It does appear to be some sort of issue with the print server replying back, but I am not sure what that is.
Ahmed RAHAL
Advisor

Re: remote printing problems from one hp_ux server to another

Hi,

I may ask a dumb qustion but, do you really have the correct IP when doing a nslookup on 'printserver.corp.com' ?
Maybe there is an entry in /etc/hosts and the resolution order is 'hosts' before 'DNS' ...

Another hint : if you're using LPD protocol, try :
telnet printserver.corp.com 515

if you get a connection, the printing system should not complain, well, I think ;)

AR.
doug mielke
Respected Contributor

Re: remote printing problems from one hp_ux server to another

the mechanism for remote printing is very basic from the sending server perspective.

You could check the file on the new server

/var/spool/lp/interfaces/printername to make sure there is no IP address configured there. (you could compare that file to one of the servers that works also)

the print server to printer setup must be correct, since it works from other servers.


Are all servers on the same section of network? Or do you have to worry about things like specific ports being blocked between print server and new server. Ping from print server to new server would not be a complete test. Telnet from the print server to new server using server name as a better test.


Shawn Miller_2
Frequent Advisor

Re: remote printing problems from one hp_ux server to another

Ahmed,

There is a problem when you do a telnet printerserver 515. It will connect but immediately you will see connection closed by foriegn host. The servers that work will stay connected until you issue ctrl ].

Do you have suggestions on how to fix that.
Ahmed RAHAL
Advisor

Re: remote printing problems from one hp_ux server to another

Hi,

This may be caused by your printserver's connection aceptance/denial.
It therefore may depend on the network address your 'client' host has.
You are able to check the restrictions, AFAK on HPUX10.x & 11.x with SAM :
>Networking & Communications
->System Access
-->Internet Services
Select 'printer' and check the 'system permission' field(s).

Maybe there are other files involved in accpting/denying network connections directly handled by the print daemon (lpsched).

Anyhow, check out if there is a common point regarding ip ranges that may exlude your 'refused client'.

Hope this helps ...
Speedware
Frequent Advisor

Re: remote printing problems from one hp_ux server to another

I am having the same problem.

Did you find a solution to this problem ?
Anne Makino
Advisor

Re: remote printing problems from one hp_ux server to another

Hi All!
I had the same issue today and it was solved after change /etc/inetd.conf
The following outputs in the lab:

SERVER 1
# lp -dteste100 /etc/passwd
request id is teste100-2 (1 file)

# lpstat
teste100-2 root priority 0 Apr 3 10:35 on teste100
passwd 904 bytes

printer queue for teste100

host: lost connection after sending the main command to SERVER 2, Retrying ...

In this case the issue was a wrong input on printer line on /etc/inetd.conf on SERVER 1
##printer stream tcp nowait root /usr/sbin/rlpdaemon rlpdaemon -i
printer stream tcp nowait root /usr/lib/rlpdaemon -i

After change the /etc/inetd.conf to the following entries:
printer stream tcp nowait root /usr/sbin/rlpdaemon rlpdaemon -i

# inetd -c

# lp -d /etc/group
--OK
The remote printer is working fine!